Tabbed Container for database properties

 Methods

Create the object

__construct() 

Add a new tab with the provided label

add_tab(string $label, \GObject $widget) : void

Parameters

$label

string

$widget

\GObject

Create tabs for database aspects

get_db_tabs(\Query_Builder $conn) : void

Parameters

Return the db tabs object if it exists, or create and return

get_instance() : \DB_tabs

Returns

Remove current tabs

reset(string $conn_name) : void

Parameters

$conn_name

string

Create popup window with table data

show_table_data(\GTKTreeView $view, array $path, \GtkTreeviewColumn $col, \Query_Builder $conn) : void

Parameters

$view

\GTKTreeView

$path

array

$col

\GtkTreeviewColumn

Add a multidimensional array to a tab

_add_row_tab(object $conn, string $tab_name, string $method) : void

Parameters

$conn

object

$tab_name

string

$method

string

Simplify adding tabs to the Notebook object

_add_tab(object $conn, string $tab_name, string $col_name, string $method, array $events) : void

Parameters

$conn

object

$tab_name

string

$col_name

string

$method

string

$events

array

Returns cached database data for the tab and connection specified

_get_db_info(string $conn_name, string $tab_name) : mixed

Parameters

$conn_name

string

$tab_name

string

Returns

mixed

Sets cached database data for the tab and connection specified

_set_db_info(string $conn_name, string $tab_name, mixed $data) 

Parameters

$conn_name

string

$tab_name

string

$data

mixed

 Properties

 

Db Data cache

$data 

 

Current Tab Widget object

$instance : \DB_Tabs