Pods::export_data PHP Method

export_data() public method

Export data from all items
See also: PodsAPI::export
Since: 2.3
public export_data ( array $params = null ) : array
$params array An associative array of parameters
return array Data arrays of all exported pod items
    public function export_data($params = null)
    {
        $defaults = array('fields' => null, 'depth' => 2, 'params' => null);
        if (empty($params)) {
            $params = $defaults;
        } else {
            $params = array_merge($defaults, (array) $params);
        }
        return $this->api->export($this, $params);
    }