示例#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
 /**
  * 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
 /**
  * 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');
 }
 /**
  * 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');
 }