lib/db/cortex.php
public function load($filter = NULL, array $options = NULL, $ttl = 0) {
		$this->reset();
		$this->_ttl=$ttl?:$this->rel_ttl;
		$res = $this->filteredFind($filter, $options, $ttl);
		if ($res) {
			$this->mapper->query = $res;
			$this->first();
		} else
			$this->mapper->reset();
		$this->emit('load');
		return $this->valid();
	}
public function load($filter = NULL, array $options = NULL, $ttl = 0) {
		$this->reset();
		$this->_ttl=$ttl?:$this->rel_ttl;
		$res = $this->filteredFind($filter, $options, $ttl);
		if ($res) {
			$this->mapper->query = $res;
			$this->first();
		} else
			$this->mapper->reset();
		$this->emit('load');
		return $this->valid();
	}
public function load ( $ filter = NULL , array $ options = NULL , $ ttl = 0 ) { $ this -> reset ( ) ; $ this -> _ttl = $ ttl ? : $ this -> rel_ttl ; $ res = $ this -> filteredFind ( $ filter , $ options , $ ttl ) ; if ( $ res ) { $ this -> mapper -> query = $ res ; $ this -> first ( ) ; } else $ this -> mapper -> reset ( ) ; $ this -> emit ( 'load' ) ; return $ this -> valid ( ) ; }
Retrieve first object that satisfies criteria
@param null  $filter
@param array $options
@param int   $ttl
@return bool
Retrieve first object that satisfies criteria