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

readRecordSlideNameAtom() private method

An atom record that specifies the name of a slide.
private readRecordSlideNameAtom ( string $stream, integer $pos )
$stream string
$pos integer
    private function readRecordSlideNameAtom($stream, $pos)
    {
        $arrayReturn = array('length' => 0, 'slideName' => '');
        $data = $this->loadRecordHeader($stream, $pos);
        if ($data['recVer'] == 0x0 && $data['recInstance'] == 0x3 && $data['recType'] == self::RT_CSTRING && $data['recLen'] % 2 == 0) {
            // Record Header
            $arrayReturn['length'] += 8;
            // Length
            $strLen = $data['recLen'] / 2;
            for ($inc = 0; $inc < $strLen; $inc++) {
                $char = self::getInt2d($stream, $pos + $arrayReturn['length']);
                $arrayReturn['length'] += 2;
                $arrayReturn['slideName'] .= Text::chr($char);
            }
        }
        return $arrayReturn;
    }
PowerPoint97