Show
Ignore:
Timestamp:
02/26/06 02:07:05 (6 years ago)
Author:
john
Message:

added capitalize to inflector

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/inflector.php

    r138 r146  
    111111 
    112112    /** 
     113     *  Capitalize a word making it all lower case with first letter uppercase  
     114     * 
     115     *  @param  string $word  Word to be capitalized 
     116     *  @return string Capitalized $word 
     117     */ 
     118    function capitalize($word) { 
     119        return ucfirst(strtolower($word));      
     120    } 
     121 
     122    /** 
    113123     *  Convert a phrase from the lower case and underscored form 
    114124     *  to the camel case form 
     
    179189        return self::underscore($class_name) . "_id"; 
    180190    } 
    181  
     191     
    182192} 
    183193