@@ -11,6 +11,10 @@ |
||
11 | 11 | function arrayHtmlParser($_array) { |
12 | 12 | return travelStringArray($_array,"htmlParser"); |
13 | 13 | } |
14 | + |
|
15 | + /** |
|
16 | + * @param string $_function |
|
17 | + */ |
|
14 | 18 | function travelStringArray ( $_array, $_function ) { |
15 | 19 | if (is_array($_array)) { |
16 | 20 | foreach ($_array as $k => $v) { |
@@ -17,6 +17,10 @@ |
||
17 | 17 | }); |
18 | 18 | return $temp; |
19 | 19 | } |
20 | + |
|
21 | + /** |
|
22 | + * @param Closure $_function |
|
23 | + */ |
|
20 | 24 | function fetchInSubFolder( $_dir = "./", $_function) { |
21 | 25 | $temp = []; |
22 | 26 | if (is_dir($_dir)) { |
@@ -11,6 +11,10 @@ |
||
11 | 11 | $render = $this->overlayTag($page); |
12 | 12 | echo minify_output($render); |
13 | 13 | } |
14 | + |
|
15 | + /** |
|
16 | + * @param string $_page |
|
17 | + */ |
|
14 | 18 | protected function overlayTag( $_page ) { |
15 | 19 | foreach($this->data as $key => $value) { |
16 | 20 | $_page = str_replace("<_".$key."_>", "$value", $_page); |
@@ -35,6 +35,10 @@ discard block |
||
35 | 35 | public function addModule( $_mod ) { |
36 | 36 | $this->modules[$_mod->name] = $_mod; |
37 | 37 | } |
38 | + |
|
39 | + /** |
|
40 | + * @param string[] $_files |
|
41 | + */ |
|
38 | 42 | public function addFiles( $_files ) { |
39 | 43 | foreach ($_files as $value) |
40 | 44 | $this->addFile($value); |
@@ -47,6 +51,11 @@ discard block |
||
47 | 51 | $this->data["js"] = $this->getJs(); |
48 | 52 | $this->data["jsVariables"] = $this->getJsVariables(); |
49 | 53 | } |
54 | + |
|
55 | + /** |
|
56 | + * @param string $_function |
|
57 | + * @param string $_extenction |
|
58 | + */ |
|
50 | 59 | protected function getRequire( $_function, $_extenction) { |
51 | 60 | $temp = []; |
52 | 61 | foreach ($this->modules as $i) |
@@ -7,6 +7,11 @@ |
||
7 | 7 | $this->connection = []; |
8 | 8 | $this->currentConnection = null; |
9 | 9 | } |
10 | + |
|
11 | + /** |
|
12 | + * @param string $_name |
|
13 | + * @param Connection|null $_connection |
|
14 | + */ |
|
10 | 15 | public function addConnection( $_name, $_connection ) { |
11 | 16 | $this->connection["$_name"] = $_connection; |
12 | 17 | $this->currentConnection = $_connection; |
@@ -1,4 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | + /** |
|
3 | + * @param string $_path |
|
4 | + */ |
|
2 | 5 | function requireComponent( $_path, $_local = true ) { |
3 | 6 | $path = getJFolder($_path, $_local, debug_backtrace()); |
4 | 7 | if(file_exists($path) && isPhp($path)) |
@@ -6,6 +9,10 @@ discard block |
||
6 | 9 | else |
7 | 10 | requireError($_path); |
8 | 11 | } |
12 | + |
|
13 | + /** |
|
14 | + * @param string $_path |
|
15 | + */ |
|
9 | 16 | function requireComponents( $_path, $_local = true ) { |
10 | 17 | $path = getJFolder($_path, $_local, debug_backtrace()); |
11 | 18 | if(file_exists($path)) { |
@@ -38,6 +45,10 @@ discard block |
||
38 | 45 | $path = getJFolder($_path, $_local, debug_backtrace()); |
39 | 46 | require_once( $path ); |
40 | 47 | } |
48 | + |
|
49 | + /** |
|
50 | + * @param boolean $_local |
|
51 | + */ |
|
41 | 52 | function getJFolder( $_path, $_local, $_stack ) { |
42 | 53 | if($_local) { |
43 | 54 | $stackInfo = $_stack; |