public function __construct() { parent::__construct(); $this->input = new Modules_IO_Parser(); $this->response = new Modules_IO_Response(); $this->config = Config_Loader::getInstance(); $this->setController(get_class($this)); $this->activityLog = $this->_loadModel('activity'); //==============LOG RESULT $config = Config_Loader::getInstance(); $driver = 'Libs_Logging_Driver_' . $config->get('logDriver'); $this->logResult = new $driver(array('logLevel' => $config->get('logLevel'), 'logPath' => $config->get('logPath'), 'logPrefix' => 'result', 'logTimeFormat' => $config->get('logTimeFormat'), 'logLineFormat' => $config->get('logLineFormat'))); $this->logResult->enable = $config->get('logActive'); /*$this->email = new Modules_IO_Email( $this->config->app('emailHost'), $this->config->app('emailPort'), $this->config->app('emailAuth'), $this->config->app('emailUsername'), $this->config->app('emailPassword') );*/ //$this->email->setSender($this->config->app('emailGlobalSender')); /* $this->email = new Modules_IO_Email('ssl://unicorn.vodien.com','465',true,'*****@*****.**','l1nk1t360'); $this->email->setSender('*****@*****.**'); */ // load language $this->lang = new Modules_Language_Parser(); $this->_loadLanguage($this->lang->getLanguage()); // load plugin language }
private function __construct() { $config = Config_Loader::getInstance(); $driver = 'Libs_Logging_Driver_' . $config->get('logActivityDriver'); $this->objDriver = new $driver(array('logLevel' => 'debug', 'logPath' => $config->get('logActivityPath'), 'logPrefix' => $config->get('logActivityPrefix'), 'logTimeFormat' => $config->get('logActivityTimeFormat'), 'logLineFormat' => $config->get('logActivityLineFormat'))); $this->enable = $config->get('logActivityActive'); }
public static function getInstance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; }
public function __construct() { $this->config = Config_Loader::getInstance(); $this->logger = Base_Logging::getInstance(); $this->activity = Base_Logging_Activity::getInstance(); }