~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to apps/frontend/lib/packages/agWebservicesPackage/modules/agWebservices/actions/actions.class.php

  • Committer: Fabio Albuquerque
  • Date: 2011-08-20 19:17:20 UTC
  • Revision ID: fabiocbalbuquerque@gmail.com-20110820191720-tllqbrgm3zc3tp6w
Improvements in functional tests, 'where' clauses using filters

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    {
26
26
        $this->type = $request->getParameter('datapoint');
27
27
        $method = 'get'.ucfirst($this->type);
28
 
        $this->results = agWebservicesHelper::$method();
 
28
        $this->results = agWebservicesHelper::$method(array());
29
29
    }
30
30
 
31
31
    /**
46
46
        $this->getRoute()->getObjects();
47
47
        $this->type = $request->getParameter('datapoint');
48
48
        $method = 'get'.ucfirst($this->type);
49
 
        $this->results = agWebservicesHelper::$method();
 
49
        parse_str($request->getParameter('url_param'), $filters);
 
50
        $this->results = agWebservicesHelper::$method($filters);
50
51
    }
51
52
    
52
53
    /**