#!/usr/bin/env php getDynamic(); cid=1 pid=1 查找全部动态 >> 90 查找用户admin动态 >> 30 查找用户dev17动态 >> 30 查找用户test18动态 >> 30 查找今天的动态 >> 3 查找昨天的动态 >> 3 查找上周的动态 >> 21 查找产品1的动态 >> 0 查找产品2的动态 >> 0 查找产品3的动态 >> 0 查找项目1的动态 >> 0 查找项目2的动态 >> 0 查找项目3的动态 >> 0 查找执行1的动态 >> 0 查找执行2的动态 >> 0 查找执行3的动态 >> 0 查找今天的动态 >> 87 */ $accountList = array('all', 'admin', 'dev17', 'test18'); $typeList = array('all', 'today', 'yesterday', 'lastweek'); $productIDList = array('all', 1, 2, 3); $projectIDList = array('all', 1, 2, 3); $executionIDList = array('all', 1, 2, 3); $dateList = array('', 'today'); $action = new actionTest(); r($action->getDynamicTest()) && p() && e('90'); // 查找全部动态 r($action->getDynamicTest($accountList[1])) && p() && e('30'); // 查找用户admin动态 r($action->getDynamicTest($accountList[2])) && p() && e('30'); // 查找用户dev17动态 r($action->getDynamicTest($accountList[3])) && p() && e('30'); // 查找用户test18动态 r($action->getDynamicTest($accountList[0], $typeList[1])) && p() && e('3'); // 查找今天的动态 r($action->getDynamicTest($accountList[0], $typeList[2])) && p() && e('3'); // 查找昨天的动态 r($action->getDynamicTest($accountList[0], $typeList[3])) && p() && e('21'); // 查找上周的动态 r($action->getDynamicTest($accountList[0], $typeList[0], $productIDList[1])) && p() && e('0'); // 查找产品1的动态 r($action->getDynamicTest($accountList[0], $typeList[0], $productIDList[2])) && p() && e('0'); // 查找产品2的动态 r($action->getDynamicTest($accountList[0], $typeList[0], $productIDList[3])) && p() && e('0'); // 查找产品3的动态 r($action->getDynamicTest($accountList[0], $typeList[0], $productIDList[0], $projectIDList[1])) && p() && e('0'); // 查找项目1的动态 r($action->getDynamicTest($accountList[0], $typeList[0], $productIDList[0], $projectIDList[2])) && p() && e('0'); // 查找项目2的动态 r($action->getDynamicTest($accountList[0], $typeList[0], $productIDList[0], $projectIDList[3])) && p() && e('0'); // 查找项目3的动态 r($action->getDynamicTest($accountList[0], $typeList[0], $productIDList[0], $projectIDList[0], $executionIDList[1])) && p() && e('0'); // 查找执行1的动态 r($action->getDynamicTest($accountList[0], $typeList[0], $productIDList[0], $projectIDList[0], $executionIDList[2])) && p() && e('0'); // 查找执行2的动态 r($action->getDynamicTest($accountList[0], $typeList[0], $productIDList[0], $projectIDList[0], $executionIDList[3])) && p() && e('0'); // 查找执行3的动态 r($action->getDynamicTest($accountList[0], $typeList[0], $productIDList[0], $projectIDList[0], $executionIDList[0], $dateList[1])) && p() && e('87'); // 查找今天的动态