38 lines
863 B
PHP
38 lines
863 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Pensare Software.
|
|
* User: Theo Weijmer
|
|
* Date: 10/07/16
|
|
* Time: 13:35
|
|
*/
|
|
|
|
require_once( APPPATH . 'Libraries/Validation/InputValidations/BaseValidation.php' );
|
|
|
|
class EmployeeTargetValidation extends BaseValidation {
|
|
|
|
|
|
protected $validationFields = [
|
|
'user_id' => [
|
|
'validations' => 'required|integer',
|
|
'fieldname' => 'gebruiker'
|
|
],
|
|
'startmonth' => [
|
|
'validations' => 'integer',
|
|
'fieldname' => 'startmaand'
|
|
],
|
|
'startyear' => [
|
|
'validations' => 'required|integer',
|
|
'fieldname' => 'startjaar'
|
|
],
|
|
'target' =>[
|
|
'validations' => 'integer',
|
|
'fieldname' => 'uren target'
|
|
]
|
|
];
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
} |