Esempio n. 1
0
 /**
  * 添付ファイルを取得
  * @return array
  */
 public function attach($with_hidden = false)
 {
     $files = FileUtility::getExists(AttachFile::$dir, true);
     // ページに含まれる添付ファイルがない場合ここで終了
     if (!isset($files[$this->page])) {
         return;
     }
     return $files[$this->page];
 }
Esempio n. 2
0
 /**
  * 全添付ファイルを取得
  */
 private function getAttaches()
 {
     static $files;
     $files = FileUtility::getExists(AttachFile::$dir, true);
     // ページに含まれる添付ファイルがない場合ここで終了
     if (!isset($files[$this->page][$this->filename])) {
         return;
     }
     return $files[$this->page][$this->filename];
 }