class ActivityController extends Controller
{
    /**
     * ActivityController constructor.
     */
    public function __construct()
    {
        parent::__construct();
        $this->posts = new PostMapper();
        $this->activity = new ActivityMapper();
    }
    public function getAllPost()
    {
        $this->ajaxReturn($this->posts->findAll());
    }
    public function getAllActivities()
    {
        $this->ajaxReturn($this->activity->findAll());
    }
    public function getAllAP()
    {
        $this->getAllPost();
        echo Controller::SEPARATOR;
        $this->getAllActivities();
    }
}
if (defined('TEST_SUITE') && TEST_SUITE == __FILE__) {
    // run test suite here
    $analysis = new ActivityController();
    $analysis->distribute();
}