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


PHP VmModel::store方法代碼示例

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


在下文中一共展示了VmModel::store方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: store

 function store(&$data)
 {
     if (!vmAccess::manager('manufacturercategories')) {
         vmWarn('Insufficient permissions to store manufacturer category');
         return false;
     }
     return parent::store($data);
 }
開發者ID:sam-akopyan,項目名稱:hamradio,代碼行數:8,代碼來源:manufacturercategories.php

示例2: store

 /**
  * Bind the post data to the coupon table and save it
  *
  * @author RickG, Oscar van Eijk
  * @return mixed False if the save was unsuccessful, the coupon ID otherwise.
  */
 function store(&$data)
 {
     // Convert selected dates to MySQL format for storing.
     if ($data['coupon_start_date']) {
         $startDate = JFactory::getDate($data['coupon_start_date']);
         $data['coupon_start_date'] = $startDate->toSql();
     }
     if ($data['coupon_expiry_date']) {
         $expireDate = JFactory::getDate($data['coupon_expiry_date']);
         $data['coupon_expiry_date'] = $expireDate->toSql();
     }
     return parent::store($data);
 }
開發者ID:denis1001,項目名稱:Virtuemart-2-Joomla-3-Bootstrap,代碼行數:19,代碼來源:coupon.php

示例3: store

 /**
  * Bind the post data to the coupon table and save it
  *
  * @author RickG, Oscar van Eijk
  * @return mixed False if the save was unsuccessful, the coupon ID otherwise.
  */
 function store(&$data)
 {
     $table = $this->getTable('coupons');
     //$data = JRequest::get('post');
     $table->bindChecknStore($data);
     // Convert selected dates to MySQL format for storing.
     if ($data['coupon_start_date']) {
         $startDate = JFactory::getDate($data['coupon_start_date']);
         $data['coupon_start_date'] = $startDate->toMySQL();
     }
     if ($data['coupon_expiry_date']) {
         $expireDate = JFactory::getDate($data['coupon_expiry_date']);
         $data['coupon_expiry_date'] = $expireDate->toMySQL();
     }
     parent::store($data);
     return $table->virtuemart_coupon_id;
 }
開發者ID:srbsnkr,項目名稱:sellingonlinemadesimple,代碼行數:23,代碼來源:coupon.php

示例4: store

 function store(&$data)
 {
     $myfields = array('basePrice', 'variantModification', 'basePriceVariant', 'basePriceWithTax', 'basePriceWithTax', 'discountedPriceWithoutTax', 'salesPrice', 'priceWithoutTax', 'salesPriceWithDiscount', 'discountAmount', 'taxAmount');
     $params = array();
     $params['show_prices'] = (bool) $data['show_prices'];
     // $param ='show_prices='.$data['show_prices']."\n";
     foreach ($myfields as $fields) {
         $params[$fields] = (bool) $data[$fields];
         $params[$fields . 'Text'] = (bool) $data[$fields . 'Text'];
         $params[$fields . 'Rounding'] = (int) $data[$fields . 'Rounding'];
         // $param .= $fields.'='.$data[$fields]."\n";		//attention there must be doublequotes
         // $param .= $fields.'Text='.$data[$fields.'Text']."\n";
         // $param .= $fields.'Rounding='.$data[$fields.'Rounding']."\n";
     }
     // if(!class_exists('JParameter')) require(JPATH_VM_LIBRARIES.DS.'joomla'.DS.'html'.DS.'parameter.php' );
     // $jparam = new JParameter($param);
     $data['price_display'] = json_encode($params);
     return parent::store($data);
 }
開發者ID:denis1001,項目名稱:Virtuemart-2-Joomla-3-Bootstrap,代碼行數:19,代碼來源:shoppergroup.php

示例5: store

 function store(&$data)
 {
     $myfields = array('basePrice', 'variantModification', 'basePriceVariant', 'basePriceWithTax', 'basePriceWithTax', 'discountedPriceWithoutTax', 'salesPrice', 'priceWithoutTax', 'salesPriceWithDiscount', 'discountAmount', 'taxAmount', 'unitPrice');
     $param = 'show_prices=' . $data['show_prices'] . "\n";
     foreach ($myfields as $fields) {
         $param .= $fields . '=' . $data[$fields] . "\n";
         //attention there must be doublequotes
         $param .= $fields . 'Text=' . $data[$fields . 'Text'] . "\n";
         $param .= $fields . 'Rounding=' . $data[$fields . 'Rounding'] . "\n";
     }
     if (!class_exists('JParameter')) {
         require JPATH_VM_LIBRARIES . DS . 'joomla' . DS . 'html' . DS . 'parameter.php';
     }
     $jparam = new JParameter($param);
     $data['price_display'] = serialize(new JParameter($param));
     return parent::store($data);
 }
開發者ID:sergy444,項目名稱:joomla,代碼行數:17,代碼來源:shoppergroup.php

示例6: adduser

 /**
  * Add customer to the waiting list for specific product
  *
  * @author Seyi Awofadeju
  * @return insert_id if the save was successful, false otherwise.
  */
 public function adduser($data)
 {
     JSession::checkToken() or jexit('Invalid Token, in notify customer');
     return parent::store($data);
 }
開發者ID:denis1001,項目名稱:Virtuemart-2-Joomla-3-Bootstrap,代碼行數:11,代碼來源:waitinglist.php


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