Class JTableModule

Description

Module table

  • since: 11.1

Located in /libraries/legacy/table/module.php (line 19)

JObject
   |
   --JTable
      |
      --JTableModule
Method Summary
 JTableModule __construct (JDatabaseDriver $db)
 mixed bind (array $array, [mixed $ignore = ''])
 boolean check ()
 string _getAssetName ()
 integer _getAssetParentId ([JTable $table = null], [integer $id = null])
 string _getAssetTitle ()
Variables
Methods
Constructor __construct (line 28)

Constructor.

  • since: 11.1
  • access: public
JTableModule __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.
bind (line 147)

Overloaded bind function.

  • return: Null if operation was satisfactory, otherwise returns an error
  • see: JTable::bind()
  • since: 11.1
  • access: public
mixed bind (array $array, [mixed $ignore = ''])
  • array $array: Named array.
  • mixed $ignore: An optional array or space separated list of properties to ignore while binding.

Redefinition of:
JTable::bind()
Method to bind an associative array or object to the JTable instance.This method only binds properties that are publicly accessible and optionally takes an array of properties to ignore when binding.
check (line 114)

Overloaded check function.

  • return: True if the instance is sane and able to be stored in the database.
  • see: JTable::check()
  • since: 11.1
  • 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.
_getAssetName (line 44)

Method to compute the default name of the asset.

The default name is in the form table_name.id where id is the value of the primary key of the table.

  • since: 11.1
  • access: protected
string _getAssetName ()

Redefinition of:
JTable::_getAssetName()
Method to compute the default name of the asset.
_getAssetParentId (line 73)

Method to get the parent asset id for the record

  • since: 11.1
  • access: protected
integer _getAssetParentId ([JTable $table = null], [integer $id = null])
  • JTable $table: A JTable object (optional) for the asset parent
  • integer $id: The id (optional) of the content.

Redefinition of:
JTable::_getAssetParentId()
Method to get the parent asset under which to register this one.
_getAssetTitle (line 58)

Method to return the title to use for the asset table.

  • since: 11.1
  • access: protected
string _getAssetTitle ()

Redefinition of:
JTable::_getAssetTitle()
Method to return the title to use for the asset table. In

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 15:08:38 +0100 by phpDocumentor 1.4.3