apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: PEAR_Frontend_Gtk2_ChannelDialog

Source Location: /PEAR_Frontend_Gtk2-1.1.0/PEAR/Frontend/Gtk2/ChannelDialog.php

Class Overview


Channel list with buttons to add and remove channels


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 8]
Channel list with buttons to add and remove channels


[ Top ]


Class Variables

$arRequestedWidgets = array(
        'dlgChannels', 'lstChannels', 'btnClose', 'btnAdd',
        'btnUpdate', 'btnDelete'
    )

[line 15]

The widgets which shall be loaded from the glade

file into the $arWidgets array

  • Access: protected

Type:   array


[ Top ]

$arWidgets =

[line 26]

Requested widgets are loaded from glade into this array.

So this is an associative array with all required widgets from the glade file: name => widget object

  • Access: protected

Type:   array


[ Top ]

$channels =

[line 32]

The PEAR channels command object
  • Access: protected

Type:   PEAR_Command_Channels


[ Top ]

$frontend =

[line 38]

The pear gtk2 frontend object
  • Access: protected

Type:   PEAR_Frontend_Gtk2


[ Top ]



Method Detail

__construct (Constructor)   [line 48]

PEAR_Frontend_Gtk2_ChannelDialog __construct( GladeXML $glade, PEAR_Frontend_Gtk2 $frontend)

Initialize the dialog
  • Access: public

Parameters:

GladeXML   $glade   —  The glade to load the widgets from
PEAR_Frontend_Gtk2   $frontend   —  The gtk2 frontend object

[ Top ]

buildDialog   [line 56]

void buildDialog( GladeXML $glade)

  • Access: protected

Parameters:

GladeXML   $glade   — 

[ Top ]

getSelectedChannelName   [line 189]

string getSelectedChannelName( )

Returns the name of the selected channel.
  • Return: The name of the channel, or NULL if none is selected
  • Access: protected

[ Top ]

loadChannels   [line 204]

void loadChannels( )

Loads the channel list from PEAR into the model.
  • Access: protected

[ Top ]

onAdd   [line 115]

void onAdd( )

The add button has been pressed
  • Access: public

[ Top ]

onClose   [line 105]

void onClose( )

The close button has been pressed -> just the dialog only
  • Access: public

[ Top ]

onDelete   [line 154]

void onDelete( )

The delete button has been pressed
  • Access: public

[ Top ]

onSelectionChanged   [line 176]

void onSelectionChanged( $selection)

  • Access: public

Parameters:

   $selection   — 

[ Top ]

onUpdate   [line 139]

void onUpdate( )

The update button has been pressed
  • Access: public

[ Top ]

reloadChannels   [line 227]

void reloadChannels( )

Call this method if channels have changed.

(added, deleted, updated)

  • Access: protected

[ Top ]

show   [line 94]

void show( )

  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:46:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.