Horde_Kolab_Storage_Object::getType PHP Method

getType() public method

Return the object type.
public getType ( ) : string
return string The object type.
    public function getType()
    {
        return $this->_type;
    }

Usage Example

Example #1
0
 public function testSerializeUnserializeRetainsType()
 {
     $data = $this->getMock('Horde_Kolab_Storage_Object_Writer');
     $object = new Horde_Kolab_Storage_Object();
     $headers = $this->getMock('Horde_Mime_Headers');
     $this->folder->expects($this->once())->method('getType')->will($this->returnValue('event'));
     $this->folder->expects($this->once())->method('getPath')->will($this->returnValue('INBOX/Calendar'));
     $object->setDriver($this->driver);
     $object->load('1', $this->folder, $data, $this->getMultipartMimeMessage('application/x-vnd.kolab.event'));
     $new_object = new Horde_Kolab_Storage_Object();
     $new_object->unserialize($object->serialize());
     $this->assertEquals('event', $new_object->getType());
 }
All Usage Examples Of Horde_Kolab_Storage_Object::getType