PhpOffice\PhpPresentation\Writer\AbstractWriter::allDrawings PHP Method

allDrawings() protected method

Get an array of all drawings
protected allDrawings ( ) : PhpOffice\PhpPresentation\Shape\AbstractDrawing[]
return PhpOffice\PhpPresentation\Shape\AbstractDrawing[] All drawings in PhpPresentation
    protected function allDrawings()
    {
        // Get an array of all drawings
        $aDrawings = array();
        // Loop trough PhpPresentation
        foreach ($this->getPhpPresentation()->getAllSlides() as $oSlide) {
            $arrayReturn = $this->iterateCollection($oSlide->getShapeCollection()->getIterator());
            $aDrawings = array_merge($aDrawings, $arrayReturn);
        }
        return $aDrawings;
    }