@@ -55,6 +55,10 @@ discard block |
||
55 | 55 | |
56 | 56 | |
57 | 57 | |
58 | + /** |
|
59 | + * @param string $name |
|
60 | + * @param string[] $typeCtrl |
|
61 | + */ |
|
58 | 62 | protected function setMemberCtrl(&$name, $value, $typeCtrl) { |
59 | 63 | if ($this->ctrl($name, $value, $typeCtrl) === true) { |
60 | 64 | return $name=$value; |
@@ -72,6 +76,10 @@ discard block |
||
72 | 76 | |
73 | 77 | |
74 | 78 | |
79 | + /** |
|
80 | + * @param string $name |
|
81 | + * @param string[] $typeCtrl |
|
82 | + */ |
|
75 | 83 | protected function addToMemberCtrl(&$name, $value, $typeCtrl, $separator=" ") { |
76 | 84 | if ($this->ctrl($name, $value, $typeCtrl) === true) { |
77 | 85 | if (\is_array($typeCtrl)) { |
@@ -82,6 +90,9 @@ discard block |
||
82 | 90 | return $this; |
83 | 91 | } |
84 | 92 | |
93 | + /** |
|
94 | + * @param string $name |
|
95 | + */ |
|
85 | 96 | protected function addToMember(&$name, $value, $separator=" ") { |
86 | 97 | $name=str_ireplace($value, "", $name) . $separator . $value; |
87 | 98 | return $this; |
@@ -94,6 +105,9 @@ discard block |
||
94 | 105 | $oldValue=trim($oldValue); |
95 | 106 | } |
96 | 107 | |
108 | + /** |
|
109 | + * @param \Closure $callback |
|
110 | + */ |
|
97 | 111 | protected function _getElementBy($callback,$elements){ |
98 | 112 | if (\is_array($elements)) { |
99 | 113 | $flag=false; |
@@ -53,6 +53,9 @@ discard block |
||
53 | 53 | $element->setStyle($value); |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @param HtmlDropdown $bt |
|
58 | + */ |
|
56 | 59 | private function dropdownAsButton($bt) { |
57 | 60 | $this->addExistingDropDown($bt); |
58 | 61 | $bt->setTagName("button"); |
@@ -81,6 +84,9 @@ discard block |
||
81 | 84 | return $result; |
82 | 85 | } |
83 | 86 | |
87 | + /** |
|
88 | + * @param integer $iid |
|
89 | + */ |
|
84 | 90 | private function _addArrayElement(array $element,$iid){ |
85 | 91 | if (array_key_exists("glyph", $element)) |
86 | 92 | $bt=new HtmlGlyphButton($this->identifier."-button-".$iid); |
@@ -36,6 +36,10 @@ discard block |
||
36 | 36 | protected $_targetSelector; |
37 | 37 | protected $_checkedMessage; |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $identifier |
|
41 | + * @param string $model |
|
42 | + */ |
|
39 | 43 | public function __construct($identifier,$model,$modelInstance=NULL) { |
40 | 44 | parent::__construct($identifier, $model,$modelInstance); |
41 | 45 | $this->_init(new InstanceViewer($identifier), "table", new HtmlTable($identifier, 0,0), false); |
@@ -75,6 +79,9 @@ discard block |
||
75 | 79 | if(allChecked) {\$parentCheckbox.checkbox('set checked');}else if(allUnchecked){\$parentCheckbox.checkbox('set unchecked');}else{\$parentCheckbox.checkbox('set indeterminate');};".$checkedMessageCall); |
76 | 80 | } |
77 | 81 | |
82 | + /** |
|
83 | + * @param string $op |
|
84 | + */ |
|
78 | 85 | protected function _generateBehavior($op,JsUtils $js){ |
79 | 86 | if(isset($this->_urls[$op])) |
80 | 87 | $js->getOnClick("#".$this->identifier." ._".$op, $this->_urls[$op],$this->getTargetSelector(),["attr"=>"data-ajax"]); |
@@ -210,6 +217,9 @@ discard block |
||
210 | 217 | return $this; |
211 | 218 | } |
212 | 219 | |
220 | + /** |
|
221 | + * @param PositionInTable $part |
|
222 | + */ |
|
213 | 223 | private function addToolbarRow($part,$table,$captions){ |
214 | 224 | $hasPart=$table->hasPart($part); |
215 | 225 | if($hasPart){ |