SwatObject
└─SiteObject
└─SiteAbstractPage
└─SitePage
└─AdminPage
└─AdminEdit
└─AdminDBEdit
└─SiteArticleEdit
public class SiteArticleEdit
extends AdminDBEdit
| Field Summary | |
|---|---|
| protected mixed | |
| protected mixed | |
| protected string | |
| Method Summary | |
|---|---|
| protected void | |
| protected void | |
| protected void | |
| protected void | Initialize the page. |
| protected void | Load the data from the database. |
| protected void | |
| protected void | 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 | |
protected mixed $edit_article
protected mixed $parent
protected string $ui_xml = 'Site/admin/components/Article/edit.xml'
protected void addToSearchQueue()
protected void buildNavBar()
protected void initArticle()
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 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.
protected void saveArticle()
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.
protected void validate()
Sub-classes should implement this method to perform validation.
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.
shortname - The shortname to validate.
Edit page for Articles