Actions

CodeExample

Difference between revisions of "4dab218c50875"

From Joomla! Documentation

(CodeExample provided by Chris Davenport)
 
(Change 1.6 to 2.5)
 
Line 3: Line 3:
 
  <div class='commentBlock'>
 
  <div class='commentBlock'>
  
{{JVer|1.6|From 1.6}}
+
{{JVer|2.5|From 2.5}}
As of Joomla 1.6, JTable properties are automatically generated based on the schema of the specified table. When you specify a table in a class that extends JTable, the field names are read from the table and set as properties. When using Joomla 1.5, you must manually declare all table columns as properties of the class that extends JTable.
+
As of Joomla 2.5, JTable properties are automatically generated based on the schema of the specified table. When you specify a table in a class that extends JTable, the field names are read from the table and set as properties. When using Joomla 1.5, you must manually declare all table columns as properties of the class that extends JTable.
 
   
 
   
  

Latest revision as of 07:34, 29 April 2013

Automatically Generated Properties

From 2.5 As of Joomla 2.5, JTable properties are automatically generated based on the schema of the specified table. When you specify a table in a class that extends JTable, the field names are read from the table and set as properties. When using Joomla 1.5, you must manually declare all table columns as properties of the class that extends JTable.


Chris Davenport 12:21, 17 April 2011 (CDT) Edit comment