本文整理汇总了PHP中VmController::save方法的典型用法代码示例。如果您正苦于以下问题:PHP VmController::save方法的具体用法?PHP VmController::save怎么用?PHP VmController::save使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VmController
的用法示例。
在下文中一共展示了VmController::save方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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);
}
示例2: 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);
}
示例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);
}
示例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);
}
示例5: 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);
}
示例6: 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);
}
示例7: 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);
}
示例8: save
/**
* We want to allow html so we need to overwrite some request data
*
* @author Max Milbers, Patrick Kohl
*/
function save($data = 0)
{
$data = JRequest::get('post');
$data['category_name'] = $this->filterText('category_name');
$data['category_description'] = $this->filterText('category_description');
$this->cleanCache('com_virtuemart');
parent::save($data);
}
示例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'] = JRequest::getVar('shipment_name', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
$data['shipment_desc'] = JRequest::getVar('shipment_desc', '', 'post', 'STRING', JREQUEST_ALLOWHTML);
parent::save($data);
}
示例10: 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);
}
示例11: 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);
}
示例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);
}
示例13: 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);
}
示例14: 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);
}
示例15: 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);
}