$69 GRAYBYTE WORDPRESS FILE MANAGER $27

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.fpt.auto/wp-content/plugins/wp-all-export-pro/classes/PHPExcel/

HOME
Current File : /home/bqrcodec/contact.fpt.auto/wp-content/plugins/wp-all-export-pro/classes/PHPExcel//RichText.php
<?php

/**
 * PHPExcel_RichText
 *
 * Copyright (c) 2006 - 2015 PHPExcel
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * @category   PHPExcel
 * @package    PHPExcel_RichText
 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
 * @version    ##VERSION##, ##DATE##
 */
class PHPExcel_RichText implements PHPExcel_IComparable
{
    /**
     * Rich text elements
     *
     * @var PHPExcel_RichText_ITextElement[]
     */
    private $richTextElements;

    /**
     * Create a new PHPExcel_RichText instance
     *
     * @param PHPExcel_Cell $pCell
     * @throws PHPExcel_Exception
     */
    public function __construct(PHPExcel_Cell $pCell = null)
    {
        // Initialise variables
        $this->richTextElements = array();

        // Rich-Text string attached to cell?
        if ($pCell !== null) {
            // Add cell text and style
            if ($pCell->getValue() != "") {
                $objRun = new PHPExcel_RichText_Run($pCell->getValue());
                $objRun->setFont(clone $pCell->getParent()->getStyle($pCell->getCoordinate())->getFont());
                $this->addText($objRun);
            }

            // Set parent value
            $pCell->setValueExplicit($this, PHPExcel_Cell_DataType::TYPE_STRING);
        }
    }

    /**
     * Add text
     *
     * @param PHPExcel_RichText_ITextElement $pText Rich text element
     * @throws PHPExcel_Exception
     * @return PHPExcel_RichText
     */
    public function addText(PHPExcel_RichText_ITextElement $pText = null)
    {
        $this->richTextElements[] = $pText;
        return $this;
    }

    /**
     * Create text
     *
     * @param string $pText Text
     * @return PHPExcel_RichText_TextElement
     * @throws PHPExcel_Exception
     */
    public function createText($pText = '')
    {
        $objText = new PHPExcel_RichText_TextElement($pText);
        $this->addText($objText);
        return $objText;
    }

    /**
     * Create text run
     *
     * @param string $pText Text
     * @return PHPExcel_RichText_Run
     * @throws PHPExcel_Exception
     */
    public function createTextRun($pText = '')
    {
        $objText = new PHPExcel_RichText_Run($pText);
        $this->addText($objText);
        return $objText;
    }

    /**
     * Get plain text
     *
     * @return string
     */
    public function getPlainText()
    {
        // Return value
        $returnValue = '';

        // Loop through all PHPExcel_RichText_ITextElement
        foreach ($this->richTextElements as $text) {
            $returnValue .= $text->getText();
        }

        // Return
        return $returnValue;
    }

    /**
     * Convert to string
     *
     * @return string
     */
    public function __toString()
    {
        return $this->getPlainText();
    }

    /**
     * Get Rich Text elements
     *
     * @return PHPExcel_RichText_ITextElement[]
     */
    public function getRichTextElements()
    {
        return $this->richTextElements;
    }

    /**
     * Set Rich Text elements
     *
     * @param PHPExcel_RichText_ITextElement[] $pElements Array of elements
     * @throws PHPExcel_Exception
     * @return PHPExcel_RichText
     */
    public function setRichTextElements($pElements = null)
    {
        if (is_array($pElements)) {
            $this->richTextElements = $pElements;
        } else {
            throw new PHPExcel_Exception("Invalid PHPExcel_RichText_ITextElement[] array passed.");
        }
        return $this;
    }

    /**
     * Get hash code
     *
     * @return string    Hash code
     */
    public function getHashCode()
    {
        $hashElements = '';
        foreach ($this->richTextElements as $element) {
            $hashElements .= $element->getHashCode();
        }

        return md5(
            $hashElements .
            __CLASS__
        );
    }

    /**
     * Implement PHP __clone to create a deep clone, not just a shallow copy.
     */
    public function __clone()
    {
        $vars = get_object_vars($this);
        foreach ($vars as $key => $value) {
            if (is_object($value)) {
                $this->$key = clone $value;
            } else {
                $this->$key = $value;
            }
        }
    }
}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
CachedObjectStorage
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
CalcEngine
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Calculation
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Cell
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Chart
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Helper
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Reader
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
RichText
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Shared
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Style
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Worksheet
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Writer
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
locale
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Autoloader.php
2.816 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
CachedObjectStorageFactory.php
7.72 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Calculation.php
197.291 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Cell.php
32.539 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Chart.php
14.424 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Comment.php
6.822 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
DocumentProperties.php
15.019 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
DocumentSecurity.php
5.023 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Exception.php
1.634 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
HashTable.php
4.924 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
IComparable.php
1.154 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
IOFactory.php
9.146 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
NamedRange.php
5.94 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
ReferenceHelper.php
46.425 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
RichText.php
4.917 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Settings.php
11.789 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Style.php
23.445 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Worksheet.php
92.108 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
WorksheetIterator.php
2.495 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF