Ejemplo n.º 1
0
 /**
  * @desc Class contructor
  * @param object IDependencyInjectionContainer instance
  * @access public
  */
 public function __construct(IDependencyInjectionContainer $DI)
 {
     $this->_DI = $DI;
     $this->_db = $DI->getDb();
     $this->_messenger = $DI->getMessenger();
     $this->_lang = $DI->getLanguage(get_called_class());
 }
Ejemplo n.º 2
0
 /**
  * Constructor, initialize the member vars. Then call the action found in the query string.
  *
  * @param object An instance of an IDependencyInjectionContainer object.
  *
  * @access public
  */
 public function __construct(IDependencyInjectionContainer $DI)
 {
     $this->_DI = $DI;
     // Load user
     $this->_user = new User($DI);
     // Register configuration
     $this->_config = $DI->getConfigurator();
     // Get language configuration
     $this->_lang = $DI->getLanguage(get_called_class());
     // Get message manager
     $this->_messenger = $DI->getMessenger();
     // Get form helper
     $this->_form = new Form($DI);
 }