/** * 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(); }
/** * 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'); }
/** * Constructor */ public function __construct() { parent::__construct('user_resource', 'VuFind\\Db\\Row\\UserResource'); }
/** * 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; }
/** * Constructor */ public function __construct() { parent::__construct('user_list', 'VuFind\\Db\\Row\\UserList'); }
/** * Constructor */ public function __construct() { parent::__construct('finna_transaction', 'Finna\\Db\\Row\\Transaction'); }
/** * Constructor */ public function __construct() { parent::__construct('session', 'VuFind\\Db\\Row\\Session'); }
/** * Constructor */ public function __construct() { parent::__construct('record_status', 'MZKCommon\\Db\\Row\\RecordStatus'); }
/** * Constructor */ public function __construct() { parent::__construct('finna_comments_record', 'Finna\\Db\\Row\\CommentsRecord'); $this->table = 'finna_comments_record'; }
/** * Constructor */ public function __construct() { parent::__construct('resource_tags', 'VuFind\\Db\\Row\\ResourceTags'); }
/** * Constructor */ public function __construct() { parent::__construct('finna_metalib_search', 'Finna\\Db\\Row\\MetaLibSearch'); }
/** * Construct the prototype for rows. * * @return object */ protected function initializeRowPrototype() { $prototype = parent::initializeRowPrototype(); $prototype->setSession($this->session); return $prototype; }
/** * Constructor */ public function __construct() { parent::__construct('finna_due_date_reminder', 'Finna\\Db\\Row\\DueDateReminder'); }
/** * Constructor */ public function __construct() { parent::__construct('search', 'VuFind\\Db\\Row\\Search'); }
/** * Constructor * * @param bool $caseSensitive Are tags case sensitive? */ public function __construct($caseSensitive = false) { parent::__construct('resource_tags', 'VuFind\\Db\\Row\\ResourceTags'); $this->caseSensitive = $caseSensitive; }
/** * Constructor */ public function __construct() { parent::__construct('tags', 'VuFind\\Db\\Row\\Tags'); }
/** * Constructor */ public function __construct() { parent::__construct('record', 'VuFind\\Db\\Row\\Record'); }
/** * Constructor */ public function __construct() { parent::__construct('comments', 'VuFind\\Db\\Row\\Comments'); }
/** * Constructor */ public function __construct() { parent::__construct('finna_comments_inappropriate', 'Finna\\Db\\Row\\CommentsInappropriate'); }
/** * Constructor */ public function __construct() { parent::__construct('user_stats_fields'); }
/** * Constructor */ public function __construct() { parent::__construct('finna_fee', 'Finna\\Db\\Row\\Fee'); }