本文整理汇总了PHP中VmController::display方法的典型用法代码示例。如果您正苦于以下问题:PHP VmController::display方法的具体用法?PHP VmController::display怎么用?PHP VmController::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VmController
的用法示例。
在下文中一共展示了VmController::display方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Userfields
function Userfields()
{
$document = JFactory::getDocument();
$viewType = $document->getType();
$view = $this->getView('userfields', $viewType);
parent::display();
}
示例2: checkForLatestVersion
/**
* Install sample data into the database
*
* @author RickG
*/
function checkForLatestVersion()
{
$model = $this->getModel('updatesMigration');
vRequest::setVar('latestverison', $model->getLatestVersion());
vRequest::setVar('view', 'updatesMigration');
parent::display();
}
示例3:
/**
* Generic edit task
*/
function edit_review()
{
vRequest::setVar('controller', $this->_cname);
vRequest::setVar('view', $this->_cname);
vRequest::setVar('layout', 'edit_review');
if (empty($view)) {
$document = JFactory::getDocument();
$viewType = $document->getType();
$view = $this->getView($this->_cname, $viewType);
}
parent::display();
}
示例4: editOrderItem
/**
* Display the order item details for editing
*/
public function editOrderItem()
{
vRequest::setVar('layout', 'orders_editorderitem');
parent::display();
}
示例5: exportOrdersAsCSV
public function exportOrdersAsCSV()
{
$model = VmModel::getModel();
$idArray = JRequest::getVar('cid', 0, '', 'array');
$orders = array();
foreach ($idArray as $orderId) {
$orders[] = $model->getOrder($orderId);
}
$csv = '';
$head = array('virtuemart_order_userinfo_id', 'virtuemart_vendor_id', 'order_number', 'order_total', 'order_subtotal', 'order_tax', 'order_status', 'user_currency_rate', 'customer_note');
foreach ($head as $item) {
$csv .= '"' . $item . '";"';
}
foreach ($orders as $order) {
// $order = (array) $order;7
// $order['details']
// $order['items']
// $order['calc_rules']
$attribs = get_object_vars($order['details']['BT']);
// $csv = '"BT"';
// foreach($attribs as $k=>$v){
// $csv .= ';"'.$k.':'$v;
// }
// $csv .= "\n";
}
$jUser = JFactory::getUser();
$date = date("Y-m-d");
$name = $jUser->name . $date . '.csv';
// header("Content-Disposition: attachment; filename=\"".JFile::getName($media->file_url)."\"");
// header("Content-Disposition: attachment; filename=\"".$name."\"");
// echo $csv;
parent::display();
// jExit();
}
示例6:
/**
* Generic edit task
*
* @author Max Milbers
*/
function edit_review()
{
JRequest::setVar('layout', 'edit_review');
JRequest::setVar('hidemainmenu', 1);
parent::display();
}