Ejemplo n.º 1
0
 /**
  * get the class for a given path 
  * fallback: singular titlecased
  */
 public function getObjClass($path)
 {
     $cnt = 0;
     foreach (self::$paths as $k => $p) {
         if ($p == $path) {
             return $k;
         }
     }
     return TitleUtility::toTitlecase(TitleUtility::toSingular($path));
 }