PhpOffice\PhpPresentation\Reader\ODPresentation::readParagraph PHP Method

readParagraph() protected method

Read Paragraph
protected readParagraph ( RichText $oShape, DOMElement $oNodeParent )
$oShape PhpOffice\PhpPresentation\Shape\RichText
$oNodeParent DOMElement
    protected function readParagraph(RichText $oShape, \DOMElement $oNodeParent)
    {
        $oParagraph = $oShape->createParagraph();
        $oDomList = $this->oXMLReader->getElements('text:span', $oNodeParent);
        if ($oDomList->length == 0) {
            $this->readParagraphItem($oParagraph, $oNodeParent);
        } else {
            foreach ($oDomList as $oNodeRichTextElement) {
                $this->readParagraphItem($oParagraph, $oNodeRichTextElement);
            }
        }
    }