PhpOffice\PhpPresentation\Reader\PowerPoint97::readRecordSlideAtom PHP Method

readRecordSlideAtom() private method

An atom record that specifies information about a slide.
private readRecordSlideAtom ( string $stream, integer $pos )
$stream string
$pos integer
    private function readRecordSlideAtom($stream, $pos)
    {
        $arrayReturn = array('length' => 0);
        $data = $this->loadRecordHeader($stream, $pos);
        if ($data['recVer'] == 0x2 && $data['recInstance'] == 0x0 && $data['recType'] == self::RT_SLIDEATOM) {
            // Record Header
            $arrayReturn['length'] += 8;
            // slideAtom > geom
            $arrayReturn['length'] += 4;
            // slideAtom > rgPlaceholderTypes
            $rgPlaceholderTypes = array();
            for ($inc = 0; $inc < 8; $inc++) {
                $rgPlaceholderTypes[] = self::getInt1d($this->streamPowerpointDocument, $pos);
                $arrayReturn['length'] += 1;
            }
            // slideAtom > masterIdRef
            $arrayReturn['length'] += 4;
            // slideAtom > notesIdRef
            $arrayReturn['length'] += 4;
            // slideAtom > slideFlags
            $arrayReturn['length'] += 2;
            // slideAtom > unused;
            $arrayReturn['length'] += 2;
        }
        return $arrayReturn;
    }
PowerPoint97