- Class name: ControllerCore
- This is an abstract class
- Source: classes/controller/Controller.php line 30
- $ajax
- $content_only
- $context
- $controller_type
- $css_files
- $display_footer
- $display_header
- $js_files
- $json
- $redirect_after
- $status
- $template
- __construct
- addCSS
- addJS
- addJquery
- addJqueryPlugin
- addJqueryUI
- checkAccess
- display
- displayFooter
- displayHeader
- getController
- init
- initContent
- initCursedPage
- initFooter
- initHeader
- isXmlHttpRequest
- postProcess
- redirect
- run
- setMedia
- setTemplate
- smartyOutputContent
- viewAccess
public boolean $ajax = false
- Visibility: public
- Source: classes/controller/Controller.php line 70.
protected string $content_only = false
- Visibility: protected
- Source: classes/controller/Controller.php line 65.
protected \Context $context
- Visibility: protected
- Source: classes/controller/Controller.php line 35.
public mixed $controller_type
- Visibility: public
- Source: classes/controller/Controller.php line 76.
public array $css_files = array()
- Visibility: public
- Source: classes/controller/Controller.php line 40.
protected string $display_footer
- Visibility: protected
- Source: classes/controller/Controller.php line 60.
protected boolean $display_header
- Visibility: protected
- Source: classes/controller/Controller.php line 50.
public array $js_files = array()
- Visibility: public
- Source: classes/controller/Controller.php line 45.
protected mixed $json = false
- Visibility: protected
- Source: classes/controller/Controller.php line 71.
protected mixed $redirect_after = null
- Visibility: protected
- Source: classes/controller/Controller.php line 74.
protected mixed $status = ''
- Visibility: protected
- Source: classes/controller/Controller.php line 72.
protected string $template
- Visibility: protected
- Source: classes/controller/Controller.php line 55.
mixed ControllerCore::__construct()
- Visibility: public
- Source: classes/controller/Controller.php line 131
true ControllerCore::addCSS(mixed $css_uri, string $css_media_type)
Add a new stylesheet in page header.
- Visibility: public
- Source: classes/controller/Controller.php line 236
- $css_uri mixed - Path to css file, or list of css files like this : array(array(uri => media_type), ...)
- $css_media_type string
void ControllerCore::addJS(mixed $js_uri)
Add a new javascript file in page header.
- Visibility: public
- Source: classes/controller/Controller.php line 268
- $js_uri mixed
void ControllerCore::addJquery($version, $folder, $minifier)
Add a new javascript file in page header.
- Visibility: public
- Source: classes/controller/Controller.php line 291
- $version mixed
- $folder mixed
- $minifier mixed
void ControllerCore::addJqueryPlugin($name, $folder)
Add a new javascript file in page header.
- Visibility: public
- Source: classes/controller/Controller.php line 322
- $name mixed
- $folder mixed
void ControllerCore::addJqueryUI($component, $theme, $check_dependencies)
Add a new javascript file in page header.
- Visibility: public
- Source: classes/controller/Controller.php line 302
- $component mixed
- $theme mixed
- $check_dependencies mixed
mixed ControllerCore::checkAccess()
check that the controller is available for the current user/visitor
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 81
mixed ControllerCore::display()
Display page view
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 107
mixed ControllerCore::displayFooter($display)
- Visibility: public
- Source: classes/controller/Controller.php line 199
- $display mixed
mixed ControllerCore::displayHeader($display)
- Visibility: public
- Source: classes/controller/Controller.php line 194
- $display mixed
mixed ControllerCore::getController(string $class_name, boolean $auth, boolean $ssl)
Get an instance of a controller
- Visibility: public
- This method is static.
- Source: classes/controller/Controller.php line 126
- $class_name string
- $auth boolean
- $ssl boolean
mixed ControllerCore::init()
Initialize the page
- Visibility: public
- Source: classes/controller/Controller.php line 91
mixed ControllerCore::initContent()
Assign smarty variables for the page main content
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 217
mixed ControllerCore::initCursedPage()
Assign smarty variables when access is forbidden
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 222
mixed ControllerCore::initFooter()
Assign smarty variables for the page footer
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 227
mixed ControllerCore::initHeader()
Assign smarty variables for the page header
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 212
boolean ControllerCore::isXmlHttpRequest()
- Visibility: public
- Source: classes/controller/Controller.php line 345
mixed ControllerCore::postProcess()
Do the page treatment : post process, ajax process, etc.
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 102
mixed ControllerCore::redirect()
Redirect after process if no error
- Visibility: protected
- This method is abstract.
- Source: classes/controller/Controller.php line 112
mixed ControllerCore::run()
Start controller process (this method shouldn't be overriden !)
- Visibility: public
- Source: classes/controller/Controller.php line 148
mixed ControllerCore::setMedia()
Set default media list for controller
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 117
mixed ControllerCore::setTemplate($template)
- Visibility: public
- Source: classes/controller/Controller.php line 204
- $template mixed
mixed ControllerCore::smartyOutputContent($content)
- Visibility: protected
- Source: classes/controller/Controller.php line 350
- $content mixed
mixed ControllerCore::viewAccess()
check that the current user/visitor has valid view permissions
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 86