config, an associative array, can contain the keys 'name'
and 'table_path'. 'name' is transposed to the model name; if 'name' is not
specified the name will be extracted from the name of the class. This will only work if
the name of the class is in the format optionalPrefixModelSomeName. 'table_
path' will be added to the JTable include paths. If table_path is not specified, but
JPATH_COMPONENT_ADMINISTRATOR is defined, then the path JPATH_COMPONENT_
ADMINISTRATOR.DS.'tables' will be added.
Parameters [config] Associative array of configuration options
Methods
static addIncludePath( path : string='' ) : array
Adds a new path to the array of paths used to find JModel classes.
Parameters [path] Path to add
Returns Paths to search for JModel subclasses
static addTablePath( path : mixed='' ) : void
Adds a new path to the array of paths used to find JTable classes. path can be a string, or
an array of strings. Pass through method for JTable::addIncludePath().
Parameters [path] Path or array of paths to add
&getDBO( ) : JDatabase
Gets a reference to a database connection.
Pages:
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520