protected function formatDataList(DataList $dataList)
    {
        $formattedDataListMap = array();

        foreach ($dataList as $dataObject) {
            $formattedDataObjectMap = $this->formatDataObject($dataObject);
            if ($formattedDataObjectMap) {
                array_push($formattedDataListMap, $formattedDataObjectMap);
            }
        }

        return $formattedDataListMap;
    }
protected function formatDataList(DataList $dataList)
    {
        $formattedDataListMap = array();

        foreach ($dataList as $dataObject) {
            $formattedDataObjectMap = $this->formatDataObject($dataObject);
            if ($formattedDataObjectMap) {
                array_push($formattedDataListMap, $formattedDataObjectMap);
            }
        }

        return $formattedDataListMap;
    }
protected function formatDataList ( DataList $ dataList ) { $ formattedDataListMap = array ( ) ; foreach ( $ dataList as $ dataObject ) { $ formattedDataObjectMap = $ this -> formatDataObject ( $ dataObject ) ; if ( $ formattedDataObjectMap ) { array_push ( $ formattedDataListMap , $ formattedDataObjectMap ) ; } } return $ formattedDataListMap ; }
Format a DataList into a formatted array ready to be turned into JSON

@param  DataList $dataList The DataList to format
@return array              The formatted array representation of the DataList
Format a DataList into a formatted array ready to be turned into JSON