Пример #1
0
 /**
  * Constructor, calls the parse method for the query string by default.
  * @param boolean $parseQueryString true Can be set to false if a controller needs to be called
  *        from a different controller, bypassing the $allowedFields parse
  * @return void
  */
 public function __construct($parseQueryString = true)
 {
     parent::__construct();
     if ($parseQueryString) {
         $this->parseRequest($this->allowedFields);
     }
     return;
 }
Пример #2
0
 public function __construct()
 {
     $this->postUpdateRules = ['name' => 'required|unique:companies,name,' . Request::get('id')];
     parent::__construct();
 }
Пример #3
0
 public function __construct()
 {
     $this->postUpdateRules = ['name' => 'required|unique:roles,name,' . Request::get('id'), 'rolePermission' => 'required'];
     parent::__construct();
 }
Пример #4
0
 public function __construct()
 {
     $this->itemHistory = new ItemHistoryController();
     parent::__construct();
 }
Пример #5
0
 public function __construct()
 {
     $this->postUpdateRules = ['name' => 'required|unique:users,name,' . Request::get('id'), 'email' => 'required|unique:users,email,' . Request::get('id'), 'id_role' => 'required', 'id_company' => 'required'];
     parent::__construct();
 }
Пример #6
0
 public function __construct()
 {
     $this->postUpdateRules = ['name' => 'required|unique:items,name,' . Request::get('id'), 'code' => 'required|unique:items,code,' . Request::get('id'), 'barcode' => 'unique:items,barcode,' . Request::get('id'), 'id_unit' => 'required'];
     parent::__construct();
 }
 public function __construct(\Slim\Slim $app, ISellerAdDao $sellerAdDao)
 {
     parent::__construct($app);
     $this->sellerAdDao = $sellerAdDao;
 }