/** * 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); }
/** * 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(); }
/** * 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); }
/** * 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); }
/** * Handle the edit task */ function edit($view = 0) { //We set here the tsmart_user_id, when no tsmart_user_id is set to 0, for adding a new user //In every other case the tsmart_user_id is sent. $cid = vRequest::getVar('tsmart_user_id'); if (!isset($cid)) { vRequest::setVar('tsmart_user_id', (int) 0); } parent::edit('edit'); }
/** * We want to allow html so we need to overwrite some request data * * @author Max Milbers */ function save($data = 0) { //ACL if (!vmAccess::manager('category.edit')) { JFactory::getApplication()->redirect('index.php?option=com_tsmart', tsmText::_('JERROR_ALERTNOAUTHOR'), 'error'); } $data = vRequest::getRequest(); $data['category_name'] = vRequest::getHtml('category_name', ''); $data['category_description'] = vRequest::getHtml('category_description', ''); parent::save($data); }
function save($data = 0) { if ($data === 0) { $data = vRequest::getPost(); } $data['custom_desc'] = vRequest::getHtml('custom_desc'); $data['custom_value'] = vRequest::getHtml('custom_value'); $data['layout_pos'] = vRequest::getCmd('layout_pos'); if (isset($data['params'])) { $data['params'] = vRequest::getHtml('params', ''); } // onSaveCustom plugin; parent::save($data); }
/** * We want to allow html in the descriptions. * * @author Max Milbers */ function save($data = 0) { $data = vRequest::getPost(); if (vmAccess::manager('raw')) { $data['shipment_name'] = vRequest::get('shipment_name', ''); $data['shipment_desc'] = vRequest::get('shipment_desc', ''); if (isset($data['params'])) { $data['params'] = vRequest::get('params', ''); } } else { $data['shipment_name'] = vRequest::getHtml('shipment_name', ''); $data['shipment_desc'] = vRequest::getHtml('shipment_desc', ''); if (isset($data['params'])) { $data['params'] = vRequest::getHtml('params', ''); } } parent::save($data); }
function save($data = 0) { if ($data === 0) { $data = vRequest::getPost(); } if (vmAccess::manager('raw')) { $data['description'] = vRequest::get('description', ''); if (isset($data['params'])) { $data['params'] = vRequest::get('params', ''); } } else { $data['description'] = vRequest::getHtml('description', ''); if (isset($data['params'])) { $data['params'] = vRequest::getHtml('params', ''); } } $data['name'] = vRequest::getCmd('name'); // onSaveCustom plugin; parent::save($data); }
public function __construct() { parent::__construct(); }
/** * Method to display the view * * @access public * @author */ function __construct() { tsmConfig::loadJLang('com_tsmart_media'); parent::__construct('tsmart_media_id'); }
/** * Method to display the view * * @access public * @author RickG, Max Milbers */ function __construct() { parent::__construct('tsmart_state_id'); $country = vRequest::getInt('tsmart_country_id', 0); $this->redirectPath .= $country > 0 ? '&tsmart_country_id=' . $country : ''; }
/** * Method to display the view * * @access public * @author */ function __construct() { parent::__construct(); tsmConfig::loadJLang('com_tsmart_orders', TRUE); }
/** * Display the order item details for editing */ public function editOrderItem() { vRequest::setVar('layout', 'orders_editorderitem'); parent::display(); }
/** * Method to display the view * * @access public */ function __construct() { tsmConfig::loadJLang('com_tsmart_config'); parent::__construct(); }
/** * Method to display the view * * @access public * @author */ function __construct() { parent::__construct('tsmart_manufacturercategories_id'); }
/** * Method to display the view * * @access public */ function __construct() { parent::__construct('tsmart_shoppergroup_id'); }
function unpublish($cidname = 0, $table = 0, $redirect = 0) { vRequest::vmCheckToken(); $layout = vRequest::getString('layout', 'default'); if ($layout == 'list_reviews') { $tsmart_product_id = vRequest::getInt('tsmart_product_id'); if (is_array($tsmart_product_id) && count($tsmart_product_id) > 0) { $tsmart_product_id = (int) $tsmart_product_id[0]; } else { $tsmart_product_id = (int) $tsmart_product_id; } $redPath = ''; if (!empty($tsmart_product_id)) { $redPath = '&task=listreviews&tsmart_product_id=' . $tsmart_product_id; } parent::unpublish('tsmart_rating_review_id', 'rating_reviews', $this->redirectPath . $redPath); } else { parent::unpublish(); } }
/** * We want to allow html so we need to overwrite some request data * * @author Max Milbers */ function save($data = 0) { $data = vRequest::getRequest(); parent::save($data); }
/** * We want to allow html so we need to overwrite some request data * * @author Max Milbers */ function save($data = 0) { if ($data === 0) { $data = vRequest::getRequest(); } if (vmAccess::manager('raw')) { $data['product_desc'] = vRequest::get('product_desc', ''); $data['product_s_desc'] = vRequest::get('product_s_desc', ''); $data['customtitle'] = vRequest::get('customtitle', ''); if (isset($data['field'])) { $data['field'] = vRequest::get('field'); } if (isset($data['childs'])) { foreach ($data['childs'] as $k => $v) { if ($n = vRequest::get('product_name', false, FILTER_UNSAFE_RAW, FILTER_FLAG_NO_ENCODE, $data['childs'][$k])) { $data['childs'][$k]['product_name'] = $n; } } } } else { if (vmAccess::manager('html')) { $data['product_desc'] = vRequest::getHtml('product_desc', ''); $data['product_s_desc'] = vRequest::getHtml('product_s_desc', ''); $data['customtitle'] = vRequest::getHtml('customtitle', ''); if (isset($data['field'])) { $data['field'] = vRequest::getHtml('field'); } } else { $data['product_desc'] = vRequest::getString('product_desc', ''); $data['product_s_desc'] = vRequest::getString('product_s_desc', ''); $data['customtitle'] = vRequest::getString('customtitle', ''); if (isset($data['field'])) { $data['field'] = vRequest::getString('field'); } } //Why we have this? $multix = tsmConfig::get('multix', 'none'); if ($multix != 'none') { //in fact this shoudl be used, when the mode is administrated and the system is so that //every product must be approved by an admin. unset($data['published']); //unset($data['childs']); } } parent::save($data); }