Completed
Push — master ( 79b035...e37d9a )
by Jean-Christophe
03:44
created
Ajax/JsUtils.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -719,6 +719,9 @@  discard block
 block discarded – undo
719 719
 		return $this->_create_json($json_result, $match_array_type);
720 720
 	}
721 721
 
722
+	/**
723
+	 * @param boolean $match_array_type
724
+	 */
722 725
 	private function _create_json($json_result, $match_array_type) {
723 726
 		$json=array ();
724 727
 		$_is_assoc=TRUE;
@@ -742,7 +745,7 @@  discard block
 block discarded – undo
742 745
 	 * Checks for an associative array
743 746
 	 *
744 747
 	 * @param type
745
-	 * @return type
748
+	 * @return boolean
746 749
 	 */
747 750
 	public function _is_associative_array($arr) {
748 751
 		foreach ( array_keys($arr) as $key => $val ) {
Please login to merge, or discard this patch.
Ajax/common/traits/JqueryAjaxTrait.php 1 patch
Doc Comments   +22 added lines patch added patch discarded remove patch
@@ -5,6 +5,10 @@  discard block
 block discarded – undo
5 5
 use Ajax\service\JString;
6 6
 use Ajax\service\PhalconUtils;
7 7
 trait JqueryAjaxTrait {
8
+
9
+	/**
10
+	 * @param string $retour
11
+	 */
8 12
 	protected function addLoading(&$retour, $responseElement) {
9 13
 		$loading_notifier='<div class="ajax-loader">';
10 14
 		if ($this->ajaxLoader=='') {
@@ -17,13 +21,23 @@  discard block
 block discarded – undo
17 21
 		$retour.="\t\t$({$responseElement}).prepend('{$loading_notifier}');\n";
18 22
 	}
19 23
 
24
+	/**
25
+	 * @param string $url
26
+	 */
20 27
 	public function _get($url, $params="{}", $responseElement="", $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) {
21 28
 		return $this->_ajax("get", $url,$params,$responseElement,$jsCallback,$attr,$hasLoader,$immediatly);
22 29
 	}
30
+
31
+	/**
32
+	 * @param string $url
33
+	 */
23 34
 	public function _post($url, $params="{}", $responseElement="", $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) {
24 35
 		return $this->_ajax("post", $url,$params,$responseElement,$jsCallback,$attr,$hasLoader,$immediatly);
25 36
 	}
26 37
 
38
+	/**
39
+	 * @param string $method
40
+	 */
27 41
 	protected function _ajax($method,$url, $params="{}", $responseElement="", $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) {
28 42
 		if(JString::isNull($params)){$params="{}";}
29 43
 		$jsCallback=isset($jsCallback) ? $jsCallback : "";
@@ -40,6 +54,9 @@  discard block
 block discarded – undo
40 54
 			return $retour;
41 55
 	}
42 56
 
57
+	/**
58
+	 * @param string $attr
59
+	 */
43 60
 	protected function _getAjaxUrl($url,$attr){
44 61
 		$url=$this->_correctAjaxUrl($url);
45 62
 		$retour="url='".$url."';\n";
@@ -171,6 +188,11 @@  discard block
 block discarded – undo
171 188
 		return $this->_add_event($element, $this->_jsonArray($maskSelector,$url,$method, $params,$jsCallback, $attr, $context), $event, $preventDefault, $stopPropagation,$immediatly);
172 189
 	}
173 190
 
191
+	/**
192
+	 * @param string $url
193
+	 * @param string $form
194
+	 * @param string $responseElement
195
+	 */
174 196
 	public function _postForm($url, $form, $responseElement, $validation=false, $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) {
175 197
 		$jsCallback=isset($jsCallback) ? $jsCallback : "";
176 198
 		$retour=$this->_getAjaxUrl($url, $attr);
Please login to merge, or discard this patch.
Ajax/Jquery.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 	 *
208 208
 	 * @param string $element
209 209
 	 * @param array $options
210
-	 * @return void
210
+	 * @return string
211 211
 	 */
212 212
 	public function sortable($element, $options=array()) {
213 213
 		if (count($options)>0) {
@@ -351,6 +351,7 @@  discard block
 block discarded – undo
351 351
 	/**
352 352
 	 * A wrapper for writing document.ready()
353 353
 	 *
354
+	 * @param string $js
354 355
 	 * @return string
355 356
 	 */
356 357
 	public function _document_ready($js) {
@@ -420,6 +421,9 @@  discard block
 block discarded – undo
420 421
 		return $speed;
421 422
 	}
422 423
 
424
+	/**
425
+	 * @param string $input
426
+	 */
423 427
 	private function minify($input) {
424 428
 	if(trim($input) === "") return $input;
425 429
 	return preg_replace(
Please login to merge, or discard this patch.
Ajax/Semantic.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,6 @@
 block discarded – undo
93 93
 	/**
94 94
 	 * Return a new Semantic Html Breadcrumb
95 95
 	 * @param string $identifier
96
-	 * @param array $elements
97 96
 	 * @param boolean $autoActive sets the last element's class to <b>active</b> if true. default : true
98 97
 	 * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()}
99 98
 	 * @return HtmlBreadcrumb
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticComponentsTrait.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -25,10 +25,16 @@
 block discarded – undo
25 25
 		return $this->addComponent(new Popup($this->js), $attachTo, $params);
26 26
 	}
27 27
 
28
+	/**
29
+	 * @param string $attachTo
30
+	 */
28 31
 	public function dropdown($attachTo=NULL, $params=NULL) {
29 32
 		return $this->addComponent(new Dropdown($this->js), $attachTo, $params);
30 33
 	}
31 34
 
35
+	/**
36
+	 * @param string $attachTo
37
+	 */
32 38
 	public function accordion($attachTo=NULL, $params=NULL) {
33 39
 		return $this->addComponent(new Accordion($this->js), $attachTo, $params);
34 40
 	}
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticHtmlElementsTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
 	/**
62 62
 	 * @param string $identifier
63
-	 * @param number $niveau
63
+	 * @param integer $niveau
64 64
 	 * @param mixed $content
65 65
 	 * @param string $type
66 66
 	 * @return HtmlHeader
Please login to merge, or discard this patch.