本文整理匯總了PHP中VmConfig::showDebug方法的典型用法代碼示例。如果您正苦於以下問題:PHP VmConfig::showDebug方法的具體用法?PHP VmConfig::showDebug怎麽用?PHP VmConfig::showDebug使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類VmConfig
的用法示例。
在下文中一共展示了VmConfig::showDebug方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: saveorder
function saveorder()
{
vRequest::vmCheckToken();
$cid = vRequest::getInt($this->_cidName, vRequest::getInt('cid', array()));
$order = vRequest::getInt('order', array());
$model = $this->getModel($this->_cname);
if (!$model->saveorder($cid, $order)) {
$msg = 'error';
} else {
if (JFactory::getApplication()->isAdmin() and VmConfig::showDebug()) {
$msg = vmText::sprintf('COM_VIRTUEMART_NEW_ORDERING_SAVEDF', $this->mainLangKey);
} else {
$msg = vmText::sprintf('COM_VIRTUEMART_NEW_ORDERING_SAVED');
}
}
$this->setRedirect($this->redirectPath, $msg);
}
示例2: saveorder
function saveorder()
{
JRequest::checkToken() or jexit('Invalid Token');
$cid = JRequest::getVar($this->_cidName, JRequest::getVar('cid', array(0)), 'post', 'array');
$order = JRequest::getVar('order', array(), 'post', 'array');
JArrayHelper::toInteger($cid);
JArrayHelper::toInteger($order);
$model = VmModel::getModel($this->_cname);
if (!$model->saveorder($cid, $order)) {
$msg = 'error';
} else {
if (JFactory::getApplication()->isAdmin() and VmConfig::showDebug()) {
$msg = vmText::sprintf('COM_VIRTUEMART_NEW_ORDERING_SAVEDF', $this->mainLangKey);
} else {
$msg = vmText::sprintf('COM_VIRTUEMART_NEW_ORDERING_SAVED');
}
}
$this->setRedirect($this->redirectPath, $msg);
}