function XoopsCachetimeHandler(&$db) { parent::XoopsObjectHandler($db); // // This handler not connects to database. // $this->_mResult = array("0" => _NOCACHE, "30" => sprintf(_SECONDS, 30), "60" => _MINUTE, "300" => sprintf(_MINUTES, 5), "1800" => sprintf(_MINUTES, 30), "3600" => _HOUR, "18000" => sprintf(_HOURS, 5), "86400" => _DAY, "259200" => sprintf(_DAYS, 3), "604800" => _WEEK, "2592000" => _MONTH); }
function XoopsObjectGenericHandler(&$db) { parent::XoopsObjectHandler($db); $tableArr = explode('_', $this->mTable); $this->mDirname = array_shift($tableArr); $this->mDataname = implode('_', $tableArr); $this->mTable = $this->db->prefix($this->mTable); }
function XoopsTimezoneHandler(&$db) { parent::XoopsObjectHandler($db); $root =& XCube_Root::getSingleton(); // // Because abstract language style is not decided, we load directly. But we must fix. // $root->mLanguageManager->loadPageTypeMessageCatalog('timezone'); // // This handler not connects to database. // $this->_mResult = array("-12" => _TZ_GMTM12, "-11" => _TZ_GMTM11, "-10" => _TZ_GMTM10, "-9" => _TZ_GMTM9, "-8" => _TZ_GMTM8, "-7" => _TZ_GMTM7, "-6" => _TZ_GMTM6, "-5" => _TZ_GMTM5, "-4.5" => _TZ_GMTM45, "-4" => _TZ_GMTM4, "-3.5" => _TZ_GMTM35, "-3" => _TZ_GMTM3, "-2" => _TZ_GMTM2, "-1" => _TZ_GMTM1, "0" => _TZ_GMT0, "1" => _TZ_GMTP1, "2" => _TZ_GMTP2, "3" => _TZ_GMTP3, "3.5" => _TZ_GMTP35, "4" => _TZ_GMTP4, "4.5" => _TZ_GMTP45, "5" => _TZ_GMTP5, "5.5" => _TZ_GMTP55, "5.75" => _TZ_GMTP575, "6" => _TZ_GMTP6, "6.5" => _TZ_GMTP65, "7" => _TZ_GMTP7, "8" => _TZ_GMTP8, "9" => _TZ_GMTP9, "9.5" => _TZ_GMTP95, "10" => _TZ_GMTP10, "11" => _TZ_GMTP11, "12" => _TZ_GMTP12, "13" => _TZ_GMTP13); }
/** * @param XoopsDB $db * @return NBFrameObjectHandler */ function NBFrameObjectHandler($db) { $this->mClassName = get_class($this); $this->mEntityClassName = preg_replace("/handler\$/i", "", $this->mClassName); parent::XoopsObjectHandler($db); if ($this->mTableBaseName) { $this->mTableName = $this->db->prefix($this->mTableBaseName); } else { if ($this->mTableName) { $this->mTableBaseName = $this->mTableName; $this->mTableName = $this->db->prefix($this->mTableName); } } $this->mErrors = array(); }
/** * Constructor * * @param null|XoopsDatabase $db database connection * @param string $table Name of database table * @param string $className Name of the XoopsObject class this handler manages * @param string $keyName Name of the property holding the key * @param string $identifierName Name of the property holding an identifier * name (title, name ...), used on getList() */ public function __construct(XoopsDatabase $db = null, $table = '', $className = '', $keyName = '', $identifierName = '') { $db = XoopsDatabaseFactory::getDatabaseConnection(); $table = $db->prefix($table); parent::__construct($db); $this->table = $table; $this->keyName = $keyName; $this->className = $className; if ($identifierName) { $this->identifierName = $identifierName; } }
function XoopsNotificationHandler(&$db) { parent::XoopsObjectHandler($db); $this->mTrigger = new XCube_Delegate(); $this->mTrigger->register('XoopsNotificationHandler.Trigger'); $this->mTriggerPreAction = new XCube_Delegate(); $this->mTriggerPreAction->register("XoopsNotificationHandler.TriggerPreAction"); }
public function __construct(XoopsDatabase $db) { parent::__construct($db); $this->table = $this->db->prefix('groups_users_link'); }
/** * Enter description here... * * @param XoopsDatabase $db */ public function __construct(XoopsDatabase $db) { parent::__construct($db); }
public function __construct(XoopsDatabase $db) { parent::__construct($db); $this->table = $this->db->prefix('group_permission'); }
function LegacyNon_installation_moduleHandler(&$db) { parent::XoopsObjectHandler($db); $this->_setupObjects(); }
public function __construct(&$db) { parent::__construct($db); $this->_deprecated = icms_core_Debug::setDeprecated('icms_image_set_Handler', sprintf(_CORE_REMOVE_IN_VERSION, '1.4')); }
function XoopsTableObjectHandler($db) { $this->_entityClassName = preg_replace("/handler\$/i", "", get_class($this)); parent::XoopsObjectHandler($db); if ($this->tableName) { $this->tableName = $this->db->prefix($this->tableName); } $this->_errors = array(); }