本文整理汇总了PHP中Nette\Database\Table\Selection::access方法的典型用法代码示例。如果您正苦于以下问题:PHP Selection::access方法的具体用法?PHP Selection::access怎么用?PHP Selection::access使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Nette\Database\Table\Selection
的用法示例。
在下文中一共展示了Selection::access方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: access
/**
* @internal
*/
public function access($key, $cache = true)
{
if ($this->table->getConnection()->getCache() && !isset($this->modified[$key]) && $this->table->access($key, $cache)) {
$id = isset($this->data[$this->table->getPrimary()]) ? $this->data[$this->table->getPrimary()] : $this->data;
$this->data = $this->table[$id]->data;
}
}
示例2: access
public function access($key, $delete = FALSE)
{
if ($this->table->connection->getCache() && !isset($this->modified[$key]) && $this->table->access($key, $delete)) {
$id = isset($this->data[$this->table->primary]) ? $this->data[$this->table->primary] : $this->data;
$this->data = $this->table[$id]->data;
}
}
示例3: access
public function access($key, $delete = FALSE)
{
if ($this->table->connection->cache && $this->table->access($key, $delete)) {
$this->data = $this->table[$this->data[$this->table->primary]]->data;
}
}