profiler =& JProfiler::getInstance( 'EasyCreator' ); } $task = JRequest::getVar('task'); $ebc_project = JRequest::getVar('ebc_project', ''); $this->assignRef( 'ebc_project', $ebc_project ); $path = JPATH_COMPONENT.DS.'templates'; $file_path = JRequest::getVar('file_path', ''); $file_name = JRequest::getVar('file_name', ''); $com_type = JRequest::getVar('com_type', ''); $template = JRequest::getVar('template', ''); JLoader::import('helpers.file', JPATH_COMPONENT); $easyFile = new EasyFile(); $this->assignRef('easyFile', $easyFile); JLoader::import('helpers.project', JPATH_COMPONENT); $easyProject = new easyProject(); $comTypes = array( 'com' => JText::_('Components') , 'mod' => JText::_('Modules') , 'plg' => JText::_('Plugins') , 'tpl' => JText::_('Templates') ); $cache =& JFactory::getCache(); # $cache->clean(); $cache->setCaching( 1 ); if( $profiling) $this->profiler->mark('start get templates'); # $templates = $easyProject->getTemplates(); #if( $profiling) $this->profiler->mark('end get templates'); $templates = $cache->call( array( 'EasyProject', 'getTemplates' ) ); if( $profiling) $this->profiler->mark('end get cached templates'); $credits = $easyProject->getTemplateCredits($com_type, $template); $this->assignRef('easyProject', $easyProject); $this->assignRef('task', $task); $this->assignRef('path', $path); $this->assignRef('file_path', $file_path); $this->assignRef('file_name', $file_name); $this->assignRef('com_type', $com_type); $this->assignRef('template', $template); $this->assignRef('easyFile', $easyFile); $this->assignRef('comTypes', $comTypes); $this->assignRef('templates', $templates); $this->assignRef('credits', $credits); $this->setLayout('templates'); parent::display($tpl); if( $profiling) echo '
'.print_r($this->profiler->getBuffer(), true).''; ecrHTML::easyFormEnd(); }// function }// class