Horde_Kolab_Storage_Data::create PHP Method

create() public method

Create a new object.
public create ( &$object, boolean $raw = false ) : string
$raw boolean True if the data to be stored has been provided in raw format.
return string The ID of the new object or true in case the backend does not support this return value.
    public function create(&$object, $raw = false);

Usage Example

Example #1
0
File: Log.php Project: horde/horde
 /**
  * Create a new object.
  *
  * @param array   &$object The array that holds the object data.
  * @param boolean $raw     True if the data to be stored has been provided in
  *                         raw format.
  *
  * @return string The ID of the new object or true in case the backend does
  *                not support this return value.
  *
  * @throws Horde_Kolab_Storage_Exception In case an error occured while
  *                                       saving the data.
  */
 public function create(&$object, $raw = false)
 {
     $this->_logger->debug(sprintf('Creating new data object in %s.', $this->_data->getPath()));
     $result = $this->_data->create($object, $raw);
     $this->_logger->debug(sprintf('Created data object %s in %s [backend: %s].', $object['uid'], $this->_data->getPath(), $result));
     return $result;
 }
All Usage Examples Of Horde_Kolab_Storage_Data::create