dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Deprecate ORMTable::getFieldPrefix"
[lhc/web/wiklou.git]
/
includes
/
db
/
ORMTable.php
diff --git
a/includes/db/ORMTable.php
b/includes/db/ORMTable.php
index
2f898b7
..
755a851
100644
(file)
--- a/
includes/db/ORMTable.php
+++ b/
includes/db/ORMTable.php
@@
-129,6
+129,7
@@
class ORMTable extends DBAccessBase implements IORMTable {
* Gets the db field prefix.
*
* @since 1.20
* Gets the db field prefix.
*
* @since 1.20
+ * @deprecated since 1.25, use the $this->fieldPrefix property instead
*
* @return string
*/
*
* @return string
*/
@@
-770,7
+771,7
@@
class ORMTable extends DBAccessBase implements IORMTable {
* @return string
*/
public function getPrefixedField( $field ) {
* @return string
*/
public function getPrefixedField( $field ) {
- return $this->
getFieldPrefix()
. $field;
+ return $this->
fieldPrefix
. $field;
}
/**
}
/**
@@
-796,7
+797,7
@@
class ORMTable extends DBAccessBase implements IORMTable {
* @return string
*/
public function unprefixFieldName( $fieldName ) {
* @return string
*/
public function unprefixFieldName( $fieldName ) {
- return substr( $fieldName, strlen( $this->
getFieldPrefix()
) );
+ return substr( $fieldName, strlen( $this->
fieldPrefix
) );
}
/**
}
/**