public function file_url($file) { return CMS::file_url($file->path); }
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; }
protected function file_url($path) { return CMS::file_url($path); }
public function url() { return CMS::file_url($this->name); }