/** * Sets up Option Object instance * * @return boolean */ protected static function _optionObjSetup() { // Create Option Object if nescessary if (!self::$_optObj) { self::$_optObj = new System_Daemon_Options(self::$_optionDefinitions); } // Still false? This was an error! if (!self::$_optObj) { return self::emerg('Unable to setup Options object. '); } return true; }
/** * Sets up Option Object instance * * @return boolean */ protected static function _optionObjSetup() { // Create Option Object if nescessary if (self::$_optObj === false) { self::$_optObj = new System_Daemon_Options(self::$_optionDefinitions); } // Still false? This was an error! if (self::$_optObj === false) { self::log(self::LOG_EMERG, "Unable to setup Options object. " . "You must provide valid option definitions"); return false; } return true; }