コード例 #1
0
ファイル: website.php プロジェクト: davidmottet/automne
 /**
  * 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);
 }
コード例 #2
0
ファイル: setvar.php プロジェクト: davidmottet/automne
 /**
  * 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;
     }
 }
コード例 #3
0
ファイル: else.php プロジェクト: davidmottet/automne
 /**
  * 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;
     }
 }
コード例 #4
0
ファイル: if.php プロジェクト: davidmottet/automne
 /**
  * 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;
         }
     }
 }
コード例 #5
0
ファイル: redirect.php プロジェクト: davidmottet/automne
 /**
  * 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;
         }
     }
 }