예제 #1
0
 /**
  * Initialize
  *
  * @return void
  */
 public function initialize()
 {
     if ($this->isInitialized) {
         return;
     }
     // Special case for PostgreSQL inserts -- we need to provide an extra
     // clue so that the database knows how to write bytea data correctly:
     if ($this->adapter->getDriver()->getDatabasePlatformName() == "Postgresql") {
         if (!is_object($this->featureSet)) {
             $this->featureSet = new Feature\FeatureSet();
         }
         $eventFeature = new Feature\EventFeature();
         $eventFeature->getEventManager()->attach(Feature\EventFeature::EVENT_PRE_INSERT, [$this, 'onPreInsert']);
         $this->featureSet->addFeature($eventFeature);
     }
     parent::initialize();
 }
예제 #2
0
 /**
  * Constructor
  *
  * @param \VuFind\Date\Converter $converter Date converter
  */
 public function __construct(\VuFind\Date\Converter $converter)
 {
     $this->dateConverter = $converter;
     parent::__construct('resource', 'VuFind\\Db\\Row\\Resource');
 }
예제 #3
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('user_resource', 'VuFind\\Db\\Row\\UserResource');
 }
예제 #4
0
 /**
  * Construct the prototype for rows.
  *
  * @return object
  */
 protected function initializeRowPrototype()
 {
     $prototype = parent::initializeRowPrototype();
     $prototype->setConfig($this->config);
     if (null !== $this->session && is_callable([$prototype, 'setSession'])) {
         $prototype->setSession($this->session);
     }
     return $prototype;
 }
예제 #5
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('user_list', 'VuFind\\Db\\Row\\UserList');
 }
예제 #6
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('finna_transaction', 'Finna\\Db\\Row\\Transaction');
 }
예제 #7
0
파일: Session.php 프로젝트: grharry/vufind
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('session', 'VuFind\\Db\\Row\\Session');
 }
예제 #8
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('record_status', 'MZKCommon\\Db\\Row\\RecordStatus');
 }
예제 #9
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('finna_comments_record', 'Finna\\Db\\Row\\CommentsRecord');
     $this->table = 'finna_comments_record';
 }
예제 #10
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('resource_tags', 'VuFind\\Db\\Row\\ResourceTags');
 }
예제 #11
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('finna_metalib_search', 'Finna\\Db\\Row\\MetaLibSearch');
 }
예제 #12
0
파일: UserList.php 프로젝트: grharry/vufind
 /**
  * Construct the prototype for rows.
  *
  * @return object
  */
 protected function initializeRowPrototype()
 {
     $prototype = parent::initializeRowPrototype();
     $prototype->setSession($this->session);
     return $prototype;
 }
예제 #13
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('finna_due_date_reminder', 'Finna\\Db\\Row\\DueDateReminder');
 }
예제 #14
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('search', 'VuFind\\Db\\Row\\Search');
 }
예제 #15
0
 /**
  * Constructor
  *
  * @param bool $caseSensitive Are tags case sensitive?
  */
 public function __construct($caseSensitive = false)
 {
     parent::__construct('resource_tags', 'VuFind\\Db\\Row\\ResourceTags');
     $this->caseSensitive = $caseSensitive;
 }
예제 #16
0
파일: Tags.php 프로젝트: htw-pk15/vufind
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('tags', 'VuFind\\Db\\Row\\Tags');
 }
예제 #17
0
파일: Record.php 프로젝트: grharry/vufind
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('record', 'VuFind\\Db\\Row\\Record');
 }
예제 #18
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('comments', 'VuFind\\Db\\Row\\Comments');
 }
예제 #19
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('finna_comments_inappropriate', 'Finna\\Db\\Row\\CommentsInappropriate');
 }
예제 #20
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('user_stats_fields');
 }
예제 #21
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('finna_fee', 'Finna\\Db\\Row\\Fee');
 }