@@ -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)) |
@@ -26,6 +29,10 @@ discard block |
||
| 26 | 29 | $info = pathinfo($_file); |
| 27 | 30 | return ($info["extension"] == "php") || ($info["extension"] == "PHP"); |
| 28 | 31 | } |
| 32 | + |
|
| 33 | + /** |
|
| 34 | + * @param string $_path |
|
| 35 | + */ |
|
| 29 | 36 | function requireModules( $_path, $_local = true ) { |
| 30 | 37 | $path = getJFolder($_path, $_local, debug_backtrace()); |
| 31 | 38 | $subFolders = subFolderDir($path); |
@@ -36,6 +43,10 @@ discard block |
||
| 36 | 43 | $path = getJFolder($_path, $_local, debug_backtrace()); |
| 37 | 44 | require_once( $path ); |
| 38 | 45 | } |
| 46 | + |
|
| 47 | + /** |
|
| 48 | + * @param boolean $_local |
|
| 49 | + */ |
|
| 39 | 50 | function getJFolder( $_path, $_local, $_stack ) { |
| 40 | 51 | if($_local) { |
| 41 | 52 | $stackInfo = $_stack; |