@@ -44,6 +44,11 @@ discard block |
||
| 44 | 44 | $this->show($modelInstance); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param InstanceViewer $instanceViewer |
|
| 49 | + * @param string $contentKey |
|
| 50 | + * @param boolean $edition |
|
| 51 | + */ |
|
| 47 | 52 | protected function _init($instanceViewer,$contentKey,$content,$edition){ |
| 48 | 53 | $this->_instanceViewer=$instanceViewer; |
| 49 | 54 | $this->content=[$contentKey=>$content]; |
@@ -96,16 +101,26 @@ discard block |
||
| 96 | 101 | return $this; |
| 97 | 102 | } |
| 98 | 103 | |
| 104 | + /** |
|
| 105 | + * @param \Closure $field |
|
| 106 | + */ |
|
| 99 | 107 | public function addField($field){ |
| 100 | 108 | $this->_instanceViewer->addField($field); |
| 101 | 109 | return $this; |
| 102 | 110 | } |
| 103 | 111 | |
| 112 | + /** |
|
| 113 | + * @param integer $index |
|
| 114 | + * @param \Closure $field |
|
| 115 | + */ |
|
| 104 | 116 | public function insertField($index,$field){ |
| 105 | 117 | $this->_instanceViewer->insertField($index, $field); |
| 106 | 118 | return $this; |
| 107 | 119 | } |
| 108 | 120 | |
| 121 | + /** |
|
| 122 | + * @param \Closure $field |
|
| 123 | + */ |
|
| 109 | 124 | public function insertInField($index,$field){ |
| 110 | 125 | $this->_instanceViewer->insertInField($index, $field); |
| 111 | 126 | return $this; |