Lines Matching refs:this

43         $this->id = $id;
44 $this->rev = $rev;
45 $this->published = 0;
46 $this->status = Constants::STATUS_DRAFT;
48 $this->schema = new Schema('structpublish');
49 $this->statusCol = $this->schema->findColumn('status');
50 $this->versionCol = $this->schema->findColumn('version');
51 $this->userCol = $this->schema->findColumn('user');
52 $this->datetimeCol = $this->schema->findColumn('datetime');
53 $this->revisionCol = $this->schema->findColumn('revision');
56 $values = $this->getCoreData(['revision=' . $this->rev]);
59 $this->status = $values[$this->statusCol->getColref() - 1]->getRawValue();
60 $this->version = $values[$this->versionCol->getColref() - 1]->getRawValue();
61 $this->user = $values[$this->userCol->getColref() - 1]->getRawValue();
62 $this->datetime = $values[$this->datetimeCol->getColref() - 1]->getRawValue();
73 if ($this->status === Constants::STATUS_PUBLISHED) {
74 $this->published = 1;
77 $this->updateCoreData($this->id);
87 return $this->version;
97 $this->version = $version;
107 return $this->rev;
111 * Get the current status of this revision
117 return $this->status;
121 * Set the current status of this revision
127 $this->status = $status;
131 * Get the user that changed the status of this revision
139 return $this->user;
149 $this->user = $user;
153 * The datetime when the status of this revision was changed
161 return $this->datetime;
165 * The timestamp of when the status of this revision was changed
173 if ($this->datetime === null) {
176 return strtotime($this->datetime);
180 * Set the datetime when the status of this revision was changed
188 $this->datetime = $time;
192 * Set the timestamp of when the status of this revision was changed
196 $this->datetime = date('Y-m-d\TH:i', $timestamp);
200 * The page ID this revision is for
206 return $this->id;
218 'status' => $this->status,
219 'user' => $this->user,
220 'datetime' => $this->datetime,
221 'revision' => $this->rev,
222 'version' => $this->version,
226 $access->setPublished($this->published);
280 $latestPublished = $this->getCoreData($andFilters);
287 $this->id,
288 $latestPublished[$this->revisionCol->getColref() - 1]->getRawValue()
291 $published->setStatus($latestPublished[$this->statusCol->getColref() - 1]->getRawValue());
292 $published->setUser($latestPublished[$this->userCol->getColref() - 1]->getRawValue());
293 $published->setDatetime($latestPublished[$this->datetimeCol->getColref() - 1]->getRawValue());
294 $published->setVersion($latestPublished[$this->versionCol->getColref() - 1]->getRawValue());