+++ /dev/null
-<?php
- class Exploitant extends AppModel {
- public $validate = array(
- 'reference' => array(
- 'rule' => 'notEmpty'
- )
- );
-
- public function value($field, $value = null) {
- if(func_num_args() === 1){
- $result = $this->field($field);
- if($result){
- return $result;
- }
- } else {
- if($this->saveField($field, $value)) {
- return true;
- }
- }
- return false;
- }
- }
-?>