Esempio n. 1
0
 /**
  * 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();
 }
Esempio n. 2
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'record', $adapter);
 }
Esempio n. 3
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'session', $adapter);
 }
Esempio n. 4
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'user_card', $adapter);
 }
Esempio n. 5
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'user_resource', $adapter);
 }
Esempio n. 6
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'oai_resumption', $adapter);
 }
Esempio n. 7
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'comments', $adapter);
 }
Esempio n. 8
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct(['core', 'id'], 'change_tracker', $adapter);
 }
Esempio n. 9
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'resource_tags', $adapter);
 }
Esempio n. 10
0
 public function __construct($element, $adapter, $mapper, array $options = null)
 {
     parent::__construct($element, $adapter, $mapper);
     $this->state = isset($options['state']) ? $options['state'] : 'persistent';
 }