当前位置: 首页>>代码示例>>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;未经允许,请勿转载。