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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


Table field names should all be lowercase and use underscore word separators; you
should avoid using underscores if they are not necessary. For example, you can
name an email address field as email. If you had a primary and a secondary email
field, you could call them email and email_secondary; there is no reason to name
the primary email address email_primary.
If you are using a primary key record ID, you should call the field id, make it of type
integer auto_increment, and disallow null. Doing this will allow you to use the
Joomla! framework more effectively.
Common Fields
We may use some common fields in our tables. Using these fields will enable us to
take advantage of the Joomla! framework. We will discuss how to implement and
manipulate these fields, using the JTable class, later in this chapter.
Chapter 3
[ 43 ]
Publishing
We use publishing to determine whether to display data. Joomla! uses a special field
called published, of type tinyint(1); 0 = not published, 1 = published.
Hits
If we want to keep track of the number of times a record has been viewed, we can
use the special field hits, of type integer and with the default value 0.


Pages:
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6