[ Index ]

PHP Cross Reference of Web Application Component Toolkit

title

Body

[close]

/framework/template/tags/form/ -> button.tag.php (source)

   1  <?php
   2  //--------------------------------------------------------------------------------
   3  // Copyright 2003 Procata, Inc.
   4  // Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
   5  //--------------------------------------------------------------------------------
   6  /**
   7  * @package WACT_TAG
   8  * @version $Id: button.tag.php,v 1.19 2004/11/18 04:22:48 jeffmoore Exp $
   9  * @see http://www.w3.org/TR/html4/interact/forms.html
  10  */
  11  // see http://www.w3.org/TR/html4/interact/forms.html
  12  //--------------------------------------------------------------------------------
  13  /**
  14  * Include control tag
  15  */
  16  require_once WACT_ROOT . 'template/tags/form/control.inc.php';
  17  
  18  /**
  19  * Register the tag
  20  */
  21  $taginfo =& new TagInfo('button', 'ButtonTag');
  22  $taginfo->setDefaultLocation(LOCATION_CLIENT);
  23  $taginfo->setCompilerAttributes(array('errorclass', 'errorstyle', 'displayname'));
  24  $taginfo->setKnownParent('FormTag');
  25  TagDictionary::registerTag($taginfo, __FILE__);
  26  
  27  /**
  28  * Compile time component for button tags
  29  * @see http://wact.sourceforge.net/index.php/ButtonTag
  30  * @access protected
  31  * @package WACT_TAG
  32  */
  33  class ButtonTag extends ControlTag {
  34      /**
  35      * File to include at runtime
  36      * @var string path to runtime component relative to WACT_ROOT
  37      * @access private
  38      */
  39      var $runtimeIncludeFile = '/template/components/form/form.inc.php';
  40      /**
  41      * Name of runtime component class
  42      * @var string
  43      * @access private
  44      */
  45      var $runtimeComponentName = 'FormElement';
  46  
  47  }
  48  ?>


Generated: Sun Nov 28 19:36:09 2004 Cross-referenced by PHPXref 0.5