1: <?php
2: /**
3: * Description of IncludeFrontPlace
4: *
5: * @author SARTAJ
6: */
7:
8: namespace Sphp\Comp\Server{
9:
10: class IncludePlace extends \Sphp\tools\Component {
11: private $front_name = "dynData";
12: private $section = "left";
13:
14: protected function genhelpPropList() {
15: $this->addHelpPropFunList('setFrontPlaceFile','Include Front Place','','$filepath');
16: }
17:
18:
19: public function fu_setFrontPlaceFile($filepath,$front_name="main_master",$section="centersp1"){
20: $filepath = $this->frontobj->HTMLParser->resolvePathVar($filepath);
21: $this->front_name = $front_name;
22: $this->section = $section;
23: \addFrontPlace($fornt_name,$filepath,$section);
24: }
25: protected function onrender() {
26: if ($this->front_name != "dynData") \runFrontPlace($this->front_name,$this->section);
27: $strOut = \renderFrontPlaceManually($this->front_name,$this->section);
28: $this->setInnerHTML($strOut);
29: }
30:
31: }
32: }