Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function rules() {
- // NOTE: you should only define rules for those attributes that
- // will receive user inputs.
- return array(
- array('tnum, contract_id, project_id, worker_id, ivedimas, pert_atost, date', 'required'),
- array('contract_id, project_id, worker_id, extra, extra1, user_id, metai', 'numerical', 'integerOnly' => true),
- array('tnum, pert_atost', 'length', 'max' => 255),
- array('menesiai, ivedimas', 'length', 'max'=>2),
- array('pert_atost, ivedimas', 'allowEmpty'=>true),
- array('updatets', 'safe'),
- // The following rule is used by search().
- // @todo Please remove those attributes that should not be searched.
- array('id, tnum, contract_id, project_id, worker_id, ivedimas, pert_atost, extra, extra1, date, user_id, updatets, createts', 'safe', 'on' => 'search'),
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment