Elgg
Version 3.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Di
PublicContainer.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Di
;
4
5
use
DI\Container
;
6
use
Elgg\Application\Database
;
7
use
Elgg\Config
;
8
use
Elgg\EventsService
;
9
use
Elgg\Gatekeeper
;
10
use
Elgg\Groups\Tools
;
11
use
Elgg\I18n\Translator
;
12
use
Elgg\Logger
;
13
use
Elgg\Menu\Service
;
14
use
Elgg\PluginHooksService
;
15
use
Elgg\Security\Csrf
;
16
use
Elgg\SystemMessagesService
;
17
use
Elgg\Users\Accounts
;
18
use
Elgg\Views\HtmlFormatter
;
19
use
Elgg\Views\TableColumn\ColumnFactory
;
20
use
ElggSession
;
21
use
Elgg\I18n\LocaleService
;
22
45
class
PublicContainer
extends
Container {
46
50
public
function
__get
(
$name
) {
51
return
$this->
get
(
$name
);
52
}
53
57
public
function
__call
(
$name
, $arguments) {
58
$proxies = [
59
'echo'
=> [
'translator'
,
'translate'
],
60
];
61
62
if
(!empty($proxies[
$name
])) {
63
$svc = $proxies[
$name
][0];
64
$method = $proxies[
$name
][1];
65
66
return
call_user_func_array([$this->$svc, $method], $arguments);
67
}
68
}
69
}
Database
Service
Csrf
$name
if(!$user||!$user->canDelete()) $name
Definition:
delete.php:22
Translator
Gatekeeper
Accounts
LocaleService
EventsService
Elgg\Di\PublicContainer
Definition:
PublicContainer.php:45
Elgg\Di\PublicContainer\__call
__call($name, $arguments)
{}
Definition:
PublicContainer.php:57
Elgg\Logger
Definition:
BacktraceProcessor.php:3
Elgg\Config
Definition:
DatarootSettingMigrator.php:3
Container
PluginHooksService
Elgg\Di\PublicContainer\__get
__get($name)
{}
Definition:
PublicContainer.php:50
Tools
HtmlFormatter
ElggSession
Elgg\Di
Definition:
DefinitionCache.php:3
SystemMessagesService
ColumnFactory
Generated on Wed Feb 24 2021 00:00:18 for Elgg by
1.8.11