/** * Creates a new absolute file. * * @param MCManager $manager MCManager reference. * @param String $absolute_path Absolute path to local file. * @param String $child_name Name of child file (Optional). * @param String $type Optional file type. */ function Moxiecode_ZipFileImpl(&$manager, $absolute_path, $child_name = "", $type = MC_IS_FILE) { Moxiecode_BaseFileImpl::Moxiecode_BaseFileImpl($manager, $absolute_path, $child_name, $type); $matches = array(); $this->_absPath = str_replace("zip://", "", $this->_absPath); preg_match("/^(.*?.zip)(.*?)\$/i", $this->_absPath, $matches); $this->_zipPath = $matches[1]; $this->_innerPath = $matches[2]; if (!$this->_innerPath) { $this->_innerPath = "/"; } }
function FavoriteFile(&$manager, $absolute_path, $child_name = "", $type = MC_IS_FILE) { $absolute_path = str_replace('favorite://', '', $absolute_path); Moxiecode_BaseFileImpl::Moxiecode_BaseFileImpl($manager, $absolute_path, $child_name, $type); }