silverorange Code


Site.SiteArticleIndex
/Site/admin/components/Article/Index.php at line 19

Class SiteArticleIndex

SwatObject
└─SiteObject
└─SiteAbstractPage
└─SitePage
└─AdminPage
└─AdminIndex
└─SiteArticleIndex

public class SiteArticleIndex
extends AdminIndex

Index page for Articles

Copyright:
2005-2007 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
protected mixed

$id

protected mixed

$parent

protected string

$ui_xml

Method Summary
protected void

buildDetails()

protected void

buildInternal()

Build the page for display.

protected SwatTableModel

getTableModel(mixed view)

Retrieve data to display.

protected void

getWhereClause(mixed view)

protected void

initInternal()

Initialize the page.

protected void

processActions(SwatView view, SwatActions actions)

Processes index actions.

Methods inherited from Admin.AdminIndex
buildForms, buildInternal, buildViews, getOrderByClause, getTableModel, processActions, processInternal
Methods inherited from Admin.AdminPage
build, buildInternal, buildMessages, createLayout, display, finalize, formsAreAuthenticated, getComponentName, getComponentTitle, getRefererURL, getRelativeURL, init, initInternal, process, processInternal
Methods inherited from Site.SitePage
build, buildContent, buildMetaDescription, buildNavBar, buildTitle, createLayout
Methods inherited from Site.SiteAbstractPage
build, finalize, getArgument, getArgumentMap, getSource, init, process, setLayout, setSource

Field Detail

/Site/admin/components/Article/Index.php at line 23

id

protected mixed $id = null

/Site/admin/components/Article/Index.php at line 24

parent

protected mixed $parent = null

/Site/admin/components/Article/Index.php at line 29

ui_xml

protected string $ui_xml = 'Site/admin/components/Article/index.xml'


Method Detail

/Site/admin/components/Article/Index.php at line 136

buildDetails

protected void buildDetails()

/Site/admin/components/Article/Index.php at line 104

buildInternal

protected void buildInternal()

Build the page for display

Sub-classes should implement this method to initialize elements of the page. This method is called at the beginning of . This is useful to do database queries that are only needed for AdminPage::display() and not , while initialization needed for both display and process should be included in AdminPage::init().


/Site/admin/components/Article/Index.php at line 60

getTableModel

protected SwatTableModel getTableModel(mixed view)

Retrieve data to display.

This method is called to load data to be displayed in the table view. Sub-classes should implement this method and perform whatever actions are necessary to obtain the data.

Returns:
A new SwatTableModel containing the data.

/Site/admin/components/Article/Index.php at line 92

getWhereClause

protected void getWhereClause(mixed view)

/Site/admin/components/Article/Index.php at line 36

initInternal

protected void initInternal()

Initialize the page

Sub-classes should implement this method to initialize the page. At this point the AdminPage::$ui has been constructed but has not been initialized.


/Site/admin/components/Article/Index.php at line 49

processActions

protected void processActions(SwatView view, SwatActions actions)

Processes index actions

This method is called to perform whatever processing is required in response to actions. Sub-classes should implement this method. Widgets can be accessed through the $ui class variable.

Parameters:
view - the view to get selected items from.
actions - the actions list widget.

silverorange Code