Пример #1
0
 public function __construct($id = false, $table = NULL, $ds = NULL)
 {
     $this->validate['name']['notempty']['message'] = __d('replacer', 'Field required');
     $this->validate['pattern']['notempty']['message'] = __d('replacer', 'Field required');
     $this->validate['limit']['numeric']['message'] = __d('replacer', 'Only numeric values are allowed');
     $this->validate['limit']['comparison']['message'] = __d('replacer', 'Value must be greater or equal to -1');
     parent::__construct($id, $table, $ds);
 }
Пример #2
0
 public function __construct($id = false, $table = NULL, $ds = NULL)
 {
     $this->validate['name']['notempty']['message'] = __d('replacer', 'Field required');
     $this->validate['pattern']['notempty']['message'] = __d('replacer', 'Field required');
     parent::__construct($id, $table, $ds);
 }