Horde_Kolab_Storage_Object::setContent PHP Method

setContent() public method

Set the content representing the object data.
public setContent ( resource $content )
$content resource The object content.
    public function setContent($content)
    {
        $this->_content = $content;
    }

Usage Example

Example #1
0
 /**
  * Convert the object content into a data structure and update the object
  * accordingly.
  *
  * @param resource $content The raw content from the object.
  * @param Horde_Kolab_Storage_Object $object The object that should receive the parsed data.
  */
 public function load($content, Horde_Kolab_Storage_Object $object)
 {
     try {
         $object->setData($this->_getParser($object->getType())->load($content));
         return true;
     } catch (Horde_Kolab_Format_Exception $e) {
         $object->setContent($content);
         return $e;
     }
 }
All Usage Examples Of Horde_Kolab_Storage_Object::setContent