Example #1
0
 public function __construct(UserValidator $userValidator, CandidateValidator $candidateValidator, AgencyValidator $agencyValidator)
 {
     parent::__construct(new League\Fractal\Manager());
     $this->userValidator = $userValidator;
     $this->candidateValidator = $candidateValidator;
     $this->agencyValidator = $agencyValidator;
 }
 /**
  * @param AgentValidator $validator
  * @param UserValidator $userValidator
  */
 public function __construct(AgentValidator $validator, UserValidator $userValidator)
 {
     $this->validator = $validator;
     $this->userValidator = $userValidator;
     // call parent construct
     parent::__construct(new FractalManager());
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     // must be logged in
     if (!$this->user) {
         $this->output->set_output(json_encode($this->response));
     }
 }
Example #4
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('apply', 'save');
     $this->registerTask('add', 'edit');
     $default_url = 'index.php?option=' . $this->get('option');
     $view = JRequest::getVar('view', '');
     if ($view) {
         $default_url .= '&view=' . $view;
     }
     $this->set('default_url', $default_url);
 }
Example #5
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('apply', 'save');
     $this->registerTask('add', 'edit');
     $app = JFactory::getApplication();
     $default_url = 'index.php?option=' . $this->get('option');
     //$view = JRequest::getVar('view','');
     $view = $app->input->get('view', '', 'STRING');
     $task = $app->input->post->get('task', '', 'STRING');
     if ($task == 'add' || $task == 'edit') {
         $view = 'key';
     }
     if ($view) {
         $default_url .= '&view=' . $view;
     }
     $this->set('default_url', $default_url);
 }
 /**
  * @param CandidateValidator $validator
  */
 public function __construct(CandidateValidator $validator)
 {
     $this->validator = $validator;
     // call parent construct
     parent::__construct(new FractalManager());
 }
Example #7
0
 /**
  * Constructor
  * @param Client $Client
  * @param Agency $agency
  * @param JobsValidator $validator
  */
 public function __construct(JobsValidator $validator)
 {
     $this->validator = $validator;
     // call parent construct
     parent::__construct(new Manager());
 }
 public function __construct()
 {
     parent::__construct();
     $this->beforeFilter('auth', array('on' => array('post', 'put', 'delete')));
 }
 public function __construct()
 {
     parent::__construct();
 }
Example #10
0
 public function __construct($controllerName, $action, $params)
 {
     parent::__construct($controllerName, $action, $params);
 }
 public function __construct(SectionTypeTransformer $transformer, SectionTypeRepositoryInterface $repository)
 {
     parent::__construct($transformer, $repository);
 }
 public function __construct(SubjectTransformer $transformer, SubjectRepositoryInterface $subjectRepo)
 {
     parent::__construct($transformer, $repository);
 }
Example #13
0
 public function __construct($config = array())
 {
     parent::__construct($config);
 }
Example #14
0
 public function __construct($registry)
 {
     parent::__construct($registry);
     $this->payment = new APIPayment();
 }
Example #15
0
 public function __construct()
 {
     parent::__construct();
     $this->token = new Token();
 }
 public function __construct(InstructorTransformer $transformer, InstructorRepositoryInterface $repository)
 {
     parent::__construct($transformer, $repository);
 }