Source for file lmbMacroFormElementTag.class.php

Documentation is available at lmbMacroFormElementTag.class.php

  1. <?php
  2. /*
  3.  * Limb PHP Framework
  4.  *
  5.  * @link http://limb-project.com
  6.  * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
  7.  * @license    LGPL http://www.gnu.org/copyleft/lesser.html
  8.  */
  9.  
  10. lmb_require('limb/macro/src/compiler/lmbMacroRuntimeWidgetHtmlTag.class.php');
  11.  
  12. /**
  13.  * Base class for any form element tag
  14.  */
  15. {
  16.   function _generateWidget($code_writer)
  17.   {
  18.     parent :: _generateWidget($code_writer);
  19.     if($form_tag $this->findParentByClass('lmbMacroFormTag'))
  20.     {
  21.       $code_writer->writeToInit("{$this->getRuntimeVar()}->setForm({$form_tag->getRuntimeVar()});\n");
  22.       $code_writer->writeToInit("{$form_tag->getRuntimeVar()}->addChild({$this->getRuntimeVar()});\n");
  23.     }
  24.   }  
  25.   
  26.   function getRuntimeVar()
  27.   {
  28.     if($this->runtime_var)
  29.       return $this->runtime_var;
  30.  
  31.     $this->runtime_var '$this->' $this->tag '_' self :: generateNewRuntimeId();
  32.     return $this->runtime_var;
  33.   }  
  34. }

Documentation generated on Tue, 06 Jan 2009 03:50:45 +0300 by phpDocumentor 1.3.2