delete() 공개 메소드

Deletes all rows in result set.
public delete ( ) : integer
리턴 integer number of affected rows
예제 #1
0
파일: Last.php 프로젝트: petak23/echo-msz
     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();
예제 #2
0
 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;
 }
예제 #3
0
 public function delete()
 {
     $where = $this->where;
     $this->where[0] = "{$this->delimitedColumn} = " . $this->connection->quote($this->active);
     $return = parent::delete();
     $this->where = $where;
     return $return;
 }
예제 #4
0
파일: nette.min.php 프로젝트: rotten77/xcv
 function delete()
 {
     $builder = $this->sqlBuilder;
     $this->sqlBuilder = clone $this->sqlBuilder;
     $this->where($this->column, $this->active);
     $return = parent::delete();
     $this->sqlBuilder = $builder;
     return $return;
 }
 /**
  * Deletes current collection.
  */
 public function delete()
 {
     $this->selection->delete();
 }
예제 #6
0
 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;
 }
예제 #7
0
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
예제 #8
0
 /**
  * Deletes all rows in result set.
  *
  * @return int number of affected rows
  */
 public function delete()
 {
     return $this->selection->delete();
 }