public function __get($k) { if ($k == 'results') { return Now::get($this->collection); } return $this->{$k}; }
public function __get($key) { if ($key == 'db') { $nowKey = 'link.' . $this->database . '.' . $this->table; return Now::get($nowKey); } }
public function __get($k) { if ($k == 'cursor') { $nowKey = 'cursor.' . $this->database . '.' . $this->table; return Now::get($nowKey); } return null; }
/** * [__get description] * * @method __get * * @param [type] $k [description] * * @return [type] [description] */ public function __get($k) { if ($k == 'store') { return Now::get('nosql.store.' . $this->collection); } else { return isset($this->{$k}) ? $this->{$k} : null; } }