Exemple #1
0
 /**
  * Initializes the application component.
  * This method overrides parent implementation by loading the authorization data
  * from PHP script.
  */
 public function init()
 {
     parent::init();
     if ($this->authFile === null) {
         $this->authFile = Yii::getPathOfAlias('application.data.auth') . '.php';
     }
     $this->load();
 }
Exemple #2
0
 /**
  * Initializes the application component.
  * This method overrides the parent implementation by establishing the database connection.
  */
 public function init()
 {
     $this->tablePrefix = Yii::app()->getDb()->tablePrefix;
     if ($this->tablePrefix != '') {
         $this->itemTable = $this->tablePrefix . $this->itemTable;
         $this->itemChildTable = $this->tablePrefix . $this->itemChildTable;
         $this->assignmentTable = $this->tablePrefix . $this->assignmentTable;
     }
     parent::init();
     $this->_usingSqlite = !strncmp($this->getDbConnection()->getDriverName(), 'sqlite', 6);
 }
Exemple #3
0
 /**
  * Initializes the application component.
  * This method overrides the parent implementation by establishing the database connection.
  */
 public function init()
 {
     parent::init();
     $this->_usingSqlite = !strncmp($this->getDbConnection()->getDriverName(), 'sqlite', 6);
 }
Exemple #4
0
 public function init()
 {
     parent::init();
     $this->getDbConnection();
     // para inicializar db
 }