@@ -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){ |
@@ -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)){ |
@@ -121,6 +121,10 @@ |
||
| 121 | 121 | $this->content[$this->_toolbarPosition]=$this->_toolbar; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | + /** |
|
| 125 | + * @param integer $index |
|
| 126 | + * @param string $title |
|
| 127 | + */ |
|
| 124 | 128 | public function addDividerBefore($index,$title){ |
| 125 | 129 | $index=$this->_getIndex($index); |
| 126 | 130 | $this->_instanceViewer->addHeaderDividerBefore($index, $title); |