[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Web/UI/WebControls/ -> TWebControlAdapter.php (source)

   1  <?php
   2  /**
   3   * TWebControlAdapter class file.
   4   *
   5   * @author Qiang Xue <qiang.xue@gmail.com>
   6   * @link http://www.pradosoft.com/
   7   * @copyright Copyright &copy; 2005 PradoSoft
   8   * @license http://www.pradosoft.com/license/
   9   * @version $Id: TWebControlAdapter.php 1397 2006-09-07 07:55:53Z wei $
  10   * @package System.Web.UI.WebControls
  11   */
  12  
  13  /**
  14   * TWebControlAdapter class
  15   *
  16   * TWebControlAdapter is the base class for adapters that customize
  17   * rendering for the Web control to which the adapter is attached.
  18   * It may be used to modify the default markup or behavior for specific
  19   * browsers.
  20   *
  21   * @author Qiang Xue <qiang.xue@gmail.com>
  22   * @version $Id: TWebControlAdapter.php 1397 2006-09-07 07:55:53Z wei $
  23   * @package System.Web.UI.WebControls
  24   * @since 3.0
  25   */
  26  class TWebControlAdapter extends TControlAdapter
  27  {
  28      /**
  29       * Renders the control to which the adapter is attached.
  30       * It calls {@link renderBeginTag}, {@link renderContents} and
  31       * {@link renderEndTag} in order.
  32       * @param THtmlWriter writer for the rendering purpose
  33       */
  34  	public function render($writer)
  35      {
  36          $this->renderBeginTag($writer);
  37          $this->renderContents($writer);
  38          $this->renderEndTag($writer);
  39      }
  40  
  41      /**
  42       * Renders the openning tag for the attached control.
  43       * Default implementation calls the attached control's corresponding method.
  44       * @param THtmlWriter writer for the rendering purpose
  45       */
  46  	public function renderBeginTag($writer)
  47      {
  48          $this->getControl()->renderBeginTag($writer);
  49      }
  50  
  51      /**
  52       * Renders the body contents within the attached control tag.
  53       * Default implementation calls the attached control's corresponding method.
  54       * @param THtmlWriter writer for the rendering purpose
  55       */
  56  	public function renderContents($writer)
  57      {
  58          $this->getControl()->renderContents($writer);
  59      }
  60  
  61      /**
  62       * Renders the closing tag for the attached control.
  63       * Default implementation calls the attached control's corresponding method.
  64       * @param THtmlWriter writer for the rendering purpose
  65       */
  66  	public function renderEndTag($writer)
  67      {
  68          $this->getControl()->renderEndTag($writer);
  69      }
  70  }
  71  
  72  ?>


Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7