Parameters query Query to execute
Returns Value in the first field in the first record of the results
getPrefix( ) : string
Gets the database table prefix, normally jos_.
Returns Database table prefix
getQuery( ) : mixed
Gets the active query.
Returns Active query
GetRow( query : string ) : array
Emulates ADOdb functionality.
Executes query and gets the first record as an array.
Parameters query Query to execute
Returns First record as an array
getTableCreate( tables : array ) : array
Gets an associative array of table creation queries for the tables named in tables.
Parameters tables Array of table names
Returns Associative array of table creation queries
Appendix
[ 447 ]
getTableFields( tables : array ) : array
Gets an associative array of table fields and types. For example, a table called jos_test
with two fields might return this:
Array
(
[jos_test] => Array
(
[id] => int
[name] => varchar
)
)
Parameters tables Array of table names
Returns Associative array of tables and table fields
getTableList( ) : array
Gets the names of the tables in the database.
Pages:
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617