/** * Save * * @return int */ public function save() { // Note that if we have a resource, we need to grab the contents before // saving -- this is necessary for PostgreSQL compatibility although MySQL // returns a plain string $this->search_object = is_resource($this->search_object) ? stream_get_contents($this->search_object) : $this->search_object; parent::save(); }
/** * Constructor * * @param \Zend\Db\Adapter\Adapter $adapter Database adapter */ public function __construct($adapter) { parent::__construct('id', 'record', $adapter); }
/** * Constructor * * @param \Zend\Db\Adapter\Adapter $adapter Database adapter */ public function __construct($adapter) { parent::__construct('id', 'session', $adapter); }
/** * Constructor * * @param \Zend\Db\Adapter\Adapter $adapter Database adapter */ public function __construct($adapter) { parent::__construct('id', 'user_card', $adapter); }
/** * Constructor * * @param \Zend\Db\Adapter\Adapter $adapter Database adapter */ public function __construct($adapter) { parent::__construct('id', 'user_resource', $adapter); }
/** * Constructor * * @param \Zend\Db\Adapter\Adapter $adapter Database adapter */ public function __construct($adapter) { parent::__construct('id', 'oai_resumption', $adapter); }
/** * Constructor * * @param \Zend\Db\Adapter\Adapter $adapter Database adapter */ public function __construct($adapter) { parent::__construct('id', 'comments', $adapter); }
/** * Constructor * * @param \Zend\Db\Adapter\Adapter $adapter Database adapter */ public function __construct($adapter) { parent::__construct(['core', 'id'], 'change_tracker', $adapter); }
/** * Constructor * * @param \Zend\Db\Adapter\Adapter $adapter Database adapter */ public function __construct($adapter) { parent::__construct('id', 'resource_tags', $adapter); }
public function __construct($element, $adapter, $mapper, array $options = null) { parent::__construct($element, $adapter, $mapper); $this->state = isset($options['state']) ? $options['state'] : 'persistent'; }