Completed
Push — master ( 03e9d9...6f0410 )
by Jean-Christophe
03:15
created
Ajax/semantic/widgets/datatable/DataTable.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -32,6 +32,10 @@  discard block
 block discarded – undo
32 32
 	protected $_targetSelector;
33 33
 
34 34
 
35
+	/**
36
+	 * @param string $identifier
37
+	 * @param string $model
38
+	 */
35 39
 	public function __construct($identifier,$model,$modelInstance=NULL) {
36 40
 		parent::__construct($identifier, $model,$modelInstance);
37 41
 		$this->_init(new InstanceViewer($identifier), "table", new HtmlTable($identifier, 0,0), false);
@@ -55,6 +59,9 @@  discard block
 block discarded – undo
55 59
 
56 60
 
57 61
 
62
+	/**
63
+	 * @param string $op
64
+	 */
58 65
 	protected function _generateBehavior($op,$params,JsUtils $js){
59 66
 		if(isset($this->_urls[$op])){
60 67
 			$params=\array_merge($params,["attr"=>"data-ajax"]);
@@ -184,6 +191,9 @@  discard block
 block discarded – undo
184 191
 		return $this;
185 192
 	}
186 193
 
194
+	/**
195
+	 * @param PositionInTable $part
196
+	 */
187 197
 	private function addToolbarRow($part,$table,$captions){
188 198
 		$hasPart=$table->hasPart($part);
189 199
 		if($hasPart){
Please login to merge, or discard this patch.
Ajax/semantic/widgets/base/FieldAsTrait.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -28,9 +28,17 @@  discard block
 block discarded – undo
28 28
 trait FieldAsTrait{
29 29
 
30 30
 	abstract protected function _getFieldIdentifier($prefix,$name="");
31
+
32
+	/**
33
+	 * @param \Closure $callback
34
+	 */
31 35
 	abstract public function setValueFunction($index,$callback);
32 36
 	abstract protected function _getFieldName($index);
33 37
 	abstract protected function _getFieldCaption($index);
38
+
39
+	/**
40
+	 * @param string $event
41
+	 */
34 42
 	abstract protected function _buttonAsSubmit(HtmlButton &$button,$event,$url,$responseElement=NULL,$parameters=NULL);
35 43
 
36 44
 	/**
@@ -70,6 +78,9 @@  discard block
 block discarded – undo
70 78
 		}
71 79
 	}
72 80
 
81
+	/**
82
+	 * @param HtmlFormInput $field
83
+	 */
73 84
 	protected function _prepareFormFields(&$field,$name,&$attributes){
74 85
 		$field->setName($name);
75 86
 		$this->_addRules($field, $attributes);
@@ -235,6 +246,9 @@  discard block
 block discarded – undo
235 246
 		}
236 247
 	}
237 248
 
249
+	/**
250
+	 * @param integer $index
251
+	 */
238 252
 	public function fieldAs($index,$type,$attributes=NULL){
239 253
 		$method="fieldAs".\ucfirst($type);
240 254
 		if(\method_exists($this, $method)){
Please login to merge, or discard this patch.
Ajax/semantic/widgets/business/BusinessForm.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -15,6 +15,7 @@
 block discarded – undo
15 15
 	 * {@inheritdoc}
16 16
 	 *
17 17
 	 * @see \Ajax\semantic\widgets\dataform\DataForm::__construct()
18
+	 * @param string $identifier
18 19
 	 */
19 20
 	public function __construct($identifier,$modelInstance=null,$fieldsOrder,$fieldsDefinition,$fields=[],$captions=[],$separators=[]) {
20 21
 		if(!isset($modelInstance)){
Please login to merge, or discard this patch.
Ajax/semantic/widgets/dataform/DataForm.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -128,12 +128,20 @@
 block discarded – undo
128 128
 		$this->content[$this->_toolbarPosition]=$this->_toolbar;
129 129
 	}
130 130
 
131
+	/**
132
+	 * @param integer $index
133
+	 * @param string $title
134
+	 */
131 135
 	public function addDividerBefore($index,$title){
132 136
 		$index=$this->_getIndex($index);
133 137
 		$this->_instanceViewer->addHeaderDividerBefore($index, $title);
134 138
 		return $this;
135 139
 	}
136 140
 
141
+	/**
142
+	 * @param string $index
143
+	 * @param string $contentAfter
144
+	 */
137 145
 	public function addWrapper($index,$contentBefore,$contentAfter=null){
138 146
 		$index=$this->_getIndex($index);
139 147
 		$this->_instanceViewer->addWrapper($index, $contentBefore,$contentAfter);
Please login to merge, or discard this patch.