Class JTableContenttype

Description

Tags table

  • since: 3.1

Located in /libraries/cms/table/contenttype.php (line 19)

JObject
   |
   --JTable
      |
      --JTableContenttype
Method Summary
 JTableContenttype __construct (JDatabaseDriver $db)
 boolean check ()
 mixed fieldmapExpand ([boolean $assoc = true])
 mixed getContentTable ()
 mixed getTypeId (string $typeAlias)
 boolean store ([boolean $updateNulls = false])
Variables
Methods
Constructor __construct (line 28)

Constructor

  • since: 3.1
  • access: public
JTableContenttype __construct (JDatabaseDriver $db)

Redefinition of:
JTable::__construct()
Object constructor to set table and key fields. In most cases this will be overridden by child classes to explicitly set the table and key fields for a particular database table.
check (line 41)

Overloaded check method to ensure data integrity.

  • return: True on success.
  • since: 3.1
  • throws: UnexpectedValueException
  • access: public
boolean check ()

Redefinition of:
JTable::check()
Method to perform sanity checks on the JTable instance properties to ensure they are safe to store in the database. Child classes should override this method to make sure the data they are storing in the database is safe and as expected before storage.
fieldmapExpand (line 92)

Method to expand the field mapping

  • return: Array or object with field mappings. Defaults to object.
  • since: 3.1
  • access: public
mixed fieldmapExpand ([boolean $assoc = true])
  • boolean $assoc: True to return an associative array.
getContentTable (line 125)

Method to get the JTable object for the content type from the table object.

  • return: JTable object on success, otherwise false.
  • since: 3.2
  • access: public
mixed getContentTable ()
getTypeId (line 106)

Method to get the id given the type alias

  • return: type_id for this alias if successful, otherwise null.
  • since: 3.2
  • access: public
mixed getTypeId (string $typeAlias)
  • string $typeAlias: Content type alias (for example, 'com_content.article').
store (line 68)

Overridden JTable::store.

  • return: True on success.
  • since: 3.1
  • access: public
boolean store ([boolean $updateNulls = false])
  • boolean $updateNulls: True to update fields even if they are null.

Redefinition of:
JTable::store()
Method to store a row in the database from the JTable instance properties.

Inherited Methods

Inherited From JTable

 JTable::__construct()
 JTable::addIncludePath()
 JTable::appendPrimaryKeys()
 JTable::attachObserver()
 JTable::bind()
 JTable::check()
 JTable::checkIn()
 JTable::checkOut()
 JTable::delete()
 JTable::getDbo()
 JTable::getFields()
 JTable::getInstance()
 JTable::getKeyName()
 JTable::getNextOrder()
 JTable::getObserverOfClass()
 JTable::getPrimaryKey()
 JTable::getRules()
 JTable::getTableName()
 JTable::hasPrimaryKey()
 JTable::hit()
 JTable::isCheckedOut()
 JTable::load()
 JTable::move()
 JTable::publish()
 JTable::reorder()
 JTable::reset()
 JTable::save()
 JTable::setDBO()
 JTable::setRules()
 JTable::store()
 JTable::_getAssetName()
 JTable::_getAssetParentId()
 JTable::_getAssetTitle()
 JTable::_lock()
 JTable::_unlock()

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 14:57:01 +0100 by phpDocumentor 1.4.3