當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TWebControl::renderContents方法代碼示例

本文整理匯總了PHP中TWebControl::renderContents方法的典型用法代碼示例。如果您正苦於以下問題:PHP TWebControl::renderContents方法的具體用法?PHP TWebControl::renderContents怎麽用?PHP TWebControl::renderContents使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TWebControl的用法示例。


在下文中一共展示了TWebControl::renderContents方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: renderContents

 /**
  * Renders the body content of the label.
  * @param THtmlWriter the renderer
  */
 public function renderContents($writer)
 {
     if (($text = $this->getText()) === '') {
         parent::renderContents($writer);
     } else {
         $writer->write($text);
     }
 }
開發者ID:tejdeeps,項目名稱:tejcs.com,代碼行數:12,代碼來源:TLabel.php

示例2: renderContents

 /**
  * Renders body content.
  * This method overrides the parent implementation by replacing
  * the body content with the processed text content.
  * @param THtmlWriter writer
  */
 public function renderContents($writer)
 {
     if (($text = $this->getText()) === '' && $this->getHasControls()) {
         $textWriter = new TTextWriter();
         parent::renderContents(new THtmlWriter($textWriter));
         $text = $textWriter->flush();
     }
     if ($text !== '') {
         $writer->write($this->processText($text));
     }
 }
開發者ID:BackupTheBerlios,項目名稱:horux-svn,代碼行數:17,代碼來源:TTextProcessor.php

示例3: renderContents

 /**
  * Renders body content.
  * This method overrides the parent implementation by replacing
  * the body content with the processed text content.
  * @param THtmlWriter writer
  */
 public function renderContents($writer)
 {
     if (($text = $this->getText()) === '' && $this->getHasControls()) {
         $htmlWriter = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter());
         parent::renderContents($htmlWriter);
         $text = $htmlWriter->flush();
     }
     if ($text !== '') {
         $writer->write($this->processText($text));
     }
 }
開發者ID:Nurudeen,項目名稱:prado,代碼行數:17,代碼來源:TTextProcessor.php

示例4: renderContents

 /**
  * Renders the body content of the hyperlink.
  * @param THtmlWriter the writer for rendering
  */
 public function renderContents($writer)
 {
     if (($imageUrl = $this->getImageUrl()) === '') {
         if (($text = $this->getText()) !== '') {
             $writer->write(THttpUtility::htmlEncode($text));
         } else {
             if ($this->getHasControls()) {
                 parent::renderContents($writer);
             } else {
                 $writer->write(THttpUtility::htmlEncode($this->getNavigateUrl()));
             }
         }
     } else {
         $this->createImage($imageUrl)->renderControl($writer);
     }
 }
開發者ID:Nurudeen,項目名稱:prado,代碼行數:20,代碼來源:THyperLink.php

示例5: renderContents

 /**
  * Renders body contents of the accordion view.
  * @param THtmlWriter the writer used for the rendering purpose.
  */
 public function renderContents($writer)
 {
     if (($text = $this->getText()) !== '') {
         $writer->write($text);
     } else {
         if ($this->getHasControls()) {
             parent::renderContents($writer);
         }
     }
 }
開發者ID:tejdeeps,項目名稱:tejcs.com,代碼行數:14,代碼來源:TAccordion.php

示例6: renderContents

 public function renderContents($writer)
 {
     $writer->write("<div id='" . $this->Id . "'></div>");
     $writer->write("<SCRIPT LANGUAGE='JavaScript' SRC='" . $this->getJsCookMenuPath() . "'></SCRIPT>\n");
     $writer->write("<SCRIPT LANGUAGE='JavaScript' SRC='" . $this->getJsThemePath() . "'></SCRIPT>\n");
     $writer->write("<LINK REL='stylesheet' HREF='" . $this->getStyleSheetThemePath() . "' TYPE='text/css'>\n");
     $writer->write("<script type='text/javascript'>");
     $writer->write("/*<![CDATA[*/");
     $writer->write("var arrMenu=[");
     $str = JsCookMenu::processControls($this);
     $writer->write($str);
     $writer->write("];");
     $writer->write("cmDraw ('" . $this->Id . "', arrMenu, '" . $this->getMenuOrientation() . "', cm" . $this->getThemeName() . ", '" . $this->getThemeName() . "');");
     $writer->write("</script>");
     parent::renderContents($writer);
 }
開發者ID:algerion,項目名稱:compartidos,代碼行數:16,代碼來源:JsCookMenu.php

示例7: renderContents

 public function renderContents($writer)
 {
     parent::renderContents($writer);
 }
開發者ID:quantrocket,項目名稱:planlogiq,代碼行數:4,代碼來源:PFGoogleChart.php

示例8: renderContents

 /**
  * Renders the body content of the chart.
  *
  * @param THtmlWriter the renderer
  */
 public function renderContents($writer)
 {
     if (count($this->getChartData()) < 1) {
         parent::renderContents($writer);
     } else {
         $assetPath = $this->publishAsset('assets/SWFChart');
         $src = "{$assetPath}/charts.swf?library_path={$assetPath}";
         $src .= "&xml_source={$assetPath}/chartgenerator.php?chart_id=" . $this->genChartXML();
         $writer->addAttribute('name', 'movie');
         $writer->addAttribute('value', $src);
         $writer->renderBeginTag('param');
         $writer->renderEndTag();
         $writer->addAttribute('name', 'quality');
         $writer->addAttribute('value', 'high');
         $writer->renderBeginTag('param');
         $writer->renderEndTag();
         if ($this->getBackColor() != '') {
             $writer->addAttribute('name', 'bgcolor');
             $writer->addAttribute('value', $this->getBackColor());
             $writer->renderBeginTag('param');
             $writer->renderEndTag();
         }
         if ($this->getTransparent()) {
             $writer->addAttribute('name', 'wmode');
             $writer->addAttribute('value', 'transparent');
             $writer->renderBeginTag('param');
             $writer->renderEndTag();
         }
         $writer->addAttribute('src', $src);
         $writer->addAttribute('quality', 'high');
         if ($this->getBackColor() != '') {
             $writer->addAttribute('bgcolor', $this->getBackColor());
         }
         $writer->addAttribute('width', $this->getWidth());
         $writer->addAttribute('height', $this->getHeight());
         $writer->addAttribute('name', 'charts');
         $writer->addAttribute('swLiveConnect', 'true');
         if ($this->getTransparent()) {
             $writer->addAttribute('wmode', 'transparent');
         }
         $writer->addAttribute('type', 'application/x-shockwave-flash');
         $writer->addAttribute('pluginspage', 'http://www.macromedia.com/go/getflashplayer');
         $writer->renderBeginTag('embed');
         $writer->renderEndTag();
     }
 }
開發者ID:quantrocket,項目名稱:planlogiq,代碼行數:51,代碼來源:SWFChart.php

示例9: renderContents

 /**
  * Render contents. Add style='z-index: {@link getZIndex() ZIndex}'
  * to ul tags.
  * 
  * @see renderContents()
  */
 public function renderContents($writer)
 {
     //set last css class
     if ($this->Controls->Count > 1 && $lastHasMoreContros == 0) {
         $lastHasMoreContros = $this->Controls[$this->Controls->Count - 1]->Controls->Count;
         if ($lastHasMoreContros > 1) {
             $this->Controls[$this->Controls->Count - 1]->setCssClass("lastcolapse" . $this->Controls[$this->Controls->Count - 1]->getCssClass());
         } else {
             $this->Controls[$this->Controls->Count - 1]->setCssClass("last" . $this->Controls[$this->Controls->Count - 1]->getCssClass());
         }
     }
     if ($this->HasControls) {
         if ($this->_expand) {
             $this->_label->setCssClass("minus");
             $this->_label->setAttribute('onclick', 'tree_Colapse(this)');
         }
         $this->_label->render($writer);
         $writer->write("\n");
         $writer->renderBeginTag('ul');
         $writer->write("\n");
     } else {
         $this->_label->render($writer);
     }
     parent::renderContents($writer);
     if ($this->HasControls) {
         $writer->renderEndTag('ul');
         $writer->write("\n");
     }
 }
開發者ID:quantrocket,項目名稱:planlogiq,代碼行數:35,代碼來源:JzlTreeControl.php

示例10: renderContents

 /**
  * Renders the body content enclosed between the control tag.
  * This overrides the parent implementation with nothing to be rendered for input tags,
  * button tags are rendered normally.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 public function renderContents($writer)
 {
     if ($this->getButtonTag() === TButtonTag::Button) {
         parent::renderContents($writer);
     }
 }
開發者ID:Nurudeen,項目名稱:prado,代碼行數:12,代碼來源:TButton.php


注:本文中的TWebControl::renderContents方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。