Beispiel #1
0
 protected function getFtNtsSubrecord($guid = null)
 {
     $length = 0x16;
     $header = pack("vv", 0xd, $length);
     $guid = is_null($guid) ? Utils::generateGuid() : $guid;
     $data = pack('H*', $guid);
     $fSharedNote = 0;
     //not shared
     $data .= pack('v', $fSharedNote);
     //reserved
     $data .= pack('vv', 0x10, 0);
     return $header . $data;
 }
Beispiel #2
0
 public function testGuids()
 {
     $guid = Utils::generateGuid();
     $this->assertEquals(32, strlen($guid), 'GUID mus be 32 chars long');
     $this->assertNotSame($guid, Utils::generateGuid(), 'Every new GUID must be unique');
 }