@@ -28,9 +28,17 @@ discard block |
||
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 |
||
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 |
||
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)){ |
@@ -15,6 +15,7 @@ |
||
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)){ |
@@ -128,12 +128,20 @@ |
||
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); |
@@ -32,6 +32,10 @@ discard block |
||
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 |
||
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 |
||
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){ |
@@ -221,9 +231,9 @@ discard block |
||
221 | 231 | |
222 | 232 | /** |
223 | 233 | * Paginates the DataTable element with a Semantic HtmlPaginationMenu component |
224 | - * @param number $page the active page number |
|
225 | - * @param number $items_per_page |
|
226 | - * @param number $pages_visibles |
|
234 | + * @param integer $page the active page number |
|
235 | + * @param integer $items_per_page |
|
236 | + * @param integer $pages_visibles |
|
227 | 237 | * @param number $total_rowcount |
228 | 238 | * @return DataTable |
229 | 239 | */ |