Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/herald/PhrictionDocumentHeraldAdapter.php
Show All 14 Lines | final class PhrictionDocumentHeraldAdapter extends HeraldAdapter { | ||||
protected function initializeNewAdapter() { | protected function initializeNewAdapter() { | ||||
$this->document = $this->newObject(); | $this->document = $this->newObject(); | ||||
} | } | ||||
protected function newObject() { | protected function newObject() { | ||||
return new PhrictionDocument(); | return new PhrictionDocument(); | ||||
} | } | ||||
public function isTestAdapterForObject($object) { | |||||
return ($object instanceof PhrictionDocument); | |||||
} | |||||
public function getAdapterTestDescription() { | |||||
return pht( | |||||
'Test rules which run when a wiki document is created or updated.'); | |||||
} | |||||
public function setObject($object) { | |||||
$this->document = $object; | |||||
return $this; | |||||
} | |||||
public function getObject() { | public function getObject() { | ||||
return $this->document; | return $this->document; | ||||
} | } | ||||
public function setDocument(PhrictionDocument $document) { | public function setDocument(PhrictionDocument $document) { | ||||
$this->document = $document; | $this->document = $document; | ||||
return $this; | return $this; | ||||
} | } | ||||
Show All 25 Lines |