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

Class: Channel

Source Location: /includes/channels/Channel.inc.php

Class Overview


This is the base class for channels displayed in the sidebar (e.g. the messages, tree view etc.).


Variables

Methods


Child classes:

ChannelAddComponents
Implements "Component Library" channel
ChannelMessages
Displays "What's next" type messages in sidebar
ChannelTreeView
Displays tree view of the applications pages and files in the sidebar
ChannelWizards
Implements "Wizards" channel

Class Details

[line 6]
This is the base class for channels displayed in the sidebar (e.g. the messages, tree view etc.).

It handle display of channel header, footer and the visual collapsing of the channel




[ Top ]


Class Variables

$bIsExpandedByDefault =  TRUE

[line 12]



Tags:

access:  protected

Type:   mixed


[ Top ]

$sBgColor =  '#ffffff'

[line 13]



Tags:

access:  protected

Type:   mixed


[ Top ]

$sIcon =  'nuvola/16x16/apps/kwikdisk.png'

[line 11]



Tags:

access:  protected

Type:   mixed


[ Top ]

$sIsCollapsible =  TRUE

[line 14]



Tags:

access:  protected

Type:   mixed


[ Top ]

$sTitle =  'Channel title'

[line 10]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 21]

Channel __construct( Application $oApp)

Constructs a new component



Tags:

access:  public


Overridden in child classes as:

ChannelAddComponents::__construct()
Constructs new channel
ChannelMessages::__construct()
Constructs new channel
ChannelTreeView::__construct()
Constructs new channel
ChannelWizards::__construct()
Constructs new channel

Parameters:

Application   $oApp   Reference to the application

[ Top ]

method draw [line 119]

void draw( )

Displays the channel



Tags:

access:  public


[ Top ]

method expandOrCollapse [line 166]

void expandOrCollapse( )

Expand or Collaps the channel, toggles the current state



Tags:

access:  public


[ Top ]

method getApp [line 30]

Application getApp( )

Returns the Application that this channel is associated with



Tags:

return:  A reference to the application
access:  public


[ Top ]

method getChannelByType [line 41]

Channel getChannelByType( Application $oApp, string $sType)

Factory method that creates a particular channel



Tags:

return:  Object
static:  
access:  public


Parameters:

Application   $oApp   A reference to the application object
string   $sType   Channel type, e.g. "ChannelAddComponents"

[ Top ]

method isExpanded [line 138]

void isExpanded( )

Returns TRUE if the channel is currently expanded (contents fully visible)



Tags:

access:  protected


[ Top ]

method printContent [line 133]

void printContent( )

Prints HTML that represents the channel's contents.

This function must be overwritten by channel classes derived from this one.




Tags:

access:  public


Overridden in child classes as:

ChannelAddComponents::printContent()
Display the channel contents, a listing of all available components
ChannelMessages::printContent()
Display the channel contents, showing all available context-sensitive messages
ChannelTreeView::printContent()
Display the channel contents, a tree view of all pages and components comprising the application
ChannelWizards::printContent()
Display the channel contents, a listing all wizards

[ Top ]

method printContentBegin [line 100]

void printContentBegin( )

print HTML to prepare the output of channel contents



Tags:

access:  public


[ Top ]

method printContentEnd [line 110]

void printContentEnd( )

print HTML to finish up the output of channel contents



Tags:

access:  public


[ Top ]

method printHeader [line 60]

void printHeader( )

print HTML to display the Channel header



Tags:

access:  public


[ Top ]

method setCollapsed [line 159]

void setCollapsed( )

Collapse the channel, making the contents invisible, just showing the header



Tags:

access:  public


[ Top ]

method setExpanded [line 152]

void setExpanded( )

Expand the channel, making the contents fully visible



Tags:

access:  public


[ Top ]


Documentation generated on Wed, 12 Jan 2005 17:50:35 -0500 by phpDocumentor 1.3.0RC3