Example #1
0
File: Load.php Project: visapi/amun
 public function apply($value)
 {
     return Page\Record::getLoad($value) === false ? false : true;
 }
Example #2
0
File: Form.php Project: visapi/amun
 private function getStatus()
 {
     $status = array();
     $result = Page\Record::getStatus();
     foreach ($result as $k => $v) {
         array_push($status, array('label' => $v, 'value' => $k));
     }
     return $status;
 }
Example #3
0
 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));
 }