Lines Matching refs:data
6 * Validate the data for a whole schema
16 protected $data;
21 * @param array $data the data to validate (and save)
23 public function __construct(AccessTable $access, $data)
27 $this->data = $data;
31 * Validate the given data
35 * returns changed data only
37 * @param array $data array('schema' => ( 'fieldlabel' => 'value', ...))
40 * @return AccessDataValidator[]|bool savable data or false on validation error
42 public static function validateDataForPage($data, $pageid, &$errors)
52 $validation = $access->getValidator($data[$table]);
65 * Validate the data. This will clean the data according to type!
74 $result = $result && $this->validateValue($col, $this->data[$label]);
80 * Check if the data changed (selects current data)
87 return ($olddata != $this->data);
99 * Access the data after it has been cleand in the validation process
105 return $this->data;
109 * Saves the data
113 * @param int $ts the timestamp to use when saving the data
119 return $this->access->saveData($this->data);