Example #1
0
 /**
  * @return bool|null
  */
 public function view()
 {
     // Check for a valid File in the view
     $f = $this->getFileObject();
     $this->set('f', $f);
     // On-State image available
     $foS = $this->getFileOnstateObject();
     $this->set('foS', $foS);
     $imgPaths = [];
     $imgPaths['hover'] = File::getRelativePathFromID($this->fOnstateID);
     $imgPaths['default'] = File::getRelativePathFromID($this->getFileID());
     $this->set('imgPaths', $imgPaths);
     $this->set('altText', $this->getAltText());
     $this->set('title', $this->getTitle());
     $this->set('linkURL', $this->getLinkURL());
     $this->set('c', Page::getCurrentPage());
 }