Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
1cc2e4a0
Commit
1cc2e4a0
authored
May 19, 2013
by
Antonio Ramirez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes
parent
17397a88
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
18 deletions
+7
-18
Inflector.php
yii/helpers/base/Inflector.php
+7
-18
No files found.
yii/helpers/base/Inflector.php
View file @
1cc2e4a0
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment