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 79 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


$join1 = array('idfield' => 'childid',
'name' => '#__myextension_children',
'joinfield' => 'parent',
'label' => 'Children');
$join2 = array('idfield' => 'ichildid',
'name' => '#__myextension_illegitimate_children',
'joinfield' => 'parent',
'label' => 'illegitimate Children');
$joins = array($join1, $join2);
The names of primary keys and foreign keys in all of the tables must
not be the same as the names of any other fields in any of the other
tables. Otherwise, the query will become ambiguous and the method
will always return false.
Manipulating Common Fields
Let us rewind a bit, killing off our record in its prime was a little mean after all!
Our table includes all of those handy common fields we mentioned earlier and
JTable provides us with some useful methods for dealing specifically with those
fields. Throughout the Common Fields examples $table refers to an instance of the
TableFoobar class and $id refers to the ID of the record we are dealing with.
Chapter 3
[ 59 ]
Publishing
To publish and un-publish data we can use the publish() method.


Pages:
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6