Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 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();
 }
Beispiel #5
0
 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");
 }
 function LegacyNon_installation_moduleHandler(&$db)
 {
     parent::XoopsObjectHandler($db);
     $this->_setupObjects();
 }
 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();
 }