Add doc block for CakeSchema::_noPrefixTable

This commit is contained in:
Graham Weldon 2011-06-01 11:29:27 +08:00
parent 169b0a5c3f
commit b22fdeae77

View file

@ -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);
}