當前位置: 首頁>>代碼示例>>PHP>>正文


PHP vRequest::getHtml方法代碼示例

本文整理匯總了PHP中vRequest::getHtml方法的典型用法代碼示例。如果您正苦於以下問題:PHP vRequest::getHtml方法的具體用法?PHP vRequest::getHtml怎麽用?PHP vRequest::getHtml使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在vRequest的用法示例。


在下文中一共展示了vRequest::getHtml方法的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 = vRequest::getRequest();
     $data['currency_positive_style'] = vRequest::getHtml('currency_positive_style', '');
     $data['currency_negative_style'] = vRequest::getHtml('currency_negative_style', '');
     parent::save($data);
 }
開發者ID:cuongnd,項目名稱:etravelservice,代碼行數:12,代碼來源:allocation.php

示例2: save

	function save($data = 0){

		$fileModel = VmModel::getModel('media');

		//Now we try to determine to which this media should be long to
		$data = vRequest::getRequest();

		//$data['file_title'] = vRequest::getVar('file_title','','post','STRING',JREQUEST_ALLOWHTML);
		$data['file_description'] = vRequest::getHtml('file_description','');

		$data['media_attributes'] = vRequest::getCmd('media_attributes');
		$data['file_type'] = vRequest::getCmd('file_type');
		if(empty($data['file_type'])){
			$data['file_type'] = $data['media_attributes'];
		}

		$msg = '';
		if ($id = $fileModel->store($data)) {
			$msg = vmText::_('COM_VIRTUEMART_FILE_SAVED_SUCCESS');
		}

		$cmd = vRequest::getCmd('task');
		if($cmd == 'apply'){
			$redirection = 'index.php?option=com_virtuemart&view=media&task=edit&virtuemart_media_id='.$id;
		} else {
			$redirection = 'index.php?option=com_virtuemart&view=media';
		}

		$this->setRedirect($redirection, $msg);
	}
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:30,代碼來源:media.php

示例3: 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

示例4: 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

示例5: 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

示例6: 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:cuongnd,項目名稱:etravelservice,代碼行數:15,代碼來源:calc.php

示例7: 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

示例8: save

 /**
  * 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);
 }
開發者ID:cuongnd,項目名稱:etravelservice,代碼行數:16,代碼來源:category.php

示例9: save

	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);
	}
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:12,代碼來源:custom.php

示例10: save

 /**
  * 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();
     }
     $user = JFactory::getUser();
     if ($user->authorise('core.admin', 'com_virtuemart') or $user->authorise('core.manage', 'com_virtuemart') or $user->authorise('vm.raw', 'com_virtuemart')) {
         $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 ($user->authorise('vm.html', 'com_virtuemart')) {
             $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 = Vmconfig::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);
 }
開發者ID:brenot,項目名稱:forumdesenvolvimento,代碼行數:52,代碼來源:product.php

示例11: save

 function save($data = 0)
 {
     $data = vRequest::getPost();
     if (vmAccess::manager('raw')) {
         $data['payment_name'] = vRequest::get('payment_name', '');
         $data['payment_desc'] = vRequest::get('payment_desc', '');
         if (isset($data['params'])) {
             $data['params'] = vRequest::get('params', '');
         }
     } else {
         $data['payment_name'] = vRequest::getHtml('payment_name', '');
         $data['payment_desc'] = vRequest::getHtml('payment_desc', '');
         if (isset($data['params'])) {
             $data['params'] = vRequest::getHtml('params', '');
         }
     }
     parent::save($data);
 }
開發者ID:sam-akopyan,項目名稱:hamradio,代碼行數:18,代碼來源:paymentmethod.php

示例12: save

 function save($data = 0)
 {
     $data = vRequest::getPost();
     $user = JFactory::getUser();
     if ($user->authorise('core.admin', 'com_virtuemart') or $user->authorise('core.manage', 'com_virtuemart')) {
         $data['payment_name'] = vRequest::get('payment_name', '');
         $data['payment_desc'] = vRequest::get('payment_desc', '');
         if (isset($data['params'])) {
             $data['params'] = vRequest::get('params', '');
         }
     } else {
         $data['payment_name'] = vRequest::getHtml('payment_name', '');
         $data['payment_desc'] = vRequest::getHtml('payment_desc', '');
         if (isset($data['params'])) {
             $data['params'] = vRequest::getHtml('params', '');
         }
     }
     parent::save($data);
 }
開發者ID:naka211,項目名稱:studiekorrektur,代碼行數:19,代碼來源:paymentmethod.php

示例13: save

	function save($data = 0) {

		if($data===0) $data = vRequest::getPost();

		$user = JFactory::getUser();
		if($user->authorise('core.admin','com_virtuemart') or $user->authorise('core.manage','com_virtuemart')){
			$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);
	}
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:20,代碼來源:userfields.php

示例14: save

 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);
 }
開發者ID:sam-akopyan,項目名稱:hamradio,代碼行數:20,代碼來源:userfields.php

示例15: save

 /**
  * We want to allow html so we need to overwrite some request data
  *
  * @author Max Milbers
  */
 function save($data = 0)
 {
     $data = vRequest::getRequest();
     $user = JFactory::getUser();
     if (!($user->authorise('core.admin', 'com_virtuemart') or $user->authorise('core.manage', 'com_virtuemart'))) {
         $data['product_desc'] = vRequest::get('product_desc', '');
         $data['product_s_desc'] = vRequest::get('product_s_desc', '');
         $data['customtitle'] = vRequest::get('customtitle', '');
     } else {
         $data['product_desc'] = vRequest::getHtml('product_desc', '');
         //Why we have this?
         $multix = Vmconfig::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);
 }
開發者ID:lenard112,項目名稱:cms,代碼行數:26,代碼來源:product.php


注:本文中的vRequest::getHtml方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。