public function build($info, $content) { ProviderLog::start('TemplateBuilder::_buildTemplate'); $result = $this->_buildTemplate($info, $content); ProviderLog::end('TemplateBuilder::_buildTemplate'); return $result; }
public function complete() { ProviderLog::start('Chunk complete'); $content = ''; for ($i = 1, $count = (int) $this->_lastChunk['total']; $i <= $count; $i++) { if (!file_exists($this->_chunkFolder . "/{$i}")) { trigger_error('Missing chunk #' . $i . ' : ' . implode(' / ', scandir($this->_chunkFolder)), E_USER_NOTICE); } $data = FilesHelper::readFile($this->_chunkFolder . "/{$i}"); if (!empty($this->_lastChunk['encode'])) { $data = base64_decode($data); } $content .= $data; } FilesHelper::removeDir($this->_chunkFolder); $content = empty($this->_lastChunk['encode']) ? $content : rawurldecode($content); ProviderLog::end('Chunk complete'); return $content; }
function getProject($themeName) { ProviderLog::start('getProject'); $projectPath = getProjectPath($themeName); $result = getJsonContent($projectPath); ProviderLog::end('getProject'); return $result; }
public function uploadTheme() { ProviderLog::start('uploadTheme'); $result = upload($this->_themeName, 'uploadTheme'); ProviderLog::end('uploadTheme'); return $result; }