t = $t; $this->request = $request; $this->post = $hooks->wrap( $post ); $this->calendars = $hooks->wrap($calendars); $this->shiftTypes = $hooks->wrap($shiftTypes); $this->self = $hooks->wrap($this); } public function execute() { $thisId = array(); $params = $this->request->getParams(); $employees = $this->post->get('employee'); if( ! $employees ){ $employees = array(); } if( in_array('0', $employees) ){ $employees = HC3_Functions::removeFromArray( $employees, '0' ); } if( ! $employees ){ $errors = array(); $errors['employee'] = '__Select Employee__'; $return = array( '-referrer-', $errors, TRUE ); return $return; } $employeeString = HC3_Functions::glueArray( $employees ); $to = 'new'; $toParams = $params; $toParams['employee'] = $employeeString; $to = array( $to, $toParams ); $return = array( $to, NULL ); return $return; } }