You are here

abstract class ApplicationLogger in Module Object Oriented Programming API 7.2

Same name and namespace in other branches
  1. 6.2 component/decorator/moopapi.logger.inc \ApplicationLogger
  2. 6.2 component/decorator/logger/moopapi.logger.inc \ApplicationLogger
  3. 6 component/decorator/moopapi.logger.inc \ApplicationLogger
  4. 6 component/decorator/logger/moopapi.logger.inc \ApplicationLogger
  5. 7 component/decorator/logger/moopapi.logger.inc \ApplicationLogger

Hierarchy

Expanded class hierarchy of ApplicationLogger

File

component/decorator/logger/moopapi.logger.inc, line 103

View source
abstract class ApplicationLogger extends Logger implements IApplication {
  const ADMIN_PATH = 'admin';
  protected $type = 'Application';
  protected $ctrls = array();
  protected $controllers = array();
  public function __construct($decorators_applied = array(), &$relations = array(), $app) {
    parent::__construct($decorators_applied, $relations, $app);
    $this
      ->getControllers();
  }
  public function getControllers() {
    $controllers = array();
    foreach ($this->ctrls as $ctrl_name) {
      $controllers[$ctrl_name] = $this
        ->getController($ctrl_name);
    }
    return $controllers;
  }
  protected function getController($ctrl_name) {
    $this->controllers[$ctrl_name] = ComponentFactory::get($this->app_name, 'Controller', $ctrl_name, $this->decorators_applied, $this->relations);
    return $this->controllers[$ctrl_name];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ApplicationLogger::$controllers protected property
ApplicationLogger::$ctrls protected property
ApplicationLogger::$type protected property Overrides Component::$type
ApplicationLogger::ADMIN_PATH constant
ApplicationLogger::getController protected function
ApplicationLogger::getControllers public function Overrides IApplication::getControllers
ApplicationLogger::__construct public function Overrides Logger::__construct
Component::$app_name protected property
Component::$decorators_applied protected property
Component::$id protected property
Component::$relations protected property
Component::$rltns protected property
Component::ID_APPLICATION constant
Component::TYPE_CONTROLLER constant
Component::TYPE_MODEL constant
Decorator::$original protected property Here the original value of decorated application is stored.
Logger::$date_format protected property
Logger::$destination protected property
Logger::$level protected property
Logger::getDateFormat public function
Logger::getDestination public function
Logger::getLevel public function
Logger::getLevels protected static function
Logger::log public function
Logger::logCall protected function
Logger::LOGGER_DATE_FORMAT constant
Logger::LOGGER_DB constant
Logger::LOGGER_DISABLED constant
Logger::LOGGER_EMAIL constant
Logger::LOGGER_FILE constant
Logger::put2log protected function
Logger::setDateFormat public function
Logger::setDestination public function
Logger::setLevel public function