PHP Class PMA\libraries\DbSearch

Show file Open project: phpmyadmin/phpmyadmin Class Usage Examples

Public Methods

Method Description
__construct ( string $db ) Public Constructor
getResultDivs ( ) : string Provides div tags for browsing search results and sql query form.
getSearchResults ( ) : string Displays database search results
getSelectionForm ( ) : string Provides the main search form's html

Private Methods

Method Description
_getResultsRow ( string $each_table, array $newsearchsqls, integer $res_cnt ) : string Provides search results row with browse/delete links.
_getSearchSqls ( string $table ) : array Builds the SQL search query
_getWhereClause ( string $table ) : string Provides where clause for building SQL query
_setSearchParams ( ) : void Sets search parameters

Method Details

__construct() public method

Public Constructor
public __construct ( string $db )
$db string Database name

getResultDivs() public method

Provides div tags for browsing search results and sql query form.
public getResultDivs ( ) : string
return string div tags

getSearchResults() public method

Displays database search results
public getSearchResults ( ) : string
return string HTML for search results

getSelectionForm() public method

Provides the main search form's html
public getSelectionForm ( ) : string
return string HTML for selection form