accessColumn() public method

public accessColumn ( $key, $selectColumn = TRUE ) : boolean
return boolean if selection requeried for more columns.
Example #1
0
	protected function accessColumn($key, $selectColumn = TRUE)
	{
		$this->table->accessColumn($key, $selectColumn);
		if ($this->table->getDataRefreshed() && !$this->dataRefreshed) {
			$this->data = $this->table[$this->getSignature()]->data;
			$this->dataRefreshed = TRUE;
		}
	}
Example #2
0
 /**
  * @internal
  */
 public function accessColumn($key, $selectColumn = TRUE)
 {
     $this->table->accessColumn($key, $selectColumn);
     if ($this->table->getDataRefreshed() && !$this->dataRefreshed) {
         $this->data = $this->table[$this->getSignature()]->data;
         $this->dataRefreshed = TRUE;
     }
     return array_key_exists($key, $this->data);
 }
 protected function accessColumn($key, $selectColumn = TRUE)
 {
     if (isset($this->modified[$key])) {
         return;
     }
     $this->table->accessColumn($key, $selectColumn);
     if ($this->table->getDataRefreshed() && !$this->dataRefreshed) {
         $this->data = $this->table[$this->getSignature()]->data;
         $this->dataRefreshed = TRUE;
     }
 }
Example #4
0
 /**
  * @internal
  */
 public function accessColumn($key, $selectColumn = TRUE)
 {
     if ($this->table->accessColumn($key, $selectColumn) && !$this->dataRefreshed) {
         if (!isset($this->table[$this->getSignature()])) {
             throw new Nette\InvalidStateException("Database refetch failed; row with signature '{$this->getSignature()}' does not exist!");
         }
         $this->data = $this->table[$this->getSignature()]->data;
         $this->dataRefreshed = TRUE;
     }
     return isset($this->data[$key]) || array_key_exists($key, $this->data);
 }