From 1cc2e4a0c584cbf0869f7c020f41dd744152c75d Mon Sep 17 00:00:00 2001 From: Antonio Ramirez Date: Sun, 19 May 2013 22:27:40 +0200 Subject: [PATCH] minor fixes --- yii/helpers/base/Inflector.php | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/yii/helpers/base/Inflector.php b/yii/helpers/base/Inflector.php index f7622fa..8c2d487 100644 --- a/yii/helpers/base/Inflector.php +++ b/yii/helpers/base/Inflector.php @@ -449,16 +449,11 @@ class Inflector } /** - * Converts a class name to its table name according to rails - * naming conventions. + * Converts a class name to its table name (pluralized) + * naming conventions. For example, converts "Person" to "people" * - * Converts "Person" to "people" - * - * @access public - * @static - * @see classify - * @param string $class_name Class name for getting related table_name. - * @return string plural_table_name + * @param string $class_name the class name for getting related table_name + * @return string */ public static function tableize($class_name) { @@ -487,16 +482,10 @@ class Inflector } /** - * Converts a table name to its class name according to rails - * naming conventions. + * Converts a table name to its class name. For example, converts "people" to "Person" * - * Converts "people" to "Person" - * - * @access public - * @static - * @see tableize - * @param string $table_name Table name for getting related ClassName. - * @return string SingularClassName + * @param string $table_name + * @return string */ public static function classify($table_name) {