LazyRecord\Inflector::classify PHP 메소드

classify() 공개 메소드

Returns Cake model class name ("Person" for the database table "people".) for given database table.
public classify ( string $tableName ) : string
$tableName string Name of database table to get class name for
리턴 string Class name
    public function classify($tableName)
    {
        $_this =& self::getInstance();
        if (!($result = $_this->_cache(__FUNCTION__, $tableName))) {
            $result = self::camelize(self::singularize($tableName));
            $_this->_cache(__FUNCTION__, $tableName, $result);
        }
        return $result;
    }