Beispiel #1
0
 function JobListLink()
 {
     $page = JobHolder::get()->first();
     if ($page) {
         return $page->getAbsoluteLiveLink(false);
     }
     return '#';
 }
 /**
  * @param IJob $job
  * @throws NotFoundEntityException
  */
 public function publish(IJob $job)
 {
     $parent = JobHolder::get()->first();
     if (!$parent) {
         throw new NotFoundEntityException('JobHolder', '');
     }
     $job->setParent($parent);
     // Should set the ID once the Holder is created...
 }