src/AKlump/LoftDataGrids/Exporter.php
protected function getDataAsTransformedArray($page_id = null, $page_id_key = null)
    {
        $data = $this->getData()->get();
        if (!is_null($page_id)) {
            $data = is_null($page_id_key) ? array($data[$page_id]) : array($page_id_key => $data[$page_id]);
        }
        foreach ($data as &$page) {
            foreach ($page as &$row) {
                foreach ($row as &$cell) {
                    $this->dataTransform($cell);
                }
            }
        }

        return $data;
    }
protected function getDataAsTransformedArray($page_id = null, $page_id_key = null)
    {
        $data = $this->getData()->get();
        if (!is_null($page_id)) {
            $data = is_null($page_id_key) ? array($data[$page_id]) : array($page_id_key => $data[$page_id]);
        }
        foreach ($data as &$page) {
            foreach ($page as &$row) {
                foreach ($row as &$cell) {
                    $this->dataTransform($cell);
                }
            }
        }

        return $data;
    }
protected function getDataAsTransformedArray ( $ page_id = null , $ page_id_key = null ) { $ data = $ this -> getData ( ) -> get ( ) ; if ( ! is_null ( $ page_id ) ) { $ data = is_null ( $ page_id_key ) ? array ( $ data [ $ page_id ] ) : array ( $ page_id_key => $ data [ $ page_id ] ) ; } foreach ( $ data as & $ page ) { foreach ( $ page as & $ row ) { foreach ( $ row as & $ cell ) { $ this -> dataTransform ( $ cell ) ; } } } return $ data ; }
Convert ExportData to an array transforming every cell.

@param mixed $page_id           The page id from which to pull data or
empty for all pages.
@param mixed $page_id_key       If $page_id is provided, set this to the
key value to use to indicate the page
id, for example JSON keeps this as NULL
and XML uses the page id.

@return array

@see $this->dataTransform().
Convert ExportData to an array transforming every cell .