public function apply($value) { return Page\Record::getLoad($value) === false ? false : true; }
private function getStatus() { $status = array(); $result = Page\Record::getStatus(); foreach ($result as $k => $v) { array_push($status, array('label' => $v, 'value' => $k)); } return $status; }
protected function buildPage(DocumentAbstract $document, Page\Record $page) { // subject $subject = $this->config['psx_url'] . '/' . $this->config['psx_dispatch'] . $page->path; $document->setSubject($subject); // meta $document->addProperty('http://ns.amun-project.org/2011/meta/id', $page->globalId); $document->addProperty('http://ns.amun-project.org/2011/meta/title', $page->title); $document->addProperty('http://ns.amun-project.org/2011/meta/date', $page->getDate()->format(DateTime::ATOM)); }