Horde_Kolab_Storage_Object::getUid PHP Method

getUid() public method

Return the UID of the object. If no UID has been set a valid UID will be autogenerated.
public getUid ( ) : string
return string The object UID.
    public function getUid()
    {
        if (!isset($this->_data['uid'])) {
            $this->_data['uid'] = $this->generateUid();
        }
        return $this->_data['uid'];
    }

Usage Example

Beispiel #1
0
 public function testPresetUid()
 {
     $object = new Horde_Kolab_Storage_Object();
     $object->setData(array('uid' => 'UID'));
     $this->assertEquals('UID', $object->getUid());
 }
All Usage Examples Of Horde_Kolab_Storage_Object::getUid