/** * Constructor. * * @param string $name The name of the tag * @param array(string) $attributes The tag attributes. * @return void * @access public */ function __construct($name, $attributes, $children, $parameters) { if (isset($parameters['context']) && $parameters['context']) { $this->_context = $parameters['context']; } parent::__construct($name, $attributes, $children, $parameters); }
/** * Constructor. * * @param string $name The name of the tag * @param array(string) $attributes The tag attributes. * @return void * @access public */ function __construct($name, $attributes, $children, $parameters) { parent::__construct($name, $attributes, $children, $parameters); //check tags requirements if (!$this->checkTagRequirements(array('varname' => 'alphanum', 'vartype' => 'request|session|var'))) { return; } }
/** * Constructor. * * @param string $name The name of the tag * @param array(string) $attributes The tag attributes. * @return void * @access public */ function __construct($name, $attributes, $children, $parameters) { parent::__construct($name, $attributes, $children, $parameters); //check tags requirements if (!$this->checkTagRequirements(array('for' => 'alphanum'))) { return; } }
/** * Constructor. * * @param string $name The name of the tag * @param array(string) $attributes The tag attributes. * @return void * @access public */ function __construct($name, $attributes, $children, $parameters) { parent::__construct($name, $attributes, $children, $parameters); //check tags requirements if (!$this->checkTagRequirements(array('what' => true))) { return; } if (isset($this->_attributes['name']) && $this->_attributes['name']) { if (!$this->checkTagRequirements(array('name' => 'alphanum'))) { return; } } }
/** * Constructor. * * @param string $name The name of the tag * @param array(string) $attributes The tag attributes. * @return void * @access public */ function __construct($name, $attributes, $children, $parameters) { parent::__construct($name, $attributes, $children, $parameters); //check tags requirements if (!$this->checkTagRequirements(array('url' => 'alphanum'))) { return; } if (isset($this->_attributes['type']) && $this->_attributes['type']) { if (!$this->checkTagRequirements(array('type' => 'alphanum', 'vartype' => '301|302'))) { return; } } }