Show
Ignore:
Timestamp:
08/13/10 10:12:19 (22 months ago)
Author:
ort
Message:

fix entity and add new functions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/engine/include/function.php

    r896 r980  
    413413    } 
    414414} 
     415 
     416 
     417function func_underscore($sStr) { 
     418        return strtolower(preg_replace('/([^A-Z])([A-Z])/',"$1_$2",$sStr)); 
     419} 
     420 
     421function func_camelize($sStr) { 
     422        $aParts = explode('_',$sStr); 
     423        $sCamelized = ''; 
     424        foreach($aParts as $sPart) { 
     425                $sCamelized .= ucfirst($sPart); 
     426        } 
     427        return $sCamelized; 
     428} 
     429 
    415430?>