/** * Registers a constant to load at system-startup * * @param string $strName * @param string $strValue * @param int $intType @link class_module_system_setting::int_TYPE_XX * @param int $intModule * @return bool */ public function registerConstant($strName, $strValue, $intType, $intModule) { //register to current runtime env? if (!defined($strName)) { define($strName, $strValue); } if (!class_module_system_setting::checkConfigExisting($strName)) { $objConstant = new class_module_system_setting(); $objConstant->setStrName($strName); $objConstant->setStrValue($strValue); $objConstant->setIntType($intType); $objConstant->setIntModule($intModule); $bitReturn = $objConstant->updateObjectToDb(); $this->objDB->flushQueryCache(); return $bitReturn; } else { return false; } }