JTableCategory
From Joomla! Documentation
(Difference between revisions)
(→See also) |
(→Methods) |
||
| Line 60: | Line 60: | ||
!Description | !Description | ||
|- | |- | ||
| − | |[[ | + | |[[JTableCategory/__construct|__construct]] |
|Constructor. Takes table name, primary key and database reference. | |Constructor. Takes table name, primary key and database reference. | ||
|} | |} | ||
| + | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.database.table.category' );</source> | <source lang="php">jimport( 'joomla.database.table.category' );</source> | ||
Revision as of 09:14, 11 August 2009
JTableCategory is a concrete table class which handles data-rows of the #__categories table.
Contents |
Availability
Defined in
/joomla/database/table/category.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 |
|---|---|
| access | |
| alias | The alias for the cagegory |
| checked_out | 1 for checked out, default 0 |
| checked_out_time | Time of check out |
| id | Category ID. Primary Key. |
| image | Category Image. |
| name | The full name of the category |
| ordering | Category Ordering |
| parent_id | parent categroy of this category |
| published | 1 if published, default null |
| section | The section id |
| title | The menu title for the category (a short name) |
Methods
| Method name | Description |
|---|---|
| __construct | Constructor. Takes table name, primary key and database reference. |
Importing
jimport( 'joomla.database.table.category' );