mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 17:19:59 +09:00
issue 2740 add member statistics api
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12371 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
05034caf9c
commit
d6566640a6
2 changed files with 20 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
<grants />
|
<grants />
|
||||||
<permissions>
|
<permissions>
|
||||||
<permission action="getApiGroups" target="manager" />
|
<permission action="getApiGroups" target="manager" />
|
||||||
|
<permission action="getMemberAdminCountByDate" target="manager" />
|
||||||
</permissions>
|
</permissions>
|
||||||
<actions>
|
<actions>
|
||||||
<action name="dispMemberInfo" type="view" standalone="true" />
|
<action name="dispMemberInfo" type="view" standalone="true" />
|
||||||
|
|
@ -37,6 +38,7 @@
|
||||||
<action name="getMemberAdminInsertJoinForm" type="model" />
|
<action name="getMemberAdminInsertJoinForm" type="model" />
|
||||||
<action name="getMemberAdminIPCheck" type="model" standalone="true" />
|
<action name="getMemberAdminIPCheck" type="model" standalone="true" />
|
||||||
<action name="getApiGroups" type="model" standalone="true" />
|
<action name="getApiGroups" type="model" standalone="true" />
|
||||||
|
<action name="getMemberAdminCountByDate" type="model" standalone="true" />
|
||||||
|
|
||||||
<action name="procMemberLogin" type="controller" standalone="true" ruleset="@login" />
|
<action name="procMemberLogin" type="controller" standalone="true" ruleset="@login" />
|
||||||
<action name="procMemberLogout" type="controller" standalone="true" />
|
<action name="procMemberLogout" type="controller" standalone="true" />
|
||||||
|
|
|
||||||
|
|
@ -213,7 +213,24 @@ class memberAdminModel extends member
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
function getMemberCountByDate($date = '')
|
public function getMemberAdminCountByDate()
|
||||||
|
{
|
||||||
|
if(Context::get('date'))
|
||||||
|
{
|
||||||
|
$date = date('Ymd', strtotime(Context::get('date')));
|
||||||
|
}
|
||||||
|
$count = $this->_getMemberCountByDate($date);
|
||||||
|
$this->add('count', $count);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return member count with date
|
||||||
|
*
|
||||||
|
* @param string $date
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
private function _getMemberCountByDate($date = '')
|
||||||
{
|
{
|
||||||
if($date) $args->regDate = date('Ymd', strtotime($date));
|
if($date) $args->regDate = date('Ymd', strtotime($date));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue