PHP 클래스 PMA\libraries\SavedSearches

파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin 1 사용 예제들

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

Public constructor
public __construct ( array $config )
$config array Global configuration

delete() 공개 메소드

Delete the search
public delete ( ) : boolean
리턴 boolean

getConfig() 공개 메소드

Getter of config
public getConfig ( ) : array
리턴 array

getCriterias() 공개 메소드

Getter for criterias
public getCriterias ( ) : array
리턴 array

getDbname() 공개 메소드

Getter for DB name
public getDbname ( ) : string
리턴 string

getId() 공개 메소드

Getter of id
public getId ( ) : integer | null
리턴 integer | null

getList() 공개 메소드

Get the list of saved searches of a user on a DB
public getList ( array $wheres = [] ) : array
$wheres array List of filters
리턴 array List of saved searches or empty array on failure

getSearchName() 공개 메소드

Getter of searchName
public getSearchName ( ) : string
리턴 string

getUsername() 공개 메소드

Getter for username
public getUsername ( ) : string
리턴 string

load() 공개 메소드

Load the current search from an id.
public load ( ) : boolean
리턴 boolean Success

save() 공개 메소드

Save the search
public save ( ) : boolean
리턴 boolean

setConfig() 공개 메소드

Setter of config
public setConfig ( array $config ) : static
$config array Global configuration
리턴 static

setCriterias() 공개 메소드

Setter for criterias
public setCriterias ( array | string $criterias, boolean $json = false ) : static
$criterias array | string Criterias of saved searches
$json boolean Criterias are in JSON format
리턴 static

setDbname() 공개 메소드

Setter for DB name
public setDbname ( string $dbname ) : static
$dbname string DB name
리턴 static

setId() 공개 메소드

Setter of id
public setId ( integer | null $searchId ) : static
$searchId integer | null Id of search
리턴 static

setSearchName() 공개 메소드

Setter of searchName
public setSearchName ( string $searchName ) : static
$searchName string Saved search name
리턴 static

setUsername() 공개 메소드

Setter for username
public setUsername ( string $username ) : static
$username string Username
리턴 static