If default is true, the registered model
will become the default model. JView supports a one-to-many relationship with JModels,
but only one object per model class.
Parameters model JModel to associate
[default] Set as the default model
Returns Reference to the newly registered model (returns $model)
_addPath( type : string, path : mixed ) : void
Adds paths to search for subclass files, normally templates. type is the type of path. To
add a template path type would need to be 'template'. path can be a string or an array
of strings.
Parameters type Type of path
path A path or array of paths
_createFileName ( type : string, parts : array ) : string
Gets a filename based on type and parts. type can be 'template'. parts must
contain the key 'name'.
Parameters type Type of filename
parts Filename parts
Returns Name of a file
_setPath( type : string, path : mixed ) : void
Adds paths to search for files, normally templates. type is the type of path. To add
a template path type would need to be 'template'.
Pages:
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529