Returns Reference to a database connection
Appendix
[ 373 ]
static &getInstance( type : string, prefix : string='' ) : JModel
Gets a reference to a new instance of a JModel subclass object. If the class cannot be found,
returns false.
Parameters type Name of the JTable
[prefix] Prefix of the class name, normally Model
Returns Reference to a new instance of a JModel-derived object
getName( ) : string
Gets the model name.
Returns Model name
getState( property : string=null ) : mixed
Gets a model state property. If property is not specified, a complete copy of the model's
state object is returned.
Parameters [property] Name of state property
Returns State property or a complete copy of the model's state object
&getTable( name : string='', prefix : string='Table' ) : JTable
Gets an instance of a JTable subclass object. If name is not specified, then the model
name will be used. The parameters are concatenated to create the class name, in the form
$prefix.$name. If the class is not present, the paths defined in JTable will be searched for
a file named $prefix.
Pages:
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521