silverorange Code


Site.SiteArticleEdit
/Site/admin/components/Article/Edit.php at line 17

Class SiteArticleEdit

SwatObject
└─SiteObject
└─SiteAbstractPage
└─SitePage
└─AdminPage
└─AdminEdit
└─AdminDBEdit
└─SiteArticleEdit

public class SiteArticleEdit
extends AdminDBEdit

Edit page for Articles

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

Field Summary
protected mixed

$edit_article

protected mixed

$parent

protected string

$ui_xml

Method Summary
protected void

addToSearchQueue()

protected void

buildNavBar()

protected void

initArticle()

protected void

initInternal()

Initialize the page.

protected void

loadDBData()

Load the data from the database.

protected void

saveArticle()

protected void

saveDBData()

Save the data from the database.

protected void

validate()

Sub-classes should implement this method to perform validation.

protected boolean

validateShortname(string shortname)

Validate a shortname.

Methods inherited from Admin.AdminDBEdit
loadDBData, loadData, saveDBData, saveData
Methods inherited from Admin.AdminEdit
buildButton, buildForm, buildFrame, buildInternal, buildNavBar, generateShortname, initInternal, loadData, processInternal, relocate, saveData, validate, validateShortname
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/Edit.php at line 22

edit_article

protected mixed $edit_article

/Site/admin/components/Article/Edit.php at line 21

parent

protected mixed $parent

/Site/admin/components/Article/Edit.php at line 27

ui_xml

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


Method Detail

/Site/admin/components/Article/Edit.php at line 139

addToSearchQueue

protected void addToSearchQueue()

/Site/admin/components/Article/Edit.php at line 199

buildNavBar

protected void buildNavBar()

/Site/admin/components/Article/Edit.php at line 55

initArticle

protected void initArticle()

/Site/admin/components/Article/Edit.php at line 34

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/Edit.php at line 187

loadDBData

protected void loadDBData()

Load the data from the database

This method is called to load data to be edited into the widgets. Sub-classes should implement this method and perform whatever actions are necessary to obtain the data. Widgets can be accessed through the $ui class variable.


/Site/admin/components/Article/Edit.php at line 166

saveArticle

protected void saveArticle()

/Site/admin/components/Article/Edit.php at line 115

saveDBData

protected void saveDBData()

Save the data from the database

This method is called to save data from the widgets after processing. Sub-classes should implement this method and perform whatever actions are necessary to store the data. Widgets can be accessed through the $ui class variable.


/Site/admin/components/Article/Edit.php at line 74

validate

protected void validate()

Sub-classes should implement this method to perform validation.


/Site/admin/components/Article/Edit.php at line 94

validateShortname

protected boolean validateShortname(string shortname)

Validate a shortname

This method is called by AdminEdit::generateShortname(). Sub-classes should override this method to perform whatever checks are necessary to validate the shortname.

Parameters:
shortname - The shortname to validate.
Returns:
Whether the shortname is valid.

silverorange Code