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


PHP TWebControl::renderBeginTag方法代碼示例

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


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

示例1: renderBeginTag

 /**
  * Renders an additional line-break after the opening tag when it
  * is in MultiLine text mode.
  * @param THtmlWriter the writer used for the rendering purpose^M
  */
 public function renderBeginTag($writer)
 {
     parent::renderBeginTag($writer);
     if ($this->getTextMode() === 'MultiLine') {
         $writer->write("\n");
     }
 }
開發者ID:Nurudeen,項目名稱:prado,代碼行數:12,代碼來源:TTextBox.php

示例2: renderRepeater

 /**
  * Renders the repeated items.
  * @param THtmlWriter writer for the rendering purpose
  * @param IRepeatInfoUser repeat information user
  */
 public function renderRepeater($writer, IRepeatInfoUser $user)
 {
     if ($this->_repeatLayout === TRepeatLayout::Table) {
         $control = new TTable();
         if ($this->_caption !== '') {
             $control->setCaption($this->_caption);
             $control->setCaptionAlign($this->_captionAlign);
         }
     } else {
         if ($this->_repeatLayout === TRepeatLayout::Raw) {
             $this->renderRawContents($writer, $user);
             return;
         } else {
             $control = new TWebControl();
         }
     }
     $control->setID($user->getClientID());
     $control->copyBaseAttributes($user);
     if ($user->getHasStyle()) {
         $control->getStyle()->copyFrom($user->getStyle());
     }
     $control->renderBeginTag($writer);
     $writer->writeLine();
     if ($this->_repeatDirection === TRepeatDirection::Vertical) {
         $this->renderVerticalContents($writer, $user);
     } else {
         $this->renderHorizontalContents($writer, $user);
     }
     $control->renderEndTag($writer);
 }
開發者ID:bailey-ann,項目名稱:stringtools,代碼行數:35,代碼來源:TRepeatInfo.php

示例3: renderBeginTag

 public function renderBeginTag($writer)
 {
     parent::renderBeginTag($writer);
     $writer->renderBeginTag('p');
     $paf = "<img src=\"http://chart.apis.google.com/chart?";
     if ($this->_chart_type == "t") {
         $paf .= "cht=" . $this->_chart_type;
         $paf .= "&chtm=" . $this->_chart_type_map;
         $paf .= "&chld=" . $this->_chart_type_country;
     } else {
         $paf .= "cht=" . $this->_chart_type;
     }
     $paf .= "&chs=" . $this->_chart_size;
     $paf .= "&chl=" . $this->array2string($this->_chart_label);
     $paf .= "&chd=" . $this->_chart_data_encoding . ":" . $this->array2string($this->_chart_data);
     $paf .= "&chco=" . $this->_chart_color;
     $paf .= "\" alt=\"Green Source Trade\" />";
     $writer->write($paf);
 }
開發者ID:quantrocket,項目名稱:planlogiq,代碼行數:19,代碼來源:PFGoogleChart.php

示例4: renderBeginTag

 /**
  * Renders the openning tag for the table control which will render table caption if present.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 public function renderBeginTag($writer)
 {
     parent::renderBeginTag($writer);
     if (($caption = $this->getCaption()) !== '') {
         if (($align = $this->getCaptionAlign()) !== TTableCaptionAlign::NotSet) {
             $writer->addAttribute('align', strtolower($align));
         }
         $writer->renderBeginTag('caption');
         $writer->write($caption);
         $writer->renderEndTag();
     }
 }
開發者ID:BackupTheBerlios,項目名稱:horux-svn,代碼行數:16,代碼來源:TTable.php

示例5: render

 /**
  * Renders the datagrid.
  * @param THtmlWriter writer for the rendering purpose
  */
 public function render($writer)
 {
     if ($this->getHasControls()) {
         $this->groupCells();
         if ($this->_useEmptyTemplate) {
             $control = new TWebControl();
             $control->setID($this->getClientID());
             $control->copyBaseAttributes($this);
             if ($this->getHasStyle()) {
                 $control->getStyle()->copyFrom($this->getStyle());
             }
             $control->renderBeginTag($writer);
             $this->renderContents($writer);
             $control->renderEndTag($writer);
         } else {
             if ($this->getViewState('ItemCount', 0) > 0) {
                 $this->applyItemStyles();
                 if ($this->_topPager) {
                     $this->_topPager->renderControl($writer);
                     $writer->writeLine();
                 }
                 $this->renderTable($writer);
                 if ($this->_bottomPager) {
                     $writer->writeLine();
                     $this->_bottomPager->renderControl($writer);
                 }
             }
         }
     }
 }
開發者ID:bailey-ann,項目名稱:stringtools,代碼行數:34,代碼來源:TDataGrid.php

示例6: renderBeginTag

 /**
  * Renders the openning tag for the TabPanel control which will render TabPanel menu.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 public function renderBeginTag($writer)
 {
     parent::renderBeginTag($writer);
 }
開發者ID:quantrocket,項目名稱:planlogiq,代碼行數:8,代碼來源:YTabPanel.php

示例7: renderBeginTag

 /**
  * Renders the openning tag for the control (including attributes)
  * @param THtmlWriter the writer used for the rendering purpose
  */
 public function renderBeginTag($writer)
 {
     parent::renderBeginTag($writer);
     if (($text = $this->getGroupingText()) !== '') {
         $writer->renderBeginTag('fieldset');
         $writer->renderBeginTag('legend');
         $writer->write($text);
         $writer->renderEndTag();
     }
 }
開發者ID:tejdeeps,項目名稱:tejcs.com,代碼行數:14,代碼來源:TPanel.php

示例8: renderBeginTag

 public function renderBeginTag($writer)
 {
     parent::renderBeginTag($writer);
     $writer->write("\n");
     $writer->addAttribute('class', $this->_CssClass);
     $writer->renderBeginTag('ul');
     $writer->write("\n");
 }
開發者ID:quantrocket,項目名稱:planlogiq,代碼行數:8,代碼來源:JzlTreeControl.php


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