@@ -2,6 +2,10 @@ discard block |
||
2 | 2 | requireComponents("Adapters"); |
3 | 3 | jRequire("../JException/JException.php"); |
4 | 4 | class Parser { |
5 | + |
|
6 | + /** |
|
7 | + * @param string $_type |
|
8 | + */ |
|
5 | 9 | private static function setParser ( $_type ) { |
6 | 10 | $parser = null; |
7 | 11 | $_type = strtolower($_type); |
@@ -27,6 +31,10 @@ discard block |
||
27 | 31 | } |
28 | 32 | return $parser; |
29 | 33 | } |
34 | + |
|
35 | + /** |
|
36 | + * @param string $_text |
|
37 | + */ |
|
30 | 38 | public static function parseText( $_text, $_parameters = [], $_type = "html" ) { |
31 | 39 | if(!is_string($_text) || !is_string($_type)) |
32 | 40 | throw new JException("Parameter must be a string."); |
@@ -22,6 +22,10 @@ |
||
22 | 22 | throw new JException($e->getMessage(), 1); |
23 | 23 | } |
24 | 24 | } |
25 | + |
|
26 | + /** |
|
27 | + * @param Connection $_connection |
|
28 | + */ |
|
25 | 29 | public function addConnectionMan( $_connection, $_name = "default") { |
26 | 30 | if(!is_object($_connection) || !is_a($_connection, "Connection")) |
27 | 31 | throw new JException("Parameter must be a Connection object.", 1); |