00001 <?php
00002
00007 class TKNullBox extends TKContainer {
00011 public function __construct() {
00012 parent::__construct();
00013
00014 $this->addProperty('force', self::PROP_BOOLEAN);
00015 $this->set('force', false);
00016 }
00017
00019 protected function renderContainer($class, $style, $events, $id) {
00020 $collect = "";
00021 foreach($this->getChildrenBySlot('main') as $i => $c) {
00022 $params = $this->getChildParams('main', $i);
00023 $ts = isset($params['style']) ?
00024 Toolkit::styleToString($params['style']) : "";
00025 $tc = isset($params['class']) ?
00026 Toolkit::classToString($params['class']) : "";
00027 $render = is_object($c) ? $c->render() : $c;
00028 if($ts || $tc)
00029 $collect .= "<div$tc$ts>$render</div>";
00030 else
00031 $collect .= $render;
00032 }
00033 if($this->get('force') || $class[0] != "" || $style[0] != "" || $events != "")
00034 $collect = "<div$id$class[0]$style[0]$events>$collect\n</div>\n";
00035
00036 return $collect;
00037 }
00038 }
00039
00040 ?>