Ejemplo n.º 1
0
 /**
  * Initializes the application component.
  * This method overrides parent implementation by loading the authorization data
  * from PHP script.
  */
 public function init()
 {
     parent::init();
     $this->itemFile = Leaps::getAlias($this->itemFile);
     $this->assignmentFile = Leaps::getAlias($this->assignmentFile);
     $this->ruleFile = Leaps::getAlias($this->ruleFile);
     $this->load();
 }
Ejemplo n.º 2
0
 /**
  * Initializes the application component.
  * This method overrides the parent implementation by establishing the database connection.
  */
 public function init()
 {
     parent::init();
     $this->db = Instance::ensure($this->db, Connection::className());
     if ($this->cache !== null) {
         $this->cache = Instance::ensure($this->cache, Cache::className());
     }
 }