Siebrand has uploaded a new change for review.
https://gerrit.wikimedia.org/r/77662
Change subject: Update documentation
......................................................................
Update documentation
Change-Id: I3257cee2ecbfcf41247d263d59d8ced593c30bd6
---
M utils/MessageGroupStats.php
1 file changed, 16 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate
refs/changes/62/77662/1
diff --git a/utils/MessageGroupStats.php b/utils/MessageGroupStats.php
index 4097a08..ac0c445 100644
--- a/utils/MessageGroupStats.php
+++ b/utils/MessageGroupStats.php
@@ -221,6 +221,11 @@
);
}
+ /**
+ * @param $code
+ * @param array $stats
+ * @return array
+ */
protected static function forLanguageInternal( $code, $stats = array()
) {
$res = self::selectRowsIdLang( null, $code );
$stats = self::extractResults( $res, $stats );
@@ -236,8 +241,14 @@
return $stats;
}
+ /**
+ * @param AggregateMessageGroup $agg
+ * @return mixed
+ */
protected static function expandAggregates( AggregateMessageGroup $agg
) {
$flattened = array();
+
+ /** @var MessageGroup|AggregateMessageGroup $group */
foreach ( $agg->getGroups() as $group ) {
if ( $group instanceof AggregateMessageGroup ) {
$flattened += self::expandAggregates( $group );
@@ -249,6 +260,11 @@
return $flattened;
}
+ /**
+ * @param MessageGroup $group
+ * @param array $stats
+ * @return array
+ */
protected static function forGroupInternal( $group, $stats = array() ) {
$id = $group->getId();
$res = self::selectRowsIdLang( $id, null );
--
To view, visit https://gerrit.wikimedia.org/r/77662
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3257cee2ecbfcf41247d263d59d8ced593c30bd6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits