Definition at line 7 of file BasicController.php.
Paperyard\Controllers\BasicController::getLanguageFlag |
( |
| ) |
|
maps current set language to html class
- Returns
- string
Definition at line 74 of file BasicController.php.
76 "de_DE" =>
"flag-icon-de",
77 "en_US" =>
"flag-icon-gb");
78 return $codes[$_SESSION[
'lang-code']];
Paperyard\Controllers\BasicController::getPlugins |
( |
| ) |
|
return successfully registered plugins
- Returns
- array plugins which exist
Definition at line 29 of file BasicController.php.
32 'css' => $this->plugins_css,
33 'js' => $this->plugins_js
Paperyard\Controllers\BasicController::registerPlugin |
( |
|
$name, |
|
|
|
$type = PluginType::NORMAL |
|
) |
| |
checks if plugin exist and adds it to the plugin list
- Parameters
-
$name | string plugin to search for in plugin directory |
$type | int flag to toggle plugin type |
Definition at line 43 of file BasicController.php.
45 $js_path = $_SERVER[
"DOCUMENT_ROOT"] .
'/frontend/public/static/js/plugins/' . $name .
'.js';
46 $css_path = $_SERVER[
"DOCUMENT_ROOT"] .
'/frontend/public/static/js/plugins/' . $name .
'.js';
50 if (file_exists($js_path) &&
51 file_exists($css_path)) {
52 $this->plugins_js[] = $name;
53 $this->plugins_css[] = $name;
57 if (file_exists($css_path)) {
58 $this->plugins_css[] = $name;
62 if (file_exists($js_path)) {
63 $this->plugins_js[] = $name;
Paperyard\Controllers\BasicController::$flash |
|
protected |
Paperyard\Controllers\BasicController::$logger |
|
protected |
Paperyard\Controllers\BasicController::$plugins_css |
|
private |
Paperyard\Controllers\BasicController::$plugins_js |
|
private |
Paperyard\Controllers\BasicController::$view |
|
protected |
The documentation for this class was generated from the following file: