JTableContent

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
(New page: '''JTableComponent''' is a concrete table class which handles data-rows of the '''#__components''' table. ===Availability=== {{JVer|1.5|From Joomla 1.5}} {{JVer|1.6|Joomla 1.6}} ===Defin...)
 
m (bad link repair)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''JTableComponent''' is a concrete table class which handles data-rows of the '''#__components''' table.
+
This class is available in the following Joomla versions:-
 
+
<splist showpath=notparent />
===Availability===
+
<noinclude>[[Category:Platform JClasses]][[Category:JTableContent]]</noinclude>
{{JVer|1.5|From Joomla 1.5}} {{JVer|1.6|Joomla 1.6}}
+
 
+
===Defined in===
+
/joomla/database/table/component.php
+
 
+
===Extends===
+
* [[JTable]]
+
 
+
===Reserved Database Field Names===
+
The operation of this class is dependent on the existence of specially-named fields (columns) in the database table.
+
{| class="wikitable"
+
|-
+
!Field name
+
!Description
+
|-
+
|access
+
|
+
|-
+
|alias
+
|Content alias
+
|-
+
|attribs
+
|
+
|-
+
|catid
+
|Category ID that belongs to this content article
+
|-
+
|checked_out
+
|1 if checked out, else 0
+
|-
+
|checked_out_time
+
|Time of check out
+
|-
+
|created
+
|Datetime of content creation
+
|-
+
|created_by_alias
+
|Alias of the author.
+
|-
+
|frontpage_down
+
|Time when this article should not appear on the frontpage anymore
+
|-
+
|frontpage_up
+
|Time when this article shall start to appear on the frontpage
+
|-
+
|fulltext
+
|The full text of the article
+
|-
+
|hits
+
|number of hits on this article
+
|-
+
|id
+
|Article ID. Primary Key.
+
|-
+
|images
+
|
+
|-
+
|introtext
+
|
+
|-
+
|mask
+
|DEPRECIATED
+
|-
+
|metadata
+
|
+
|-
+
|metadesc
+
|Description of this article for use in the description field in meta section
+
|-
+
|metakey
+
|Keywords of thsi article for use in the meta section
+
|-
+
|modified
+
|Time of last modification of this article
+
|-
+
|modified_by
+
|User id of the user that has modified this article last
+
|-
+
|ordering
+
|
+
|-
+
|parentid
+
|
+
|-
+
|publish_down
+
|Time, when this article shall be unpublished
+
|-
+
|publish_up
+
|Time when this article shall be published
+
|-
+
|sectionid
+
|The id of the category section
+
|-
+
|state
+
|
+
|-
+
|title
+
|The article title
+
|-
+
|title_alias
+
|The alias of the title
+
|-
+
|urls
+
|
+
|-
+
|version
+
|
+
|}
+
 
+
===Methods===
+
{| class="wikitable"
+
|-
+
!Method name
+
!Description
+
|-
+
|[[JTableContent/__construct|__construct]]
+
|Constructor. Takes table name, primary key and database reference.
+
|-
+
|[[JTableContent/check|check]]
+
|Overloaded check function
+
|-
+
|[[JTableContent/toXML|toXML]]
+
|Converts record to XML
+
|}
+
===Importing===
+
<source lang="php">jimport( 'joomla.database.table.component' );</source>
+
 
+
===See also===
+
* [http://api.joomla.org/Joomla-Framework/Table/JTableComponent.html JTableComponent on api.joomla.org]
+
* [[JTable]]
+
<noinclude>[[Category:Development]][[Category:Framework]][[Category:JTableComponent]]</noinclude>
+

Latest revision as of 14:04, 29 August 2012

This class is available in the following Joomla versions:-

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox