1 | <?php |
||
16 | class Module extends \samson\core\ExternalModule implements \samsonframework\core\CompressInterface |
||
17 | { |
||
18 | /** @var Generator */ |
||
19 | protected $generator; |
||
20 | |||
21 | /** |
||
22 | * This method should be used to override generic compression logic. |
||
23 | * |
||
24 | * @param mixed $obj Pointer to compressor instance |
||
25 | * @param array|null $code Collection of already compressed code |
||
26 | * @return bool False if generic compression needs to be avoided |
||
27 | */ |
||
28 | public function beforeCompress(&$obj = null, array &$code = null) |
||
32 | |||
33 | /** |
||
34 | * This method is called after generic compression logic has finished. |
||
35 | * |
||
36 | * @param mixed $obj Pointer to compressor instance |
||
37 | * @param array|null $code Collection of already compressed code |
||
38 | * @return bool False if generic compression needs to be avoided |
||
39 | */ |
||
40 | public function afterCompress(&$obj = null, array &$code = null) |
||
48 | |||
49 | /** |
||
50 | * Module constructor. |
||
51 | * |
||
52 | * @param string $path |
||
53 | * @param ResourcesInterface $resources |
||
54 | * @param SystemInterface $system |
||
55 | * @param Generator $generator |
||
56 | */ |
||
57 | public function __construct($path, ResourcesInterface $resources, SystemInterface $system, Generator $generator = null) |
||
73 | |||
74 | /** |
||
75 | * Help autoloading view classes as we know where we store them. |
||
76 | * |
||
77 | * @param string $class View class name for searching |
||
78 | */ |
||
79 | public function autoload($class) |
||
86 | |||
87 | /** |
||
88 | * Module preparation stage. |
||
89 | * This function called after module instance creation but before |
||
90 | * initialization stage. |
||
91 | * |
||
92 | * @param array $params Preparation stage parameters |
||
93 | * |
||
94 | * @return bool|void Preparation stage result |
||
95 | */ |
||
96 | public function prepare(array $params = array()) |
||
114 | } |
||
115 |
This check looks for access to properties that are not accessible from the current context.
If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.