当前位置: 首页>>代码示例>>PHP>>正文


PHP Feature::delete方法代码示例

本文整理汇总了PHP中Feature::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Feature::delete方法的具体用法?PHP Feature::delete怎么用?PHP Feature::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Feature的用法示例。


在下文中一共展示了Feature::delete方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: deleteSelection

 /**
  * Delete several objects from database
  *
  * @param array $selection Array with items to delete
  * @return bool Deletion result
  */
 public function deleteSelection($selection)
 {
     /* Also delete Attributes */
     foreach ($selection as $value) {
         $obj = new Feature($value);
         if (!$obj->delete()) {
             return false;
         }
     }
     return true;
 }
开发者ID:nmardones,项目名称:PrestaShop,代码行数:17,代码来源:Feature.php

示例2: deleteFeature

 /**
  * AJAX action for deleting feature.
  */
 public function deleteFeature()
 {
     $feature = new Feature($_REQUEST['id']);
     $feature->delete();
     //Since delete doesn't return anything, this will check for success
     return $feature->getId() == NULL;
 }
开发者ID:Spokane-Wordpress-Development,项目名称:Squirrels-Inventory,代码行数:10,代码来源:Controller.php

示例3: delete

 public function delete($f3, $params)
 {
     $obj = new Feature($this->db);
     echo json_encode($obj->delete($params["FeatureID"]));
 }
开发者ID:parth1403,项目名称:CarTracker_PHP,代码行数:5,代码来源:FeaturesController.php

示例4: deletePrestashopDefaultFeatures

 public function deletePrestashopDefaultFeatures()
 {
     $all_features = Feature::getFeatures($this->context->language->id);
     foreach ($all_features as $ftr_k => $ftr_v) {
         $obj_feature = new Feature($ftr_v['id_feature']);
         $obj_feature->delete();
     }
     return true;
 }
开发者ID:Rohit-jn,项目名称:hotelcommerce,代码行数:9,代码来源:hotelreservationsystem.php


注:本文中的Feature::delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。