SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 71 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

For every table that we want to use
the JTable class with, we must create a new subclass.
When creating JTable subclasses we must follow some specific conventions.
These conventions enable us to integrate our extensions into Joomla! and the
Joomla! framework.
Assuming we are building a component, our JTable subclasses should be located in
separate files in a folder called tables within the component's administrative root.
The class name is the table singular entity name prefixed with Table. The name of
the file is the singular entity name.
We will use the table schema, which we defined earlier in this chapter, for the
entity foobar in the extension 'My Extension', to demonstrate how we use JTable in
conjunction with a database table. You may want to familiarize yourself with the schema
before continuing.
The class is called TableFoobar and is located in the file JPATH_COMPONENT_
ADMINISTRATOR.DS.'tables'.DS.'foobar.php'. The first thing we need to do in
our class is to define the public properties.


Pages:
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6