return($this);
}
/**
* ——————————————————————————–
* WHERE LESS THAN PARAMETERS
* ——————————————————————————–
*
* Get the documents where the value of a $field is less than $x
*
* @usage = $this->mongo_db->where_lt(‘foo’, 20);
*/
public function where_lt($field = “”, $x)
{
$this->where_init($field);
$this->wheres[$field][‘$lt’] = $x;
return($this);
}
/**
* ——————————————————————————–
* WHERE LESS THAN OR EQUAL TO PARAMETERS
* ——————————————————————————–
*
* Get the documents where the value of a $field is less than or equal to $x
*
* @usage = $this->mongo_db->where_lte(‘foo’, 20);
*/
public function where_lte($field = “”, $x)
{
$this->where_init($field);
$this->wheres[$field][‘$lte’] = $x;
return($this);
}
/**
* ——————————————————————————–
* WHERE BETWEEN PARAMETERS
* ——————————————————————————–
*
* Get the documents where the value of a $field is between $x and $y
*
* @usage = $this->mongo_db->where_between(‘foo’, 20, 30);
*/
public function where_between($field = “”, $x, $y)
{
$this->where_init($field);
$this->wheres[$field][‘$gte’] = $x;
$this->wheres[$field][‘$lte’] = $y;
return($this);
}
/**
* ——————————————————————————–