mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 06:17:56 +08:00
minor fixes
This commit is contained in:
@@ -449,16 +449,11 @@ class Inflector
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts a class name to its table name according to rails
|
* Converts a class name to its table name (pluralized)
|
||||||
* naming conventions.
|
* naming conventions. For example, converts "Person" to "people"
|
||||||
*
|
*
|
||||||
* Converts "Person" to "people"
|
* @param string $class_name the class name for getting related table_name
|
||||||
*
|
* @return string
|
||||||
* @access public
|
|
||||||
* @static
|
|
||||||
* @see classify
|
|
||||||
* @param string $class_name Class name for getting related table_name.
|
|
||||||
* @return string plural_table_name
|
|
||||||
*/
|
*/
|
||||||
public static function tableize($class_name)
|
public static function tableize($class_name)
|
||||||
{
|
{
|
||||||
@@ -487,16 +482,10 @@ class Inflector
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts a table name to its class name according to rails
|
* Converts a table name to its class name. For example, converts "people" to "Person"
|
||||||
* naming conventions.
|
|
||||||
*
|
*
|
||||||
* Converts "people" to "Person"
|
* @param string $table_name
|
||||||
*
|
* @return string
|
||||||
* @access public
|
|
||||||
* @static
|
|
||||||
* @see tableize
|
|
||||||
* @param string $table_name Table name for getting related ClassName.
|
|
||||||
* @return string SingularClassName
|
|
||||||
*/
|
*/
|
||||||
public static function classify($table_name)
|
public static function classify($table_name)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user