public function Render($blnPrint = true)
 {
     $strRendered = parent::Render();
     $strRendered .= sprintf("<div id='%s' name='%s'>\n", $this->strControlId, $this->strControlId);
     //Render Text
     $strRendered .= $this->strText;
     //Check/Do autorender children
     if ($this->blnAutoRenderChildren) {
         foreach ($this->arrChildControls as $objChildControl) {
             $strRendered .= $objChildControl->Render(false);
         }
     }
     $strRendered .= "</div>";
     if ($blnPrint) {
         _p($strRendered, false);
     } else {
         return $strRendered;
     }
 }
示例#2
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         /*
                     case "Selected":
            try {
                return ($this->blnSelected = QType::Cast($mixValue, QType::Boolean));
            } catch (QCallerException $objExc) {
                $objExc->IncrementOffset();
                throw $objExc;
            }
         */
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }