当前位置: 首页>>代码示例>>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;未经允许,请勿转载。