Turba_Driver::_add PHP Метод

_add() защищенный Метод

Adds the specified contact to the addressbook.
protected _add ( array $attributes, array $blob_fields = [], array $date_fields = [] )
$attributes array The attribute values of the contact.
$blob_fields array Fields that represent binary data.
$date_fields array Fields that represent dates. @since 4.2.0
    protected function _add(array $attributes, array $blob_fields = array(), array $date_fields = array())
    {
        throw new Turba_Exception(_("Adding contacts is not available."));
    }

Usage Example

Пример #1
0
 /**
  * Adds the specified contact to the addressbook.
  *
  * @param array $attributes   The attribute values of the contact.
  * @param array $blob_fields  Fields that represent binary data.
  * @param array $date_fields  Fields that represent dates. @since 4.2.0
  *
  * @throws Turba_Exception
  */
 protected function _add(array $attributes, array $blob_fields = array(), array $date_fields = array())
 {
     return $this->_driver->_add($attributes, $blob_fields, $date_fields);
 }