SuggestionboxControllerSuggestionbox
class SuggestionboxControllerSuggestionbox extends JController
Methods
Sets a default value if not alreay assigned
Returns a property of the object or the default value if the property is not set.
Returns an associative array of object properties.
Get the most recent error message.
Modifies a property of the object, creating it if it does not already exist.
Set the object properties based on a named array/hash.
Adds to the stack of model paths in LIFO order.
Method to get a singleton controller instance.
Add one or more view paths to the controller's stack, in LIFO order.
Typical view method for MVC based architecture
Execute a task by triggering a method in the derived class.
Method to get a model object, loading it if required.
Get the last task that is being performed or was most recently performed.
Method to get a reference to the current view and load it if necessary.
Register the default task to perform if a mapping is not found.
Register (map) a task to a method in the class.
Sets the internal message that is passed with a redirect
Set a URL for browser redirection.
Details
in JController at line 292
JObject
__construct(array $config = array())
Constructor.
in JObject at line 56
string
__toString()
Magic method to convert the object to a string gracefully.
in JObject at line 70
mixed
def(string $property, mixed $default = null)
Sets a default value if not alreay assigned
in JObject at line 88
mixed
get(string $property, mixed $default = null)
Returns a property of the object or the default value if the property is not set.
in JObject at line 107
array
getProperties(boolean $public = true)
Returns an associative array of object properties.
in JObject at line 133
string
getError(integer $i = null, boolean $toString = true)
Get the most recent error message.
in JObject at line 165
array
getErrors()
Return all errors, if any.
in JObject at line 180
mixed
set(string $property, mixed $value = null)
Modifies a property of the object, creating it if it does not already exist.
in JObject at line 198
boolean
setProperties(mixed $properties)
Set the object properties based on a named array/hash.
in JObject at line 222
void
setError(string $error)
Add an error message.
in JObject at line 235
string
toString()
deprecated
deprecated
in JController at line 156
static void
addModelPath(mixed $path, string $prefix = '')
Adds to the stack of model paths in LIFO order.
in JController at line 212
static mixed
getInstance(string $prefix, array $config = array())
Method to get a singleton controller instance.
in JController at line 427
JController
addViewPath(mixed $path)
Add one or more view paths to the controller's stack, in LIFO order.
in JController at line 445
boolean
authorize(string $task)
deprecated
deprecated
Authorisation check
in JController at line 461
boolean
authorise(string $task)
Authorisation check
in JController at line 601
JController
display(boolean $cachable = false, array $urlparams = false)
Typical view method for MVC based architecture
This function is provide as a default implementation, in most cases you will need to override it in your own controllers.
in JController at line 664
mixed
execute(string $task)
Execute a task by triggering a method in the derived class.
in JController at line 702
object
getModel(string $name = '', string $prefix = '', array $config = array())
Method to get a model object, loading it if required.
in JController at line 740
string
getName()
Method to get the controller name
The dispatcher name is set by default parsed using the classname, or it can be set by passing a $config['name'] in the class constructor
in JController at line 761
string
getTask()
Get the last task that is being performed or was most recently performed.
in JController at line 772
array
getTasks()
Gets the available tasks in the controller.
in JController at line 788
object
getView(string $name = '', string $type = '', string $prefix = '', array $config = array())
Method to get a reference to the current view and load it if necessary.
in JController at line 857
boolean
redirect()
Redirects the browser or returns false if no redirect is set.
in JController at line 875
JController
registerDefaultTask(string $method)
Register the default task to perform if a mapping is not found.
in JController at line 891
JController
registerTask(string $task, string $method)
Register (map) a task to a method in the class.
in JController at line 908
JController
unregisterTask(string $task)
Unregister (unmap) a task in the class.
in JController at line 958
void
setAccessControl(string $section, string $value = null)
deprecated
deprecated
Sets the access control levels.
in JController at line 973
string
setMessage(string $text, string $type = 'message')
Sets the internal message that is passed with a redirect
in JController at line 1013
JController
setRedirect(string $url, string $msg = null, string $type = null)
Set a URL for browser redirection.