コード例 #1
0
ファイル: Search.php プロジェクト: bbeckman/NDL-VuFind2
 /**
  * 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
ファイル: Resource.php プロジェクト: datavoyager/vufind
 /**
  * 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
ファイル: UserResource.php プロジェクト: grharry/vufind
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('user_resource', 'VuFind\\Db\\Row\\UserResource');
 }
コード例 #4
0
ファイル: User.php プロジェクト: bbeckman/NDL-VuFind2
 /**
  * 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
ファイル: UserList.php プロジェクト: no-reply/cbpl-vufind
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('user_list', 'VuFind\\Db\\Row\\UserList');
 }
コード例 #6
0
ファイル: Transaction.php プロジェクト: bbeckman/NDL-VuFind2
 /**
  * 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
ファイル: RecordStatus.php プロジェクト: paulusova/VuFind-2.x
 /**
  * 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
ファイル: ResourceTags.php プロジェクト: htw-pk15/vufind
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('resource_tags', 'VuFind\\Db\\Row\\ResourceTags');
 }
コード例 #11
0
ファイル: MetaLibSearch.php プロジェクト: jlehmus/NDL-VuFind2
 /**
  * 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
ファイル: Search.php プロジェクト: steenlibrary/vufind
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('search', 'VuFind\\Db\\Row\\Search');
 }
コード例 #15
0
ファイル: ResourceTags.php プロジェクト: bbeckman/NDL-VuFind2
 /**
  * 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
ファイル: Comments.php プロジェクト: bbeckman/NDL-VuFind2
 /**
  * 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
ファイル: Fee.php プロジェクト: bbeckman/NDL-VuFind2
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct('finna_fee', 'Finna\\Db\\Row\\Fee');
 }