@@ -55,27 +55,27 @@ public function actorCount(){
5555 $ count_array = ['mbox ' => '' , 'openid ' => '' , 'mbox_sha1sum ' => '' , 'account ' => '' ];
5656
5757 $ count_array ['mbox ' ] = $ this ->db ->statements ->aggregate (
58- array ( '$match ' => $ this ->getMatch ( $ this ->lrs )) ,
59- array ( '$group ' => array ( '_id ' => '$statement.actor.mbox ' )) ,
60- array ( '$group ' => array ( '_id ' => 1 , 'count ' => array ( '$sum ' => 1 )))
61- );
58+ [ '$match ' => $ this ->getMatch ( $ this ->lrs )] ,
59+ [ '$group ' => [ '_id ' => '$statement.actor.mbox ' ]] ,
60+ [ '$group ' => [ '_id ' => 1 , 'count ' => [ '$sum ' => 1 ]]]
61+ );
6262
6363 $ count_array ['openid ' ] = $ this ->db ->statements ->aggregate (
64- array ( '$match ' => $ this ->getMatch ( $ this ->lrs )) ,
65- array ( '$group ' => array ( '_id ' => '$statement.actor.openid ' )) ,
66- array ( '$group ' => array ( '_id ' => 1 , 'count ' => array ( '$sum ' => 1 )))
64+ [ '$match ' => $ this ->getMatch ( $ this ->lrs )] ,
65+ [ '$group ' => [ '_id ' => '$statement.actor.openid ' ]] ,
66+ [ '$group ' => [ '_id ' => 1 , 'count ' => [ '$sum ' => 1 ]]]
6767 );
6868
6969 $ count_array ['mbox_sha1sum ' ] = $ this ->db ->statements ->aggregate (
70- array ( '$match ' => $ this ->getMatch ( $ this ->lrs )) ,
71- array ( '$group ' => array ( '_id ' => '$statement.actor.mbox_sha1sum ' )) ,
72- array ( '$group ' => array ( '_id ' => 1 , 'count ' => array ( '$sum ' => 1 )))
70+ [ '$match ' => $ this ->getMatch ( $ this ->lrs )] ,
71+ [ '$group ' => [ '_id ' => '$statement.actor.mbox_sha1sum ' ]] ,
72+ [ '$group ' => [ '_id ' => 1 , 'count ' => [ '$sum ' => 1 ]]]
7373 );
7474
7575 $ count_array ['account ' ] = $ this ->db ->statements ->aggregate (
76- array ( '$match ' => $ this ->getMatch ( $ this ->lrs )) ,
77- array ( '$group ' => array ( '_id ' => ' $statement.actor.account.name ')) ,
78- array ( '$group ' => array ( '_id ' => 1 , 'count ' => array ( '$sum ' => 1 )))
76+ [ '$match ' => $ this ->getMatch ( $ this ->lrs )] ,
77+ [ '$group ' => [ '_id ' => [ ' accountName ' => ' $statement.actor.account.name ', ' accountHomePage ' => ' $statement.actor.account.homePage ' ]]] ,
78+ [ '$group ' => [ '_id ' => 1 , 'count ' => [ '$sum ' => 1 ]]]
7979 );
8080
8181 $ summary = 0 ;
0 commit comments