| @@ 26-41 (lines=16) @@ | ||
| 23 | $this->content["table"]->setDefinition(); |
|
| 24 | } |
|
| 25 | ||
| 26 | public function compile(JsUtils $js=NULL,&$view=NULL){ |
|
| 27 | if(!$this->_generated){ |
|
| 28 | $this->_instanceViewer->setInstance($this->_modelInstance); |
|
| 29 | ||
| 30 | $table=$this->content["table"]; |
|
| 31 | $this->_generateContent($table); |
|
| 32 | ||
| 33 | if(isset($this->_toolbar)){ |
|
| 34 | $this->_setToolbarPosition($table); |
|
| 35 | } |
|
| 36 | $this->content=JArray::sortAssociative($this->content, [PositionInTable::BEFORETABLE,"table",PositionInTable::AFTERTABLE]); |
|
| 37 | $this->_compileForm(); |
|
| 38 | $this->_generated=true; |
|
| 39 | } |
|
| 40 | return parent::compile($js,$view); |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @param HtmlTable $table |
|
| @@ 31-45 (lines=15) @@ | ||
| 28 | return $this->identifier."-{$name}-".$this->_instanceViewer->getIdentifier(); |
|
| 29 | } |
|
| 30 | ||
| 31 | public function compile(JsUtils $js=NULL,&$view=NULL){ |
|
| 32 | if(!$this->_generated){ |
|
| 33 | $this->_instanceViewer->setInstance($this->_modelInstance); |
|
| 34 | ||
| 35 | $form=$this->content["form"]; |
|
| 36 | $this->_generateContent($form); |
|
| 37 | ||
| 38 | if(isset($this->_toolbar)){ |
|
| 39 | $this->_setToolbarPosition($form); |
|
| 40 | } |
|
| 41 | $this->content=JArray::sortAssociative($this->content, [PositionInTable::BEFORETABLE,"form",PositionInTable::AFTERTABLE]); |
|
| 42 | $this->_generated=true; |
|
| 43 | } |
|
| 44 | return parent::compile($js,$view); |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * @param HtmlForm $form |
|