public function getElements($reportSuiteID, $returnAsIdArray = false)
    {
        $response = $this->post('Report.GetElements', array('reportSuiteID' => $reportSuiteID));
        if ($returnAsIdArray) {
            $filtered = array();
            foreach ($response as $element) {
                $filtered[$element['id']] = $element['name'];
            }
            return array_unique($filtered);
        }
        return $this->returnResponse($response);
    }
public function getElements($reportSuiteID, $returnAsIdArray = false)
    {
        $response = $this->post('Report.GetElements', array('reportSuiteID' => $reportSuiteID));
        if ($returnAsIdArray) {
            $filtered = array();
            foreach ($response as $element) {
                $filtered[$element['id']] = $element['name'];
            }
            return array_unique($filtered);
        }
        return $this->returnResponse($response);
    }
public function getElements ( $ reportSuiteID , $ returnAsIdArray = false ) { $ response = $ this -> post ( 'Report.GetElements' , array ( 'reportSuiteID' => $ reportSuiteID ) ) ; if ( $ returnAsIdArray ) { $ filtered = array ( ) ; foreach ( $ response as $ element ) { $ filtered [ $ element [ 'id' ] ] = $ element [ 'name' ] ; } return array_unique ( $ filtered ) ; } return $ this -> returnResponse ( $ response ) ; }
Retrieve the elements to call from your report suite

@param string $reportSuiteID
@param bool $returnAsIdArray

@return array
Retrieve the elements to call from your report suite