@@ -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)) { |
@@ -1,6 +1,14 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | interface ConnectionAdapterInterface { |
| 3 | + |
|
| 4 | + /** |
|
| 5 | + * @return void |
|
| 6 | + */ |
|
| 3 | 7 | public function __construct( $_srv, $_db, $_usr, $_pass); |
| 8 | + |
|
| 9 | + /** |
|
| 10 | + * @return boolean |
|
| 11 | + */ |
|
| 4 | 12 | public function query( $_query ); |
| 5 | 13 | public function queryFetch( $_query ); |
| 6 | 14 | public function queryArray( $_query ); |
@@ -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; |
@@ -9,6 +9,9 @@ |
||
| 9 | 9 | return jBlockEnd($_type, $_parameters); |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | + /** |
|
| 13 | + * @param string $_path |
|
| 14 | + */ |
|
| 12 | 15 | function jBlockFile( $_path, $_parameters = [] ) { |
| 13 | 16 | try { |
| 14 | 17 | $temp = Parser::parseFile($_path, $_parameters); |
@@ -1,4 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | + /** |
|
| 3 | + * @param integer $number |
|
| 4 | + */ |
|
| 2 | 5 | function jateErrorHandler($number, $message, $file, $line) { |
| 3 | 6 | if (!(error_reporting() & $number)) { |
| 4 | 7 | return false; |
@@ -3,6 +3,10 @@ |
||
| 3 | 3 | class Connection { |
| 4 | 4 | public $database; |
| 5 | 5 | public $info; |
| 6 | + |
|
| 7 | + /** |
|
| 8 | + * @param JConfig $_object |
|
| 9 | + */ |
|
| 6 | 10 | public function __construct( $_object ) { |
| 7 | 11 | if(!is_object($_object)) |
| 8 | 12 | throw new InvalidArgumentException("Parameter must be an object."); |
@@ -47,6 +47,10 @@ |
||
| 47 | 47 | if(!(file_exists($_file) || $this->isCorrectUrl($_file))) |
| 48 | 48 | throw new JException("File [$_file] not found."); |
| 49 | 49 | } |
| 50 | + |
|
| 51 | + /** |
|
| 52 | + * @param string $_url |
|
| 53 | + */ |
|
| 50 | 54 | protected function isCorrectUrl( $_url ) { |
| 51 | 55 | return strpos(@get_headers($_url)[0],'200') === false ? false : true; |
| 52 | 56 | } |
@@ -83,6 +83,11 @@ |
||
| 83 | 83 | $this->tags["js"] = $this->getJs(); |
| 84 | 84 | $this->tags["jsVar"] = $this->getJsVars(); |
| 85 | 85 | } |
| 86 | + |
|
| 87 | + /** |
|
| 88 | + * @param string $_function |
|
| 89 | + * @param string $_extenction |
|
| 90 | + */ |
|
| 86 | 91 | protected function getRequire( $_function, $_extenction) { |
| 87 | 92 | $temp = []; |
| 88 | 93 | $filesRequired = $this->getFilesRequired(); |