本文整理汇总了PHP中VmController类的典型用法代码示例。如果您正苦于以下问题:PHP VmController类的具体用法?PHP VmController怎么用?PHP VmController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了VmController类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: save
/**
* We want to allow html so we need to overwrite some request data
*
* @author Max Milbers
*/
function save($data = 0)
{
$data = vRequest::getRequest();
$data['currency_positive_style'] = vRequest::getHtml('currency_positive_style', '');
$data['currency_negative_style'] = vRequest::getHtml('currency_negative_style', '');
parent::save($data);
}
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:12,代码来源:currency.php
示例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();
}
开发者ID:sam-akopyan,项目名称:hamradio,代码行数:12,代码来源:updatesmigration.php
示例3: save
/**
* We want to allow html so we need to overwrite some request data
*
* @author Max Milbers
*/
function save()
{
$data = JRequest::get('post');
$data['calc_name'] = JRequest::getVar('calc_name', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
$data['calc_descr'] = JRequest::getVar('calc_descr', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
parent::save($data);
}
开发者ID:joselapria,项目名称:virtuemart,代码行数:12,代码来源:calc.php
示例4: save
/**
* We want to allow html so we need to overwrite some request data
*
* @author Max Milbers
*/
function save($data = 0)
{
$data = JRequest::get('post');
$data['calc_name'] = $this->filterText('calc_name');
$data['calc_descr'] = $this->filterText('calc_descr');
parent::save($data);
}
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:12,代码来源:calc.php
示例5: save
/**
* We want to allow html so we need to overwrite some request data
*
* @author Max Milbers
*/
function save($data = 0)
{
$data = JRequest::get('post');
$data['currency_positive_style'] = JRequest::getVar('currency_positive_style', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
$data['currency_negative_style'] = JRequest::getVar('currency_negative_style', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
parent::save($data);
}
开发者ID:Gskflute,项目名称:joomla25,代码行数:12,代码来源:currency.php
示例6: Userfields
function Userfields()
{
$document = JFactory::getDocument();
$viewType = $document->getType();
$view = $this->getView('userfields', $viewType);
parent::display();
}
开发者ID:lenard112,项目名称:cms,代码行数:7,代码来源:userfields.php
示例7: save
/**
* We want to allow html in the descriptions.
*
* @author Max Milbers
*/
function save($data = 0)
{
$data = JRequest::get('post');
// TODO disallow shipment_name as HTML
$data['shipment_name'] = JRequest::getVar('shipment_name', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
$data['shipment_desc'] = JRequest::getVar('shipment_desc', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
parent::save($data);
}
开发者ID:rubengarcia0510,项目名称:tienda,代码行数:13,代码来源:shipmentmethod.php
示例8: save
/**
* Handle the save task
* Checks already in the controller the rights todo so and sets the data by filtering the post
*
* @author Max Milbers
*/
function save()
{
/* Load the data */
$data = JRequest::get('post');
/* add the mf desc as html code */
$data['mf_desc'] = JRequest::getVar('mf_desc', '', 'post', 'string', JREQUEST_ALLOWHTML);
parent::save($data);
}
开发者ID:joselapria,项目名称:virtuemart,代码行数:14,代码来源:manufacturer.php
示例9: save
/**
* We want to allow html in the descriptions.
*
* @author Max Milbers
*/
function save($data = 0)
{
$data = JRequest::get('post');
// TODO disallow shipment_name as HTML
$data['shipment_name'] = $this->filterText('shipment_name');
$data['shipment_desc'] = $this->filterText('shipment_desc');
parent::save($data);
}
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:13,代码来源:shipmentmethod.php
示例10: save
function save($data = 0)
{
$data = vRequest::getRequest();
// TODO disallow html in paym_name ?
$data['payment_name'] = vRequest::getHtml('payment_name', '');
$data['payment_desc'] = vRequest::getHtml('payment_desc', '');
parent::save($data);
}
开发者ID:lenard112,项目名称:cms,代码行数:8,代码来源:paymentmethod.php
示例11: save
function save($data = 0)
{
$data = JRequest::get('post');
// TODO disallow html in paym_name ?
$data['payment_name'] = $this->filterText('payment_name');
$data['payment_desc'] = $this->filterText('payment_desc');
parent::save($data);
}
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:8,代码来源:paymentmethod.php
示例12: save
/**
* Handle the save task
* Checks already in the controller the rights todo so and sets the data by filtering the post
*
* @author Max Milbers
*/
function save($data = 0)
{
/* Load the data */
$data = JRequest::get('post');
/* add the mf desc as html code */
$data['mf_desc'] = $this->filterText('mf_desc');
parent::save($data);
}
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:14,代码来源:manufacturer.php
示例13: save
/**
* We want to allow html in the descriptions.
*
* @author Max Milbers
*/
function save($data = 0)
{
$data = vRequest::getRequest();
// TODO disallow shipment_name as HTML
$data['shipment_name'] = vRequest::getHtml('shipment_name', '');
$data['shipment_desc'] = vRequest::getHtml('shipment_desc', '');
parent::save($data);
}
开发者ID:lenard112,项目名称:cms,代码行数:13,代码来源:shipmentmethod.php
示例14: save
function save($data = 0)
{
$data = JRequest::get('post');
// TODO disallow html in paym_name ?
$data['payment_name'] = JRequest::getVar('payment_name', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
$data['payment_desc'] = JRequest::getVar('payment_desc', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
parent::save($data);
}
开发者ID:sergy444,项目名称:joomla,代码行数:8,代码来源:paymentmethod.php
示例15: save
/**
* Handle the save task
* Checks already in the controller the rights and sets the data by filtering the post
*
* @author Max Milbers
*/
function save($data = 0)
{
/* Load the data */
$data = vRequest::getRequest();
/* add the mf desc as html code */
$data['mf_desc'] = vRequest::getHtml('mf_desc', '');
parent::save($data);
}
开发者ID:cybershocik,项目名称:Darek,代码行数:14,代码来源:manufacturer.php
示例16: edit
/**
* Handle the edit task
*/
function edit($view=0){
//We set here the virtuemart_user_id, when no virtuemart_user_id is set to 0, for adding a new user
//In every other case the virtuemart_user_id is sent.
$cid = vRequest::getVar('virtuemart_user_id');
if(!isset($cid)) vRequest::setVar('virtuemart_user_id', (int)0);
parent::edit('edit');
}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:12,代码来源:user.php
示例17: save
/**
* We want to allow html so we need to overwrite some request data
*
* @author Max Milbers
*/
function save($data = 0)
{
$data = JRequest::get('post');
$data['category_name'] = JRequest::getVar('category_name', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
$data['category_description'] = JRequest::getVar('category_description', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
//TODO multi-x
$data['virtuemart_vendor_id'] = 1;
parent::save($data);
}
开发者ID:Gskflute,项目名称:joomla25,代码行数:14,代码来源:category.php
示例18: save
/**
* We want to allow html so we need to overwrite some request data
*
* @author Max Milbers
*/
function save($data = 0)
{
$data = vRequest::getRequest();
$data['calc_name'] = vRequest::getHtml('calc_name', '');
$data['calc_descr'] = vRequest::getHtml('calc_descr', '');
if (isset($data['params'])) {
$data['params'] = vRequest::getHtml('params', '');
}
parent::save($data);
}
开发者ID:cybershocik,项目名称:Darek,代码行数:15,代码来源:calc.php
示例19: save
/**
* We want to allow html so we need to overwrite some request data
*
* @author Max Milbers
*/
function save($data = 0)
{
//ACL
if (!JFactory::getUser()->authorise('vm.category.edit', 'com_virtuemart')) {
JFactory::getApplication()->redirect('index.php?option=com_virtuemart', vmText::_('JERROR_ALERTNOAUTHOR'), 'error');
}
$data = vRequest::getRequest();
$data['category_name'] = vRequest::getHtml('category_name', '');
$data['category_description'] = vRequest::getHtml('category_description', '');
parent::save($data);
}
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:16,代码来源:category.php
示例20: save
/**
* We want to allow html so we need to overwrite some request data
*
* @author Max Milbers
*/
function save($data = 0)
{
//ACL
if (!JFactory::getUser()->authorise('vm.category.edit', 'com_virtuemart')) {
JFactory::getApplication()->redirect('index.php?option=com_virtuemart', JText::_('JERROR_ALERTNOAUTHOR'), 'error');
}
$data = JRequest::get('post');
$data['category_name'] = JRequest::getVar('category_name', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
$data['category_description'] = JRequest::getVar('category_description', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
parent::save($data);
}
开发者ID:Arturogcalleja,项目名称:herbolario,代码行数:16,代码来源:category.php
注:本文中的VmController类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论