Метод |
Описание |
|
__construct ( $host, $port, $user, $pass, $dbname, $persist, $persist_key ) |
--------------------------------------------------------------------------------
CONSTRUCTOR
-------------------------------------------------------------------------------- |
|
add_index ( $collection = "", $keys = [], $options = [] ) |
--------------------------------------------------------------------------------
ADD_INDEX
-------------------------------------------------------------------------------- |
|
count ( $collection = "" ) |
--------------------------------------------------------------------------------
COUNT
-------------------------------------------------------------------------------- |
|
delete ( $collection = "" ) |
--------------------------------------------------------------------------------
DELETE
-------------------------------------------------------------------------------- |
|
delete_all ( $collection = "" ) |
--------------------------------------------------------------------------------
DELETE_ALL
-------------------------------------------------------------------------------- |
|
drop_collection ( $collection = "" ) |
--------------------------------------------------------------------------------
DROP COLLECTION
-------------------------------------------------------------------------------- |
|
get ( $collection = "" ) |
--------------------------------------------------------------------------------
GET
-------------------------------------------------------------------------------- |
|
get_where ( $collection = "", $where = [], $limit = 99999 ) |
--------------------------------------------------------------------------------
GET_WHERE
-------------------------------------------------------------------------------- |
|
insert ( $collection = "", $data = [] ) |
--------------------------------------------------------------------------------
INSERT
-------------------------------------------------------------------------------- |
|
like ( $field = "", $value = "", $flags = "i", $enable_start_wildcard = TRUE, $enable_end_wildcard = TRUE ) |
--------------------------------------------------------------------------------
LIKE PARAMETERS
-------------------------------------------------------------------------------- |
|
limit ( $x = 99999 ) |
--------------------------------------------------------------------------------
LIMIT DOCUMENTS
-------------------------------------------------------------------------------- |
|
list_indexes ( $collection = "" ) |
--------------------------------------------------------------------------------
LIST_INDEXES
-------------------------------------------------------------------------------- |
|
mongo_db ( ) |
|
|
offset ( $x ) |
--------------------------------------------------------------------------------
OFFSET DOCUMENTS
-------------------------------------------------------------------------------- |
|
order_by ( $fields = [] ) |
--------------------------------------------------------------------------------
ORDER BY PARAMETERS
-------------------------------------------------------------------------------- |
|
remove_all_indexes ( $collection = "" ) |
--------------------------------------------------------------------------------
REMOVE_ALL_INDEXES
-------------------------------------------------------------------------------- |
|
remove_index ( $collection = "", $keys = [] ) |
--------------------------------------------------------------------------------
REMOVE_INDEX
-------------------------------------------------------------------------------- |
|
select ( $includes = [], $excludes = [] ) |
--------------------------------------------------------------------------------
SELECT FIELDS
-------------------------------------------------------------------------------- |
|
switch_db ( $database = '' ) |
--------------------------------------------------------------------------------
Switch_db
-------------------------------------------------------------------------------- |
|
update ( $collection = "", $data = [] ) |
--------------------------------------------------------------------------------
UPDATE
-------------------------------------------------------------------------------- |
|
update_all ( $collection = "", $data = [] ) |
--------------------------------------------------------------------------------
UPDATE_ALL
-------------------------------------------------------------------------------- |
|
where ( $wheres = [] ) |
--------------------------------------------------------------------------------
WHERE PARAMETERS
-------------------------------------------------------------------------------- |
|
where_and ( $elements_values = [] ) |
--------------------------------------------------------------------------------
WHERE AND
-------------------------------------------------------------------------------- |
|
where_between ( $field = "", $x, $y ) |
--------------------------------------------------------------------------------
WHERE BETWEEN PARAMETERS
-------------------------------------------------------------------------------- |
|
where_between_ne ( $field = "", $x, $y ) |
--------------------------------------------------------------------------------
WHERE BETWEEN AND NOT EQUAL TO PARAMETERS
-------------------------------------------------------------------------------- |
|
where_gt ( $field = "", $x ) |
--------------------------------------------------------------------------------
WHERE GREATER THAN PARAMETERS
-------------------------------------------------------------------------------- |
|
where_gte ( $field = "", $x ) |
--------------------------------------------------------------------------------
WHERE GREATER THAN OR EQUAL TO PARAMETERS
-------------------------------------------------------------------------------- |
|
where_in ( $field = "", $in = [] ) |
--------------------------------------------------------------------------------
WHERE_IN PARAMETERS
-------------------------------------------------------------------------------- |
|
where_lt ( $field = "", $x ) |
--------------------------------------------------------------------------------
WHERE LESS THAN PARAMETERS
-------------------------------------------------------------------------------- |
|
where_lte ( $field = "", $x ) |
--------------------------------------------------------------------------------
WHERE LESS THAN OR EQUAL TO PARAMETERS
-------------------------------------------------------------------------------- |
|
where_mod ( $field, $num, $result ) |
--------------------------------------------------------------------------------
WHERE MOD
-------------------------------------------------------------------------------- |
|
where_ne ( $field = "", $x ) |
--------------------------------------------------------------------------------
WHERE NOT EQUAL TO PARAMETERS
-------------------------------------------------------------------------------- |
|
where_not_in ( $field = "", $in = [] ) |
--------------------------------------------------------------------------------
WHERE_NOT_IN PARAMETERS
-------------------------------------------------------------------------------- |
|
where_or ( $field = "", $values ) |
--------------------------------------------------------------------------------
WHERE OR
-------------------------------------------------------------------------------- |
|