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


PHP Selection::delete方法代码示例

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


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

示例1: delete

 public function delete()
 {
     $builder = $this->sqlBuilder;
     $this->sqlBuilder = new SqlBuilder($this);
     $this->where($this->column, $this->active);
     $return = parent::delete();
     $this->sqlBuilder = $builder;
     return $return;
 }
开发者ID:BroukPytlik,项目名称:agility,代码行数:9,代码来源:GroupedSelection.php

示例2: delete

 public function delete()
 {
     $where = $this->where;
     $this->where[0] = "{$this->delimitedColumn} = " . $this->connection->quote($this->active);
     $return = parent::delete();
     $this->where = $where;
     return $return;
 }
开发者ID:bazo,项目名称:Tatami,代码行数:8,代码来源:GroupedSelection.php

示例3: delete

 function delete()
 {
     $builder = $this->sqlBuilder;
     $this->sqlBuilder = clone $this->sqlBuilder;
     $this->where($this->column, $this->active);
     $return = parent::delete();
     $this->sqlBuilder = $builder;
     return $return;
 }
开发者ID:rotten77,项目名称:xcv,代码行数:9,代码来源:nette.min.php

示例4: delete

 /**
  * Deletes current collection.
  */
 public function delete()
 {
     $this->selection->delete();
 }
开发者ID:jkrecek,项目名称:nette-database-model,代码行数:7,代码来源:StoredCollection.php

示例5: delete

 function delete()
 {
     $condition = array($this->where, $this->parameters);
     $this->where[0] = "{$this->delimitedColumn} = ?";
     $this->parameters[0] = $this->active;
     $return = parent::delete();
     list($this->where, $this->parameters) = $condition;
     return $return;
 }
开发者ID:Vrtak-CZ,项目名称:NJLogParser,代码行数:9,代码来源:nette.min.php

示例6:

update($data){$condition=array($this->where,$this->parameters);$this->where[0]="$this->delimitedColumn = ?";$this->parameters[0]=$this->active;$return=parent::update($data);list($this->where,$this->parameters)=$condition;return$return;}function
delete(){$condition=array($this->where,$this->parameters);$this->where[0]="$this->delimitedColumn = ?";$this->parameters[0]=$this->active;$return=parent::delete();list($this->where,$this->parameters)=$condition;return$return;}protected
开发者ID:JanTvrdik,项目名称:NetteExtras,代码行数:2,代码来源:loader.php

示例7: delete

 /**
  * Deletes all rows in result set.
  *
  * @return int number of affected rows
  */
 public function delete()
 {
     return $this->selection->delete();
 }
开发者ID:filsedla,项目名称:hyperrow,代码行数:9,代码来源:HyperSelection.php

示例8: render

     if (is_int($pocet) && $pocet > 1) {
         $this->pocet = $pocet;
     }
 }
 /** Zakladny render */
 public function render()
 {
     $this->template->setFile(__DIR__ . '/Last.latte');
     $this->template->h3 = 'Posledných ' . $this->pocet . ' prihlásení';
     $this->template->last = $this->last->order('prihlasenie_datum DESC')->limit($this->pocet);
     $this->template->render();
开发者ID:petak23,项目名称:echo-msz,代码行数:11,代码来源:Last.php


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