Lines Matching refs:data

8  * Base class for data accessors
27 // options on how to retrieve data
76 * Factory method returning the appropriate data accessor (page, global or serial)
80 * @param int $ts Time at which the data should be read or written
81 * @param int $rid Row id, 0 for page type data, otherwise autoincrement
94 * Factory Method to access data
98 * @param int $ts Time at which the data should be read or written
99 * @param int $rid Row id, 0 for page type data, otherwise autoincrement
106 // force loading the latest schema for anything other than page data,
121 * @param int $ts Time at which the data should be read or written, 0 for now
131 throw new StructException('Schema does not exist. Only data of existing schemas can be accessed');
184 * Should remove the current data, by either deleting or ovewriting it
191 * Save the data to the database.
196 * @param array $data typelabel => value for single fields or typelabel => array(value, value, ...) for multi fields
197 * @return bool success of saving the data to the database
199 public function saveData($data)
201 if (!$this->validateTypeData($data)) {
210 foreach ($data as $colname => $value) {
269 * Check whether all required data is present
271 * @param array $data
274 abstract protected function validateTypeData($data);
307 * Optional operations to be executed before saving data
317 * Optional operations to be executed after saving data to single-value table,
381 $data = $this->getData();
382 foreach ($data as $value) {
391 * returns the data saved for the page
397 $data = $this->getDataFromDB();
398 $data = $this->consolidateData($data, false);
399 return $data;
403 * returns the data saved for the page as associative array
414 $data = $this->getDataFromDB();
415 $data = $this->consolidateData($data, true);
416 return $data;
420 * Return the data in pseudo syntax
425 $data = $this->getData();
427 foreach ($data as $value) {
437 * retrieve the data saved for the page from the database. Usually there is no need to call this function.
449 * Creates a proper result array from the database data
451 * @param array $DBdata the data as it is retrieved from the database, i.e. by SchemaData::getDataFromDB
452 * @param bool $asarray return data as associative array (true) or as array of Values (false)
457 $data = [];
462 // if no data saved yet, return empty strings
469 // multi val data is concatenated
482 $data[$col->getLabel()] = $value->getRawValue();
484 $data[$col->getLabel()] = $value;
488 return $data;
492 * Builds the SQL statement to select the data for this page and schema
550 * Returns the timestamp from the current data
568 * Check if the given data validates against the current types.
570 * @param array $data
573 public function getValidator($data)
575 return new AccessDataValidator($this, $data);
579 * Returns true if data is of type "page"
592 * Returns true if data is of type "global"
605 * Returns true if data is of type "serial"
618 * Global and serial data require additional queries. They are put into query queue
631 * Executed when updating global and serial data. Otherwise removed (deselected) values linger in database.