Changeset 766

Show
Ignore:
Timestamp:
07/12/07 01:41:39 (1 year ago)
Author:
mikey
Message:

added stubObject::getPackageName() as shortcut for retrieving the name of the package where the class is located in

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/stubBaseObject.php

    r706 r766  
    5353 
    5454    /** 
     55     * returns the name of the package where the class is inside 
     56     * 
     57     * @return  string 
     58     * @XMLIgnore 
     59     */ 
     60    public function getPackageName() 
     61    { 
     62        return stubClassLoader::getPackageName($this->getClassName()); 
     63    } 
     64 
     65    /** 
    5566     * returns a unique hash code for the class 
    5667     * 
  • trunk/src/main/php/net/stubbles/stubException.php

    r698 r766  
    4343     * 
    4444     * @return  string 
     45     * @XMLIgnore 
    4546     */ 
    4647    public function getClassName() 
    4748    { 
    4849        return stubClassLoader::getFullQualifiedClassName(get_class($this)); 
     50    } 
     51 
     52    /** 
     53     * returns the name of the package where the class is inside 
     54     * 
     55     * @return  string 
     56     * @XMLIgnore 
     57     */ 
     58    public function getPackageName() 
     59    { 
     60        return stubClassLoader::getPackageName($this->getClassName()); 
    4961    } 
    5062 
  • trunk/src/main/php/net/stubbles/stubObject.php

    r698 r766  
    3737 
    3838    /** 
     39     * returns the name of the package where the class is inside 
     40     * 
     41     * @return  string 
     42     */ 
     43    public function getPackageName(); 
     44 
     45    /** 
    3946     * returns a unique hash code for the class 
    4047     * 
  • trunk/src/main/php/net/stubbles/stubSerializedObject.php

    r698 r766  
    125125 
    126126    /** 
    127      * returns the full qualified class name 
    128      * 
    129      * @return  string 
    130      */ 
    131     public function getClassName() 
    132     { 
    133         return stubClassLoader::getFullQualifiedClassName(__CLASS__); 
    134     } 
    135  
    136     /** 
    137127     * returns package informations 
    138128     * 
     
    145135         $refPackage = new stubReflectionPackage(stubClassLoader::getPackageName($this->getClassName())); 
    146136         return $refPackage; 
     137    } 
     138 
     139    /** 
     140     * returns the full qualified class name 
     141     * 
     142     * @return  string 
     143     * @XMLIgnore 
     144     */ 
     145    public function getClassName() 
     146    { 
     147        return stubClassLoader::getFullQualifiedClassName(__CLASS__); 
     148    } 
     149 
     150    /** 
     151     * returns the name of the package where the class is inside 
     152     * 
     153     * @return  string 
     154     * @XMLIgnore 
     155     */ 
     156    public function getPackageName() 
     157    { 
     158        return stubClassLoader::getPackageName($this->getClassName()); 
    147159    } 
    148160