Class ContentModelForm

Description

Content Component Article Model

  • since: 1.5

Located in /components/com_content/models/form.php (line 22)

JObject
   |
   --JModelLegacy
      |
      --JModelItem
         |
         --ContentModelArticle
            |
            --ContentModelForm
Variable Summary
 string $typeAlias
Method Summary
 mixed getItem ([integer $itemId = null])
 string getReturnPage ()
 void populateState ()
 boolean save (array $data)
Variables
string $typeAlias = 'com_content.article' (line 29)

Model typeAlias string. Used for version history.

  • access: public

Inherited Variables

Inherited from ContentModelArticle

ContentModelArticle::$_context

Inherited from JModelItem

JModelItem::$_item

Inherited from JModelLegacy

JModelLegacy::$event_clean_cache
JModelLegacy::$name
JModelLegacy::$option
JModelLegacy::$state
JModelLegacy::$_db
JModelLegacy::$__state_set

Inherited from JObject

JObject::$_errors
Methods
getItem (line 67)

Method to get article data.

  • return: Content item data object on success, false on failure.
  • access: public
mixed getItem ([integer $itemId = null])
  • integer $itemId: The id of the article.

Redefinition of:
ContentModelArticle::getItem()
Method to get article data.
getReturnPage (line 164)

Get the return URL.

  • return: The return URL.
  • since: 1.6
  • access: public
string getReturnPage ()
populateState (line 40)

Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.

  • since: 1.6
  • access: protected
void populateState ()

Redefinition of:
ContentModelArticle::populateState()
Method to auto-populate the model state.
save (line 178)

Method to save the form data.

  • return: True on success.
  • since: 3.2
  • access: public
boolean save (array $data)
  • array $data: The form data.

Inherited Methods

Inherited From ContentModelArticle

 ContentModelArticle::getItem()
 ContentModelArticle::hit()
 ContentModelArticle::populateState()
 ContentModelArticle::storeVote()

Inherited From JModelItem

 JModelItem::getStoreId()

Inherited From JModelLegacy

 JModelLegacy::__construct()
 JModelLegacy::addIncludePath()
 JModelLegacy::addTablePath()
 JModelLegacy::cleanCache()
 JModelLegacy::getDbo()
 JModelLegacy::getInstance()
 JModelLegacy::getName()
 JModelLegacy::getState()
 JModelLegacy::getTable()
 JModelLegacy::loadHistory()
 JModelLegacy::populateState()
 JModelLegacy::setDbo()
 JModelLegacy::setState()
 JModelLegacy::_createFileName()
 JModelLegacy::_createTable()
 JModelLegacy::_getList()
 JModelLegacy::_getListCount()

Inherited From JObject

 JObject::__construct()
 JObject::def()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::__toString()

Documentation generated on Tue, 19 Nov 2013 15:03:41 +0100 by phpDocumentor 1.4.3