Esempio n. 1
0
 public function file_url($file)
 {
     return CMS::file_url($file->path);
 }
Esempio n. 2
0
 public function imagelist($parms)
 {
     $id = (int) $parms['id'];
     $ar = array();
     if (IO_FS::exists("./" . Core::option('files_name') . "/vars/{$id}")) {
         foreach (IO_FS::Dir("./" . Core::option('files_name') . "/vars/{$id}") as $f) {
             $fp = $f->path;
             if ($m = Core_Regexps::match_with_results('{/([^/]+)$}', $fp)) {
                 $fp = $m[1];
             }
             $ar[] = '["' . $fp . '","' . CMS::file_url($f->path) . '"]';
         }
     }
     echo 'var tinyMCEImageList = new Array(' . implode(',', $ar) . ');';
     die;
 }
Esempio n. 3
0
 protected function file_url($path)
 {
     return CMS::file_url($path);
 }
Esempio n. 4
0
 public function url()
 {
     return CMS::file_url($this->name);
 }