JTableComponent

From Joomla! Documentation

Jump to: navigation, search

JTableComponent is a concrete table class which handles data-rows of the #__components table.

Contents

Availability

From Joomla 1.5 Joomla 1.6

Defined in

/joomla/database/table/component.php

Extends

Reserved Database Field Names

The operation of this class is dependent on the existence of specially-named fields (columns) in the database table.

Field name Description
id Primery Key
name Component name
link
menuid Menu Id of this component
parent
admin_menu_link
option Option value of this component. Usually com_{COMPONENT_NAME}
ordering
admin_menu_img Image displayed in Admin Menu for this component
iscore Is this a Joomla Core component?
params
enables Component enabled?

Methods

Method name Description
__construct Constructor. Takes table name, primary key and database reference.
bind JTable::bind]] + Converts the component parameters to a string.
check Validate and filter fields.
loadByOption $option parameter is passed. Loads the respective component data row.

Importing

jimport( 'joomla.database.table.component' );

See also

Personal tools