Method |
Description |
|
__construct ( array $config ) |
Public constructor |
|
delete ( ) : boolean |
Delete the search |
|
getConfig ( ) : array |
Getter of config |
|
getCriterias ( ) : array |
Getter for criterias |
|
getDbname ( ) : string |
Getter for DB name |
|
getId ( ) : integer | null |
Getter of id |
|
getList ( array $wheres = [] ) : array |
Get the list of saved searches of a user on a DB |
|
getSearchName ( ) : string |
Getter of searchName |
|
getUsername ( ) : string |
Getter for username |
|
load ( ) : boolean |
Load the current search from an id. |
|
save ( ) : boolean |
Save the search |
|
setConfig ( array $config ) : static |
Setter of config |
|
setCriterias ( array | string $criterias, boolean $json = false ) : static |
Setter for criterias |
|
setDbname ( string $dbname ) : static |
Setter for DB name |
|
setId ( integer | null $searchId ) : static |
Setter of id |
|
setSearchName ( string $searchName ) : static |
Setter of searchName |
|
setUsername ( string $username ) : static |
Setter for username |
|