/** * Returns a string with the PPS's WK (What is a WK?) * * @access private * @return string The binary string */ function _getPpsWk() { $ret = $this->Name; for ($i = 0; $i < (64 - strlen($this->Name)); $i++) { $ret .= "\x00"; } $ret .= pack("v", strlen($this->Name) + 2) // 66 . pack("c", $this->Type) // 67 . pack("c", 0x00) //UK // 68 . pack("V", $this->PrevPps) //Prev // 72 . pack("V", $this->NextPps) //Next // 76 . pack("V", $this->DirPps) //Dir // 80 . "\x00\x09\x02\x00" // 84 . "\x00\x00\x00\x00" // 88 . "\xc0\x00\x00\x00" // 92 . "\x00\x00\x00\x46" // 96 // Seems to be ok only for Root . "\x00\x00\x00\x00" // 100 . OLE::LocalDate2OLE($this->Time1st) // 108 . OLE::LocalDate2OLE($this->Time2nd) // 116 . pack("V", isset($this->_StartBlock)? $this->_StartBlock:0) // 120 . pack("V", $this->Size) // 124 . pack("V", 0); // 128 return $ret; }
/** * Returns a string with the PPS's WK (What is a WK?) * * @access private * @return string The binary string */ function _getPpsWk() { $ret = $this->Name; for ($i = 0; $i < 64 - strlen($this->Name); $i++) { $ret .= ""; } $ret .= pack("v", strlen($this->Name) + 2) . pack("c", $this->Type) . pack("c", 0x0) . pack("V", $this->PrevPps) . pack("V", $this->NextPps) . pack("V", $this->DirPps) . "\t" . "" . "À" . "F" . "" . OLE::LocalDate2OLE($this->Time1st) . OLE::LocalDate2OLE($this->Time2nd) . pack("V", isset($this->_StartBlock) ? $this->_StartBlock : 0) . pack("V", $this->Size) . pack("V", 0); // 128 return $ret; }