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:
ovclas 2012-12-11 01:34:21 +00:00
parent 05034caf9c
commit d6566640a6
2 changed files with 20 additions and 1 deletions

View file

@ -213,7 +213,24 @@ class memberAdminModel extends member
*
* @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));