r104317 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104316‎ | r104317 | r104318 >
Date:22:06, 26 November 2011
Author:jeroendedauw
Status:reverted
Tags:
Comment:
docs++
Modified paths:
  • /trunk/extensions/Reviews/includes/ReviewsDBObject.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Reviews/includes/ReviewsDBObject.php
@@ -576,10 +576,28 @@
577577 );
578578 }
579579
 580+ /**
 581+ * Takes a field name with prefix and returns the unprefixed equivalent.
 582+ *
 583+ * @since 0.1
 584+ *
 585+ * @param string $fieldName
 586+ *
 587+ * @return string
 588+ */
580589 public static function unprefixFieldName( $fieldName ) {
581590 return substr( $fieldName, strlen( static::getFieldPrefix() ) );
582591 }
583592
 593+ /**
 594+ * Takes an array of field names with prefix and returns the unprefixed equivalent.
 595+ *
 596+ * @since 0.1
 597+ *
 598+ * @param array $fieldNames
 599+ *
 600+ * @return array
 601+ */
584602 public static function unprefixFieldNames( array $fieldNames ) {
585603 return array_map( 'static::unprefixFieldName', $fieldNames );
586604 }

Status & tagging log