public function classify($tableName)
    {
        if ($result = $this->getCache($tableName, 'classify')) {
            return $result;
        }
        $result = $this->camelize($this->singularize($tableName));

        // classes use underscores instead of slashes for namespaces
        $result = str_replace('/', '_', $result);
        return $this->setCache($tableName, 'classify', $result);
    }
public function classify($tableName)
    {
        if ($result = $this->getCache($tableName, 'classify')) {
            return $result;
        }
        $result = $this->camelize($this->singularize($tableName));

        // classes use underscores instead of slashes for namespaces
        $result = str_replace('/', '_', $result);
        return $this->setCache($tableName, 'classify', $result);
    }
public function classify ( $ tableName ) { if ( $ result = $ this -> getCache ( $ tableName , 'classify' ) ) { return $ result ; } $ result = $ this -> camelize ( $ this -> singularize ( $ tableName ) ) ; // classes use underscores instead of slashes for namespaces $ result = str_replace ( '/' , '_' , $ result ) ; return $ this -> setCache ( $ tableName , 'classify' , $ result ) ; }
Creates a class name from a table name like Rails does for table names
to models.

Examples:
1. classify("egg_and_hams") => "EggAndHam"
2. classify("post")         => "Post"
Creates a class name from a table name like Rails does for table names to models .