lithium\util\Inflector::tableize PHP Method

tableize() public static method

Takes a CamelCased class name and returns corresponding under_scored table name.
public static tableize ( string $className ) : string
$className string CamelCased class name (i.e. `'Post'`).
return string Under_scored and plural table name (i.e. `'posts'`).
    public static function tableize($className)
    {
        return static::pluralize(static::underscore($className));
    }

Usage Example

Beispiel #1
0
 /**
  * Get DB table name for the migration
  * Table name is pluralized (tableized) class name by default
  *
  * @param $request
  * @return string
  */
 protected function _source($request)
 {
     if ($request->source) {
         return $request->source;
     }
     return Inflector::tableize($request->action);
 }
All Usage Examples Of lithium\util\Inflector::tableize