Exemple #1
0
 public function __get($k)
 {
     if ($k == 'results') {
         return Now::get($this->collection);
     }
     return $this->{$k};
 }
Exemple #2
0
 public function __get($key)
 {
     if ($key == 'db') {
         $nowKey = 'link.' . $this->database . '.' . $this->table;
         return Now::get($nowKey);
     }
 }
Exemple #3
0
 public function __get($k)
 {
     if ($k == 'cursor') {
         $nowKey = 'cursor.' . $this->database . '.' . $this->table;
         return Now::get($nowKey);
     }
     return null;
 }
Exemple #4
0
 /**
  * [__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;
     }
 }