1: | <?php
|
2: | |
3: | |
4: | |
5: | |
6: |
|
7: |
|
8: | namespace Sphp\comp\html{
|
9: |
|
10: | class IncludePlace extends \Sphp\tools\Control {
|
11: | private $tempobj2 = null;
|
12: |
|
13: | protected function genhelpPropList() {
|
14: | $this->addHelpPropFunList('setTempFile','Include Other Temp File','','$filepath');
|
15: | }
|
16: |
|
17: | public function setTempFile($filepath){
|
18: | $this->tempobj2 = new \Sphp\tools\TempFile($filepath,false,null, $this->tempobj->parentapp);
|
19: | }
|
20: | public function onrender() {
|
21: | $this->unsetrenderTag();
|
22: | $strOut = "";
|
23: | $this->tempobj2->run();
|
24: | $strOut .= $this->tempobj2->data;
|
25: | $this->setInnerHTML($strOut);
|
26: | }
|
27: |
|
28: | }
|
29: | } |