- 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
- $php_errors
- $php_self
- $redirect_after
- $status
- $template
- __construct
- addCSS
- addJS
- addJquery
- addJqueryPlugin
- addJqueryUI
- checkAccess
- display
- displayFooter
- displayHeader
- getController
- init
- initContent
- initCursedPage
- initFooter
- initHeader
- isCached
- isXmlHttpRequest
- myErrorHandler
- postProcess
- redirect
- removeCSS
- removeJS
- run
- setMedia
- setTemplate
- smartyOutputContent
- viewAccess
public boolean $ajax = false
- Visibility: public
- Source: classes/controller/Controller.php line 75.
protected string $content_only = false
- Visibility: protected
- Source: classes/controller/Controller.php line 70.
protected \Context $context
- Visibility: protected
- Source: classes/controller/Controller.php line 35.
public mixed $controller_type
- Visibility: public
- Source: classes/controller/Controller.php line 81.
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 65.
protected boolean $display_header
- Visibility: protected
- Source: classes/controller/Controller.php line 55.
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 76.
public array $php_errors = array()
- Visibility: public
- This property is static.
- Source: classes/controller/Controller.php line 50.
public mixed $php_self
- Visibility: public
- Source: classes/controller/Controller.php line 82.
protected mixed $redirect_after = null
- Visibility: protected
- Source: classes/controller/Controller.php line 79.
protected mixed $status = ''
- Visibility: protected
- Source: classes/controller/Controller.php line 77.
protected string $template
- Visibility: protected
- Source: classes/controller/Controller.php line 60.
mixed ControllerCore::__construct()
- Visibility: public
- Source: classes/controller/Controller.php line 138
true ControllerCore::addCSS(mixed $css_uri, string $css_media_type, $offset)
Add a new stylesheet in page header.
- Visibility: public
- Source: classes/controller/Controller.php line 249
- $css_uri mixed - Path to css file, or list of css files like this : array(array(uri => media_type), ...)
- $css_media_type string
- $offset mixed
void ControllerCore::addJS(mixed $js_uri)
Add a new javascript file in page header.
- Visibility: public
- Source: classes/controller/Controller.php line 295
- $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 336
- $version mixed
- $folder mixed
- $minifier mixed
mixed ControllerCore::addJqueryPlugin($name, null $folder, boolean $css)
Add a new javascript file in page header.
- Visibility: public
- Source: classes/controller/Controller.php line 368
- $name mixed
- $folder null
- $css boolean
void ControllerCore::addJqueryUI($component, $theme, $check_dependencies)
Add a new javascript file in page header.
- Visibility: public
- Source: classes/controller/Controller.php line 347
- $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 86
mixed ControllerCore::display()
Display page view
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 114
mixed ControllerCore::displayFooter($display)
- Visibility: public
- Source: classes/controller/Controller.php line 212
- $display mixed
mixed ControllerCore::displayHeader($display)
- Visibility: public
- Source: classes/controller/Controller.php line 207
- $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 133
- $class_name string
- $auth boolean
- $ssl boolean
mixed ControllerCore::init()
Initialize the page
- Visibility: public
- Source: classes/controller/Controller.php line 96
mixed ControllerCore::initContent()
Assign smarty variables for the page main content
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 230
mixed ControllerCore::initCursedPage()
Assign smarty variables when access is forbidden
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 235
mixed ControllerCore::initFooter()
Assign smarty variables for the page footer
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 240
mixed ControllerCore::initHeader()
Assign smarty variables for the page header
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 225
mixed ControllerCore::isCached($template, $cacheId, $compileId)
- Visibility: protected
- Source: classes/controller/Controller.php line 436
- $template mixed
- $cacheId mixed
- $compileId mixed
boolean ControllerCore::isXmlHttpRequest()
- Visibility: public
- Source: classes/controller/Controller.php line 390
mixed ControllerCore::myErrorHandler($errno, $errstr, $errfile, $errline)
- Visibility: public
- This method is static.
- Source: classes/controller/Controller.php line 444
- $errno mixed
- $errstr mixed
- $errfile mixed
- $errline mixed
mixed ControllerCore::postProcess()
Do the page treatment : post process, ajax process, etc.
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 109
mixed ControllerCore::redirect()
Redirect after process if no error
- Visibility: protected
- This method is abstract.
- Source: classes/controller/Controller.php line 119
mixed ControllerCore::removeCSS($css_uri, $css_media_type)
- Visibility: public
- Source: classes/controller/Controller.php line 273
- $css_uri mixed
- $css_media_type mixed
mixed ControllerCore::removeJS($js_uri)
- Visibility: public
- Source: classes/controller/Controller.php line 313
- $js_uri mixed
mixed ControllerCore::run()
Start controller process (this method shouldn't be overriden !)
- Visibility: public
- Source: classes/controller/Controller.php line 161
mixed ControllerCore::setMedia()
Set default media list for controller
- Visibility: public
- This method is abstract.
- Source: classes/controller/Controller.php line 124
mixed ControllerCore::setTemplate($template)
- Visibility: public
- Source: classes/controller/Controller.php line 217
- $template mixed
mixed ControllerCore::smartyOutputContent($content)
- Visibility: protected
- Source: classes/controller/Controller.php line 395
- $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 91