parts must
contain the key 'name' and if type is 'view' it can optionally contain the key 'type',
which relates to the layout.
Parameters type Type of filename
[parts] Filename parts
Returns Name of a file
&_createModel( name : string, prefix : string='' ) : JModel
Builds a new JModel subclass object. name is the class name suffix, normally the entity
name. prefix is the class name prefix, normally $controllerName.'View'.
Parameters name Model name (normally the entity name)
[prefix] Model class name prefix
Returns A new JModel subclass object
Appendix
[ 383 ]
&_createView( name : string, prefix : string='', type : string='', config :
array=array() ) : JView
Builds a new JView subclass object. name is the class name suffix, normally the entity
name. prefix is the class name prefix, normally $controllerName.'View'. type is the
layout, normally HTML.
Parameters name View name, normally the entity name
[prefix] View class name prefix
[type] View output type
[config] Configuration array to pass to the view
Returns A new JView subclass object
_setPath( type : string, path : mixed ) : void
Adds paths to search for JModel or JView subclass files.
Pages:
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536