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

readList() protected method

Read List
protected readList ( RichText $oShape, DOMElement $oNodeParent )
$oShape PhpOffice\PhpPresentation\Shape\RichText
$oNodeParent DOMElement
    protected function readList(RichText $oShape, \DOMElement $oNodeParent)
    {
        foreach ($this->oXMLReader->getElements('text:list-item/*', $oNodeParent) as $oNodeListItem) {
            if ($oNodeListItem->nodeName == 'text:p') {
                $this->readListItem($oShape, $oNodeListItem, $oNodeParent);
            }
            if ($oNodeListItem->nodeName == 'text:list') {
                $this->levelParagraph++;
                $this->readList($oShape, $oNodeListItem);
                $this->levelParagraph--;
            }
        }
    }