Example #1
0
 /**
  * @param FilesystemInterface $_fs
  * @return File
  */
 public function getSyllabusFile(FilesystemInterface $_fs)
 {
     if ($this->syllabus_id && !$this->_syllabus) {
         $this->_syllabus = File::find($this->_pdo, $_fs, $this->syllabus_id);
     }
     return $this->_syllabus;
 }
Example #2
0
 /**
  * @param FilesystemInterface $_fs
  * @return File
  */
 public function getImageFile(FilesystemInterface $_fs)
 {
     if ($this->image_file_id && !$this->_image_file) {
         $this->_image_file = File::find($this->_pdo, $_fs, $this->image_file_id);
     }
     return $this->_image_file;
 }