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


PHP VmController類代碼示例

本文整理匯總了PHP中VmController的典型用法代碼示例。如果您正苦於以下問題:PHP VmController類的具體用法?PHP VmController怎麽用?PHP VmController使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了VmController類的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: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


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