/** * Sets up OS instance * * @return boolean */ protected static function _osObjSetup() { // Create Option Object if nescessary if (!self::$_osObj) { self::$_osObj = System_Daemon_OS::factory(); } // Still false? This was an error! if (!self::$_osObj) { return self::emerg('Unable to setup OS object'); } return true; }
/** * Sets up OS instance * * @return boolean */ protected static function _osObjSetup() { // Create Option Object if nescessary if (self::$_osObj === false) { self::$_osObj = System_Daemon_OS::factory(); } // Still false? This was an error! if (self::$_osObj === false) { self::log(self::LOG_EMERG, "Unable to setup OS object. "); return false; } return true; }