Example #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());
 }
Example #2
0
 /**
  * Constructor
  *
  * @param string $actionType Type of action available
  * @param object $DI Instance of IDependencyInjectionContainer object
  */
 public function __construct($actionType, IDependencyInjectionContainer $DI)
 {
     $this->targetType = StringTools::filterPath($actionType);
     // Get language configuration
     $this->_lang = $DI->getLanguage('Action');
     // Get form helper
     $this->_form = new Form($DI);
 }
Example #3
0
 /**
  * Constructor
  *
  * @param int $id ID of the item
  * @param object $DI Instance of IDependencyInjectionContainer
  */
 public function __construct($id, IDependencyInjectionContainer $DI)
 {
     $this->_data['ID'] = $id;
     $this->_data['actions'] = new ArrayObject(array(), ArrayObject::ARRAY_AS_PROPS);
     // Get language configuration
     $this->_lang = $DI->getLanguage(get_called_class());
     // Get form helper
     $this->_form = new Form($DI);
     parent::__construct($DI);
 }
Example #4
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);
 }
Example #5
0
 /**
  * Constructor
  *
  * @param oject $DI Instance of IDependencyInjectionContainer
  */
 public function __construct(IDependencyInjectionContainer $DI)
 {
     $this->_lang = $DI->getLanguage('ActionLog');
 }