mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add doc block for CakeSchema::_noPrefixTable
This commit is contained in:
parent
169b0a5c3f
commit
b22fdeae77
1 changed files with 8 additions and 1 deletions
|
@ -695,7 +695,14 @@ class CakeSchema extends Object {
|
|||
}
|
||||
return array_filter(compact('add', 'drop'));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Trim the table prefix from the full table name, and return the prefix-less table
|
||||
*
|
||||
* @param string $prefix Table prefix
|
||||
* @param string $table Full table name
|
||||
* @return string Prefix-less table name
|
||||
*/
|
||||
function _noPrefixTable($prefix, $table) {
|
||||
return preg_replace('/^' . preg_quote($prefix) . '/', '', $table);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue