getDataRefreshed() public method

Returns if selection requeried for more columns.
public getDataRefreshed ( ) : boolean
return boolean
Esempio n. 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;
		}
	}
Esempio n. 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;
     }
 }
Esempio n. 4
0
 /**
  * @internal
  */
 public function accessColumn($key, $selectColumn = TRUE)
 {
     $this->table->accessColumn($key, $selectColumn);
     if ($this->table->getDataRefreshed() && !$this->dataRefreshed) {
         if (!isset($this->table[$this->getSignature()])) {
             throw new Nette\InvalidStateException('Database refetch failed; row does not exist!');
         }
         $this->data = $this->table[$this->getSignature()]->data;
         $this->dataRefreshed = TRUE;
     }
     return array_key_exists($key, $this->data);
 }