Permalink
Browse files

Add doc block for CakeSchema::_noPrefixTable

  • Loading branch information...
1 parent 169b0a5 commit b22fdeae778050a753ee37d9aa8a9944f0f947b3 @predominant predominant committed Jun 1, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 cake/libs/model/cake_schema.php
@@ -695,7 +695,14 @@ function _compareIndexes($new, $old) {
}
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);
}

0 comments on commit b22fdea

Please sign in to comment.