| 1: | <?php
|
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: |
|
| 7: |
|
| 8: | namespace Sphp\Comp\Server{
|
| 9: |
|
| 10: | class IncludeFront extends \Sphp\tools\Component {
|
| 11: | private $frontobj2 = null;
|
| 12: |
|
| 13: | protected function genhelpPropList() {
|
| 14: | $this->addHelpPropFunList('setFrontFile','Include Other Front File','','$filepath');
|
| 15: | }
|
| 16: |
|
| 17: |
|
| 18: | public function fi_setFrontFile($filepath){
|
| 19: | $filepath = $this->frontobj->HTMLParser->resolvePathVar($filepath);
|
| 20: | $this->frontobj2 = new \Sphp\tools\FrontFileChild($filepath,false,null, $this->frontobj);
|
| 21: |
|
| 22: | foreach($this->frontobj2->getComponents() as $i=>$comp){
|
| 23: | $this->_addChild($comp);
|
| 24: | }
|
| 25: | }
|
| 26: | protected function onrender() {
|
| 27: |
|
| 28: | $this->tagName = "div";
|
| 29: | $strOut = "";
|
| 30: | $strOut .= $this->frontobj2->ProcessMe();
|
| 31: | $this->setInnerHTML($strOut);
|
| 32: | }
|
| 33: |
|
| 34: | }
|
| 35: | } |