SwatObject
└─SiteObject
└─SiteAbstractPage
└─SitePage
└─AdminPage
└─AdminIndex
└─SiteArticleIndex
public class SiteArticleIndex
extends AdminIndex
| Field Summary | |
|---|---|
| protected mixed | |
| protected mixed | |
| protected string | |
| Method Summary | |
|---|---|
| protected void | |
| protected void | Build the page for display. |
| protected SwatTableModel | getTableModel(mixed view) Retrieve data to display. |
| protected void | getWhereClause(mixed view) |
| protected void | 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 | |
protected mixed $id = null
protected mixed $parent = null
protected string $ui_xml = 'Site/admin/components/Article/index.xml'
protected void buildDetails()
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().
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.
protected void getWhereClause(mixed view)
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.
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.
view - the view to get selected items from.actions - the actions list widget.
Index page for Articles