function createFolder($path) { if (!is_dir($path)) { PW_FileOperate::createFolder(dirname($path)); @mkdir($path); @chmod($path, 0777); } }
function createChannel($name, $alias, $theme, $domain) { $channelId = $this->addChannel($name, $alias, $theme, $domain); $channelPath = $this->getChannelPath($alias); L::loadClass('fileoperate', 'utility', false); PW_FileOperate::createFolder(S::escapePath($channelPath)); $this->_createChannelFiles($theme, $alias, $name); return $channelId; }