Lines Matching defs:ts
22 protected $ts = 0;
57 public static function getPageAccess($tablename, $pid, $ts = 0)
59 $schema = new Schema($tablename, $ts);
60 return new AccessTablePage($schema, $pid, $ts, 0);
80 * @param int $ts Time at which the data should be read or written
85 public static function bySchema(Schema $schema, $pid, $ts = 0, $rid = 0)
87 if (self::isTypePage($pid, $ts)) {
88 return new AccessTablePage($schema, $pid, $ts, $rid);
90 return new AccessTableGlobal($schema, $pid, $ts, $rid);
98 * @param int $ts Time at which the data should be read or written
104 public static function byTableName($tablename, $pid, $ts = 0, $rid = 0)
108 if (!self::isTypePage($pid, $ts)) {
111 $schema = new Schema($tablename, $ts);
113 return self::bySchema($schema, $pid, $ts, $rid);
119 * @param Schema $schema The schema valid at $ts
121 * @param int $ts Time at which the data should be read or written, 0 for now
124 public function __construct($schema, $pid, $ts = 0, $rid = 0)
137 $this->setTimestamp($ts);
442 $idColumn = self::isTypePage($this->pid, $this->ts) ? 'pid' : 'rid';
538 * @param int $ts
540 public function setTimestamp($ts)
542 if ($ts && $ts < $this->schema->getTimeStamp()) {
546 $this->ts = $ts;
555 return $this->ts;