Completed
Push — master ( da7bd7...a4feba )
by Jean-Christophe
03:22
created
Ajax/semantic/html/content/table/HtmlTableContent.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@  discard block
 block discarded – undo
62 62
 		return $tr;
63 63
 	}
64 64
 
65
+	/**
66
+	 * @param integer $value
67
+	 */
65 68
 	public function newRow($value) {
66 69
 		return $this->createItem($value);
67 70
 	}
@@ -160,6 +163,9 @@  discard block
 block discarded – undo
160 163
 		return $this;
161 164
 	}
162 165
 
166
+	/**
167
+	 * @param integer $colIndex
168
+	 */
163 169
 	public function setColValues($colIndex, $values=array()) {
164 170
 		$count=$this->count();
165 171
 		if (!\is_array($values)) {
@@ -180,6 +186,9 @@  discard block
 block discarded – undo
180 186
 		return $this;
181 187
 	}
182 188
 
189
+	/**
190
+	 * @param integer $rowIndex
191
+	 */
183 192
 	public function setRowValues($rowIndex, $values=array()) {
184 193
 		$count=$this->count();
185 194
 		if (!\is_array($values)) {
@@ -189,6 +198,9 @@  discard block
 block discarded – undo
189 198
 		return $this;
190 199
 	}
191 200
 
201
+	/**
202
+	 * @param string $function
203
+	 */
192 204
 	private function colAlign($colIndex, $function) {
193 205
 		$count=$this->count();
194 206
 		for($i=0; $i < $count; $i++) {
Please login to merge, or discard this patch.
Ajax/semantic/widgets/base/FieldAsTrait.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -29,9 +29,17 @@  discard block
 block discarded – undo
29 29
 trait FieldAsTrait{
30 30
 
31 31
 	abstract protected function _getFieldIdentifier($prefix,$name="");
32
+
33
+	/**
34
+	 * @param \Closure $callback
35
+	 */
32 36
 	abstract public function setValueFunction($index,$callback);
33 37
 	abstract protected function _getFieldName($index);
34 38
 	abstract protected function _getFieldCaption($index);
39
+
40
+	/**
41
+	 * @param string $event
42
+	 */
35 43
 	abstract protected function _buttonAsSubmit(HtmlButton &$button,$event,$url,$responseElement=NULL,$parameters=NULL);
36 44
 
37 45
 	/**
@@ -242,6 +250,9 @@  discard block
 block discarded – undo
242 250
 		}
243 251
 	}
244 252
 
253
+	/**
254
+	 * @param integer $index
255
+	 */
245 256
 	public function fieldAs($index,$type,$attributes=NULL){
246 257
 		$method="fieldAs".\ucfirst($type);
247 258
 		if(\method_exists($this, $method)){
Please login to merge, or discard this patch.
Ajax/service/JString.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -5,10 +5,17 @@  discard block
 block discarded – undo
5 5
 	public static function contains($hay,$needle){
6 6
 		return strpos($hay, $needle) !== false;
7 7
 	}
8
+
9
+	/**
10
+	 * @param string $needle
11
+	 */
8 12
 	public static function startswith($hay, $needle) {
9 13
 		return substr($hay, 0, strlen($needle)) === $needle;
10 14
 	}
11 15
 
16
+	/**
17
+	 * @param string $needle
18
+	 */
12 19
 	public static function endswith($hay, $needle) {
13 20
 		return substr($hay, -strlen($needle)) === $needle;
14 21
 	}
@@ -46,6 +53,12 @@  discard block
 block discarded – undo
46 53
 		return \preg_replace($from, $to, $subject, 1);
47 54
 	}
48 55
 
56
+	/**
57
+	 * @param string $fromFirst
58
+	 * @param string $toFirst
59
+	 * @param string $fromLast
60
+	 * @param string $toLast
61
+	 */
49 62
 	public static function replaceAtFirstAndLast($subject,$fromFirst,$toFirst,$fromLast,$toLast){
50 63
 		$s=self::replaceAtFirst($subject, $fromFirst, $toFirst);
51 64
 		return self::replaceAtLast($s, $fromLast, $toLast);
Please login to merge, or discard this patch.