Class WeblinksModelWeblink

Description

Weblinks Component Model for a Weblink record

  • since: 1.5

Located in /components/com_weblinks/models/weblink.php (line 21)

JObject
   |
   --JModelLegacy
      |
      --JModelItem
         |
         --WeblinksModelWeblink
Direct descendents
Class Description
 class WeblinksModelForm Weblinks model.
Variable Summary
 string $_context
Method Summary
 mixed getItem ([integer $id = null])
 JTable getTable ([type $type = 'Weblink'], [string $prefix = 'WeblinksTable'], [array $config = array()])
 boolean hit ([integer $id = null])
 void populateState ()
Variables
string $_context = 'com_weblinks.weblink' (line 29)

Model context string.

  • access: protected

Redefinition of:
JModelItem::$_context
Model context string.

Inherited Variables

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 58)

Method to get an object.

  • return: Object on success, false on failure.
  • access: public
mixed getItem ([integer $id = null])
  • integer $id: The id of the object to get.
getTable (line 106)

Returns a reference to the a Table object, always creating it.

  • return: A database object
  • since: 1.6
  • access: public
JTable getTable ([type $type = 'Weblink'], [string $prefix = 'WeblinksTable'], [array $config = array()])
  • type $type: The table type to instantiate
  • string $prefix: A prefix for the table class name. Optional.
  • array $config: Configuration array for model. Optional.

Redefinition of:
JModelLegacy::getTable()
Method to get a table object, load it if necessary.
hit (line 118)

Method to increment the hit counter for the weblink

  • return: True on success
  • access: public
boolean hit ([integer $id = null])
  • integer $id: Optional ID of the weblink.
populateState (line 38)

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:
JModelLegacy::populateState()
Method to auto-populate the model state.

Redefined in descendants as:

Inherited Methods

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:18:24 +0100 by phpDocumentor 1.4.3