PHP 클래스 PMA\libraries\navigation\nodes\NodeDatabase

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

보호된 프로퍼티들

프로퍼티 타입 설명
$hiddenCount integer The number of hidden items in this database

공개 메소드들

메소드 설명
__construct ( string $name, integer $type = Node::OBJECT, boolean $is_group = false ) Initialises the class
getData ( string $type, integer $pos, string $searchClause = '' ) : array Returns the names of children of type $type present inside this container This method is overridden by the PMA\libraries\navigation\nodes\NodeDatabase and PMA\libraries\navigation\nodes\NodeTable classes
getHiddenCount ( ) : integer Returns the number of hidden items in this database
getHiddenItems ( string $type ) : array Return list of hidden items of given type
getHtmlForControlButtons ( ) : String Returns HTML for control buttons displayed infront of a node
getPresence ( string $type = '', string $searchClause = '', boolean $singleItem = false ) : integer Returns the number of children of type $type present inside this container This method is overridden by the PMA\libraries\navigation\nodes\NodeDatabase and PMA\libraries\navigation\nodes\NodeTable classes
setHiddenCount ( integer $count ) : void Sets the number of hidden items in this database

비공개 메소드들

메소드 설명
_getEventCount ( string $searchClause, boolean $singleItem ) : integer Returns the number of events present inside this database
_getEvents ( integer $pos, string $searchClause ) : array Returns the list of events inside this database
_getFunctionCount ( string $searchClause, boolean $singleItem ) : integer Returns the number of functions present inside this database
_getFunctions ( integer $pos, string $searchClause ) : array Returns the list of functions inside this database
_getProcedureCount ( string $searchClause, boolean $singleItem ) : integer Returns the number of procedures present inside this database
_getProcedures ( integer $pos, string $searchClause ) : array Returns the list of procedures inside this database
_getRoutines ( string $routineType, integer $pos, string $searchClause ) : array Returns the list of procedures or functions inside this database
_getTableCount ( string $searchClause, boolean $singleItem ) : integer Returns the number of tables present inside this database
_getTableOrViewCount ( string $which, string $searchClause, boolean $singleItem ) : integer Returns the number of tables or views present inside this database
_getTables ( integer $pos, string $searchClause ) : array Returns the list of tables inside this database
_getTablesOrViews ( string $which, integer $pos, string $searchClause ) : array Returns the list of tables or views inside this database
_getViewCount ( string $searchClause, boolean $singleItem ) : integer Returns the number of views present inside this database
_getViews ( integer $pos, string $searchClause ) : array Returns the list of views inside this database
_getWhereClauseForSearch ( string $searchClause, boolean $singleItem, string $columnName ) : string Returns the WHERE clause for searching inside a database

메소드 상세

__construct() 공개 메소드

Initialises the class
public __construct ( string $name, integer $type = Node::OBJECT, boolean $is_group = false )
$name string An identifier for the new node
$type integer Type of node, may be one of CONTAINER or OBJECT
$is_group boolean Whether this object has been created while grouping nodes

getData() 공개 메소드

Returns the names of children of type $type present inside this container This method is overridden by the PMA\libraries\navigation\nodes\NodeDatabase and PMA\libraries\navigation\nodes\NodeTable classes
public getData ( string $type, integer $pos, string $searchClause = '' ) : array
$type string The type of item we are looking for ('tables', 'views', etc)
$pos integer The offset of the list within the results
$searchClause string A string used to filter the results of the query
리턴 array

getHiddenCount() 공개 메소드

Returns the number of hidden items in this database
public getHiddenCount ( ) : integer
리턴 integer hidden item count

getHiddenItems() 공개 메소드

Return list of hidden items of given type
public getHiddenItems ( string $type ) : array
$type string The type of items we are looking for ('table', 'function', 'group', etc.)
리턴 array Array containing hidden items of given type

getHtmlForControlButtons() 공개 메소드

Returns HTML for control buttons displayed infront of a node
public getHtmlForControlButtons ( ) : String
리턴 String HTML for control buttons

getPresence() 공개 메소드

Returns the number of children of type $type present inside this container This method is overridden by the PMA\libraries\navigation\nodes\NodeDatabase and PMA\libraries\navigation\nodes\NodeTable classes
public getPresence ( string $type = '', string $searchClause = '', boolean $singleItem = false ) : integer
$type string The type of item we are looking for ('tables', 'views', etc)
$searchClause string A string used to filter the results of the query
$singleItem boolean Whether to get presence of a single known item or false in none
리턴 integer

setHiddenCount() 공개 메소드

Sets the number of hidden items in this database
public setHiddenCount ( integer $count ) : void
$count integer hidden item count
리턴 void

프로퍼티 상세

$hiddenCount 보호되어 있는 프로퍼티

The number of hidden items in this database
protected int $hiddenCount
리턴 integer