Changeset 104

Show
Ignore:
Timestamp:
09/24/07 21:03:07 (1 year ago)
Author:
mikey
Message:

corrected doc blocks, whitespace fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/XJConf/definitions/NamespaceDefinition.php

    r62 r104  
    11<?php 
     2/** 
     3 * Container for all tag definitions in one namespace 
     4 *  
     5 * @author  Stephan Schmidt <stephan.schmidt@schlund.de> 
     6 * @author  Frank Kleine <mikey@xjconf.net> 
     7 */ 
    28XJConfLoader::load('definitions.TagDefinition'); 
    39/** 
    410 * Container for all tag definitions in one namespace 
    511 *  
    6  * @author Stephan Schmidt <stephan.schmidt@schlund.de> 
     12 * @package     XJConf 
     13 * @subpackage  definitions 
    714 */ 
    815class NamespaceDefinition 
     
    1320     * @var  array<String,TagDefinition> 
    1421     */ 
    15         private $tagDefinitions = array(); 
    16          
    17         /** 
    18          * URI of this namespace 
    19          *  
    20          * @var  string 
    21          */ 
    22     private $namespaceURI = null; 
    23      
    24    /**     
    25     * Constructor for a namespace definition 
    26     *  
    27     * @param  string  namespaceURI  URI of the new namespace 
    28     */ 
     22    private $tagDefinitions = array(); 
     23    /** 
     24     * URI of this namespace 
     25     *  
     26     * @var  string 
     27     */ 
     28    private $namespaceURI   = null; 
     29 
     30    /**     
     31     * Constructor for a namespace definition 
     32     *  
     33     * @param  string  namespaceURI  URI of the new namespace 
     34     */ 
    2935    public function __construct($namespaceURI) 
    3036    { 
    3137        $this->namespaceURI = $namespaceURI; 
    3238    } 
    33      
    34    /** 
    35     * Add a new tag definition 
    36     *  
    37     * @param  TagDefinition  $tagDefinition 
    38     */ 
     39 
     40    /** 
     41    * Add a new tag definition 
     42    *  
     43    * @param  TagDefinition  $tagDefinition 
     44    */ 
    3945    public function addTagDefinition(TagDefinition $tagDefinition) 
    4046    { 
     
    4248    } 
    4349 
    44    /** 
    45     * Count the number of defined tags 
    46     *  
    47     * @return  int  number of defined tags 
    48     */ 
     50    /** 
     51    * Count the number of defined tags 
     52    *  
     53    * @return  int  number of defined tags 
     54    */ 
    4955    public function countTagDefinitions() 
    5056    { 
    51        return count($this->tagDefinitions); 
     57        return count($this->tagDefinitions); 
    5258    } 
    5359 
    54    /** 
    55     * Check, whether a tag has been defined 
    56     *  
    57     * @param   string   $tagName  name of the tag 
    58     * @return  boolean  true, if the tag has been defined, false otherwise 
    59     */ 
     60    /** 
     61    * Check, whether a tag has been defined 
     62    *  
     63    * @param   string   $tagName  name of the tag 
     64    * @return  boolean  true, if the tag has been defined, false otherwise 
     65    */ 
    6066    public function isDefined($tagName) 
    6167    { 
    62        return isset($this->tagDefinitions[$tagName]); 
     68        return isset($this->tagDefinitions[$tagName]); 
    6369    } 
    6470 
    65    /** 
    66     * Get the definition of a tag 
    67     *  
    68     * @param   tagName name of the tag 
    69     * @return  TagDefinition 
    70     */ 
     71    /** 
     72    * Get the definition of a tag 
     73    *  
     74    * @param   tagName name of the tag 
     75    * @return  TagDefinition 
     76    */ 
    7177    public function getDefinition($tagName) 
    7278    { 
     
    8591    public function getNamespaceURI() 
    8692    { 
    87        return $this->namespaceURI; 
    88     }     
     93        return $this->namespaceURI; 
     94    } 
    8995} 
    9096?>