Prev | Current Page 521 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

If access is denied, a 403 error is raised.
Parameters task The task to execute
Returns Result of the executed method. Returns error if no mapped method exists.
&getModel( name : string, prefix : string='' ) : JModel
Gets a new instance of a JModel subclass object. If prefix is not specified, the name of the
controller concatenated with the word 'Model' is used. name is the model class name suffix.
If the class does not exist, Joomla! will attempt to load it from the model paths. If the file
where the class is expected to reside is found but the class is missing, an error will be thrown.
Parameters name Name of model (normally the entity name)
[prefix] Class prefix
Returns A new instance of a JModel subclass object; null on failure
getName( ) : string
Gets the name of the controller.
Returns Controller name
getTask( ) : string
Gets the current task or the last task that was executed.
Returns Current task or the last task that was executed
Appendix
[ 381 ]
getTasks( ) : array
Gets the different task methods that are available for this controller.


Pages:
509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533
noclegi Świnoujście Dubaj traktorki ogrodowe Zamykanie naczynek kraków online loans same day