예제 #1
0
파일: Search.php 프로젝트: tillk/vufind
 /**
  * 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();
 }
예제 #2
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'record', $adapter);
 }
예제 #3
0
파일: Session.php 프로젝트: grharry/vufind
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'session', $adapter);
 }
예제 #4
0
파일: UserCard.php 프로젝트: tillk/vufind
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'user_card', $adapter);
 }
예제 #5
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'user_resource', $adapter);
 }
예제 #6
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'oai_resumption', $adapter);
 }
예제 #7
0
파일: Comments.php 프로젝트: grharry/vufind
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'comments', $adapter);
 }
예제 #8
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct(['core', 'id'], 'change_tracker', $adapter);
 }
예제 #9
0
 /**
  * Constructor
  *
  * @param \Zend\Db\Adapter\Adapter $adapter Database adapter
  */
 public function __construct($adapter)
 {
     parent::__construct('id', 'resource_tags', $adapter);
 }
예제 #10
0
 public function __construct($element, $adapter, $mapper, array $options = null)
 {
     parent::__construct($element, $adapter, $mapper);
     $this->state = isset($options['state']) ? $options['state'] : 'persistent';
 }