当前位置: 首页>>代码示例>>PHP>>正文


PHP TWebControl::addAttributesToRender方法代码示例

本文整理汇总了PHP中TWebControl::addAttributesToRender方法的典型用法代码示例。如果您正苦于以下问题:PHP TWebControl::addAttributesToRender方法的具体用法?PHP TWebControl::addAttributesToRender怎么用?PHP TWebControl::addAttributesToRender使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TWebControl的用法示例。


在下文中一共展示了TWebControl::addAttributesToRender方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addAttributesToRender

 /**
  * Adds attributes to renderer.
  * @param THtmlWriter the renderer
  * @throws TInvalidDataValueException if default button is not right.
  */
 protected function addAttributesToRender($writer)
 {
     parent::addAttributesToRender($writer);
     if (($butt = $this->getDefaultButton()) !== '') {
         $writer->addAttribute('id', $this->getClientID());
     }
 }
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:12,代码来源:TPanel.php

示例2: addAttributesToRender

 /**
  * Adds attributes to renderer.
  * @param THtmlWriter the renderer
  * @throws TInvalidDataValueException if associated control cannot be found using the ID
  */
 protected function addAttributesToRender($writer)
 {
     if ($this->_forControl !== '') {
         $writer->addAttribute('for', $this->_forControl);
     }
     parent::addAttributesToRender($writer);
 }
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:12,代码来源:TLabel.php

示例3: addAttributesToRender

 /**
  * Adds attributes related to an HTML image element to renderer.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 protected function addAttributesToRender($writer)
 {
     $writer->addAttribute('src', $this->getImageUrl());
     $writer->addAttribute('alt', $this->getAlternateText());
     if (($desc = $this->getDescriptionUrl()) !== '') {
         $writer->addAttribute('longdesc', $desc);
     }
     if (($align = $this->getImageAlign()) !== '') {
         $writer->addAttribute('align', $align);
     }
     parent::addAttributesToRender($writer);
 }
开发者ID:BackupTheBerlios,项目名称:horux-svn,代码行数:16,代码来源:TImage.php

示例4: addAttributesToRender

 /**
  * Adds attributes to renderer.
  * @param THtmlWriter the renderer
  * @throws TInvalidDataValueException if default button is not right.
  */
 protected function addAttributesToRender($writer)
 {
     parent::addAttributesToRender($writer);
     if (($butt = $this->getDefaultButton()) !== '') {
         if (($button = $this->findControl($butt)) === null) {
             throw new TInvalidDataValueException('panel_defaultbutton_invalid', $butt);
         } else {
             $writer->addAttribute('id', $this->getClientID());
             $this->getPage()->getClientScript()->registerDefaultButton($this, $button);
         }
     }
 }
开发者ID:BackupTheBerlios,项目名称:horux-svn,代码行数:17,代码来源:TPanel.php

示例5: addAttributesToRender

 /**
  * Sets name attribute to the unique ID of the control.
  * This method overrides the parent implementation with additional file update control specific attributes.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 protected function addAttributesToRender($writer)
 {
     $this->getPage()->ensureRenderInForm($this);
     parent::addAttributesToRender($writer);
     $writer->addAttribute('type', 'file');
     $writer->addAttribute('name', $this->getUniqueID());
     $isEnabled = $this->getEnabled(true);
     if (!$isEnabled && $this->getEnabled()) {
         // in this case parent will not render 'disabled'
         $writer->addAttribute('disabled', 'disabled');
     }
 }
开发者ID:BackupTheBerlios,项目名称:horux-svn,代码行数:17,代码来源:TFileUpload.php

示例6: addAttributesToRender

 /**
  * Adds attributes related to a hyperlink element to renderer.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 protected function addAttributesToRender($writer)
 {
     $isEnabled = $this->getEnabled(true);
     if ($this->getEnabled() && !$isEnabled) {
         $writer->addAttribute('disabled', 'disabled');
     }
     parent::addAttributesToRender($writer);
     if (($url = $this->getNavigateUrl()) !== '' && $isEnabled) {
         $writer->addAttribute('href', $url);
     }
     if (($target = $this->getTarget()) !== '') {
         $writer->addAttribute('target', $target);
     }
 }
开发者ID:Nurudeen,项目名称:prado,代码行数:18,代码来源:THyperLink.php

示例7: addAttributesToRender

 /**
  * Adds attribute name-value pairs to renderer.
  * This overrides the parent implementation with additional button specific attributes.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 protected function addAttributesToRender($writer)
 {
     $page = $this->getPage();
     $page->ensureRenderInForm($this);
     if (($uniqueID = $this->getUniqueID()) !== '') {
         $writer->addAttribute('name', $uniqueID);
     }
     if ($this->getEnabled(true)) {
         if ($this->getEnableClientScript() && $this->needPostBackScript()) {
             $this->renderClientControlScript($writer);
         }
     } else {
         if ($this->getEnabled()) {
             // in this case, parent will not render 'disabled'
             $writer->addAttribute('disabled', 'disabled');
         }
     }
     parent::addAttributesToRender($writer);
 }
开发者ID:silotester,项目名称:silo,代码行数:24,代码来源:TCustomButton.php

示例8: addAttributesToRender

 /**
  * Adds attributes to renderer.
  * @param THtmlWriter the renderer
  */
 protected function addAttributesToRender($writer)
 {
     parent::addAttributesToRender($writer);
     if (($colspan = $this->getColumnSpan()) > 0) {
         $writer->addAttribute('colspan', "{$colspan}");
     }
     if (($rowspan = $this->getRowSpan()) > 0) {
         $writer->addAttribute('rowspan', "{$rowspan}");
     }
 }
开发者ID:BackupTheBerlios,项目名称:horux-svn,代码行数:14,代码来源:TTableCell.php

示例9: addAttributesToRender

 /**
  * Adds attribute name-value pairs to renderer.
  * This overrides the parent implementation with additional button specific attributes.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 protected function addAttributesToRender($writer)
 {
     $page = $this->getPage();
     $page->ensureRenderInForm($this);
     $writer->addAttribute('id', $this->getClientID());
     // We call parent implementation here because some attributes
     // may be overwritten in the following
     parent::addAttributesToRender($writer);
     if ($this->getEnabled(true) && $this->getEnableClientScript()) {
         $this->renderLinkButtonHref($writer);
         $this->renderClientControlScript($writer);
     } else {
         if ($this->getEnabled()) {
             // in this case, parent will not render 'disabled'
             $writer->addAttribute('disabled', 'disabled');
         }
     }
 }
开发者ID:BackupTheBerlios,项目名称:horux-svn,代码行数:23,代码来源:TLinkButton.php

示例10: addAttributesToRender

 /**
  * Adds attributes to renderer.
  * @param THtmlWriter the renderer
  */
 protected function addAttributesToRender($writer)
 {
     $writer->addAttribute('class', $this->Parent->getPageCssClass());
     $writer->addAttribute('id', $this->ClientID);
     $style = ($w = $this->getWidth()) !== '' ? 'width:' . $w . ';' : '';
     $style .= ($h = $this->getHeight()) !== '' ? 'height:' . $h . ';' : '';
     $style .= !$this->Parent->isDefault($this->ClientID) ? 'display:none;' : '';
     if ($style !== '') {
         $writer->addAttribute('style', $style);
     }
     parent::addAttributesToRender($writer);
 }
开发者ID:quantrocket,项目名称:planlogiq,代码行数:16,代码来源:YTabPanel.php

示例11: addAttributesToRender

 protected function addAttributesToRender($writer)
 {
     $display = $this->getDisplay();
     $visible = $this->getEnabled(true) && count($this->getErrorMessages()) > 0;
     if (!$visible) {
         if ($display === TValidationSummaryDisplayStyle::None || $display === TValidationSummaryDisplayStyle::Dynamic) {
             $writer->addStyleAttribute('display', 'none');
         } else {
             $writer->addStyleAttribute('visibility', 'hidden');
         }
     }
     $writer->addAttribute('id', $this->getClientID());
     parent::addAttributesToRender($writer);
 }
开发者ID:quantrocket,项目名称:planlogiq,代码行数:14,代码来源:TValidationSummary.php

示例12: addAttributesToRender

 /**
  * Adds attribute name-value pairs to renderer.
  * This overrides the parent implementation with additional button specific attributes.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 protected function addAttributesToRender($writer)
 {
     $writer->addAttribute('type', 'text/javascript');
     $writer->addAttribute('src', $this->getClientScriptUrl());
     parent::addAttributesToRender($writer);
 }
开发者ID:BackupTheBerlios,项目名称:horux-svn,代码行数:11,代码来源:TClientScriptLoader.php

示例13: addAttributesToRender

 /**
  * Attach JavaScript helpers if this control has other controls.
  * 
  * @see addAttributesToRender()
  */
 protected function addAttributesToRender($writer)
 {
     if ($this->Controls->Count > 1 && $this->_expand) {
         $writer->addAttribute('class', 'colapse');
     }
     parent::addAttributesToRender($writer);
 }
开发者ID:quantrocket,项目名称:planlogiq,代码行数:12,代码来源:JzlTreeControl.php

示例14: addAttributesToRender

 /**
  * Adds attribute name-value pairs to renderer.
  * This method overrides the parent implementation with additional TKeyboard specific attributes.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 protected function addAttributesToRender($writer)
 {
     parent::addAttributesToRender($writer);
     if ($this->getPage()->getClientSupportsJavaScript()) {
         $writer->addAttribute('id', $this->getClientID());
     }
 }
开发者ID:quantrocket,项目名称:planlogiq,代码行数:12,代码来源:TKeyboard.php

示例15: addAttributesToRender

 /**
  * Adds attributes to renderer.
  * @param THtmlWriter the renderer
  * @throws TInvalidDataValueException if default button is not right.
  */
 protected function addAttributesToRender($writer)
 {
     $this->setCssClass('weekScheduler_container');
     parent::addAttributesToRender($writer);
 }
开发者ID:BackupTheBerlios,项目名称:horux-svn,代码行数:10,代码来源:XWeekPlanner.php


注:本文中的TWebControl::addAttributesToRender方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。