本文整理汇总了PHP中AImporter::controller方法的典型用法代码示例。如果您正苦于以下问题:PHP AImporter::controller方法的具体用法?PHP AImporter::controller怎么用?PHP AImporter::controller使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AImporter
的用法示例。
在下文中一共展示了AImporter::controller方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exportPDF
public function exportPDF()
{
AImporter::controller('passengers');
$controller = new BookproControllerPassengers();
return $controller->exportpdf();
}
示例2: jimport
// import joomla controller library
jimport('joomla.application.component.controller');
require_once JPATH_ROOT . DS . 'components' . DS . 'com_bookpro' . DS . 'libraries' . DS . 'rad' . DS . 'bootstrap.php';
//insert file bug
require_once JPATH_ROOT . DS . 'components' . DS . 'com_bookpro' . DS . 'libraries' . DS . 'base' . DS . 'libs' . DS . 'basic.php';
/* @var $language JLanguage */
$language = JFactory::getLanguage();
$language->load('com_bookpro', JPATH_SITE, null, true);
//insert base
include JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'importer.php';
include JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php';
AImporter::defines();
AImporter::helper('bookpro', 'factory', 'html', 'log');
$error_lifetime = JFactory::getApplication()->getUserState('com_bookpro.errors.lifetime', 0, 'int');
$error_lifetime = $error_lifetime > time() ? 1 : 0;
JBLog::init($error_lifetime);
JHtml::_('bootstrap.framework');
$document = JFactory::getDocument();
$document->addScript(JURI::root() . 'components/com_bookpro/assets/js/bookpro.js');
//AImporter::js('common', 'joomla.javascript');
$document->addStyleSheet('components/com_bookpro/assets/css/joomla3.css');
JHtml::_('behavior.framework');
$ctr = JFactory::getApplication()->input->get('controller');
if ($ctr) {
$classname = AImporter::controller();
$controller = new $classname();
} else {
$controller = JControllerLegacy::getInstance('bookpro');
}
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();
示例3: exportFlightReport
function exportFlightReport()
{
AImporter::controller('flights');
$controller = new BookproControllerFlights();
return $controller->exportpdf();
}
示例4: exporttransport
public function exporttransport()
{
AImporter::controller('transportreports');
$controller = new BookproControllertransportreports();
return $controller->exportPDF();
}