Completed
Push — master ( 80f966...5d65dd )
by Jean-Christophe
03:20
created
Ajax/semantic/widgets/base/FieldAsTrait.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -24,6 +24,10 @@  discard block
 block discarded – undo
24 24
 trait FieldAsTrait{
25 25
 
26 26
 	abstract protected function _getFieldIdentifier($prefix);
27
+
28
+	/**
29
+	 * @param \Closure $callback
30
+	 */
27 31
 	abstract public function setValueFunction($index,$callback);
28 32
 
29 33
 	/**
@@ -49,6 +53,10 @@  discard block
 block discarded – undo
49 53
 
50 54
 	protected function _addRules($element,&$attributes){}
51 55
 
56
+	/**
57
+	 * @param \Closure $elementCallback
58
+	 * @param string $prefix
59
+	 */
52 60
 	protected function _fieldAs($elementCallback,$index,$attributes=NULL,$prefix=null){
53 61
 		$this->setValueFunction($index,function($value) use ($index,&$attributes,$elementCallback,$prefix){
54 62
 			$name=$this->_instanceViewer->getCaption($index)."[]";
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Ajax\semantic\widgets\base;
3
-use Ajax\semantic\html\elements\HtmlInput;
4
-use Ajax\semantic\html\modules\checkbox\HtmlCheckbox;
5 3
 use Ajax\service\JString;
6 4
 use Ajax\semantic\html\modules\HtmlDropdown;
7 5
 use Ajax\semantic\html\elements\HtmlImage;
Please login to merge, or discard this patch.