本文整理匯總了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;
}
示例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;
}
示例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;
}
示例4: delete
/**
* Deletes current collection.
*/
public function delete()
{
$this->selection->delete();
}
示例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;
}
示例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
示例7: delete
/**
* Deletes all rows in result set.
*
* @return int number of affected rows
*/
public function delete()
{
return $this->selection->delete();
}
示例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();