classes/PodsAPI.php
public function export( $pod = null, $params = null ) {

		if ( empty( $pod ) ) {
			$pod = $this->pod;
		}

		$find = array(
			'limit'      => - 1,
			'search'     => false,
			'pagination' => false
		);

		if ( ! empty( $params ) && isset( $params['params'] ) ) {
			$find = array_merge( $find, (array) $params['params'] );

			unset( $params['params'] );

			$pod = pods( $pod, $find );
		} elseif ( ! is_object( $pod ) ) {
			$pod = pods( $pod, $find );
		}

		$data = array();

		while ( $pod->fetch() ) {
			$data[ $pod->id() ] = $this->export_pod_item( $params, $pod );
		}

		$data = $this->do_hook( 'export', $data, $pod->pod, $pod );

		return $data;
	}
public function export( $pod = null, $params = null ) {

		if ( empty( $pod ) ) {
			$pod = $this->pod;
		}

		$find = array(
			'limit'      => - 1,
			'search'     => false,
			'pagination' => false
		);

		if ( ! empty( $params ) && isset( $params['params'] ) ) {
			$find = array_merge( $find, (array) $params['params'] );

			unset( $params['params'] );

			$pod = pods( $pod, $find );
		} elseif ( ! is_object( $pod ) ) {
			$pod = pods( $pod, $find );
		}

		$data = array();

		while ( $pod->fetch() ) {
			$data[ $pod->id() ] = $this->export_pod_item( $params, $pod );
		}

		$data = $this->do_hook( 'export', $data, $pod->pod, $pod );

		return $data;
	}
public function export ( $ pod = null , $ params = null ) { if ( empty ( $ pod ) ) { $ pod = $ this -> pod ; } $ find = array ( 'limit' => - 1 , 'search' => false , 'pagination' => false ) ; if ( ! empty ( $ params ) && isset ( $ params [ 'params' ] ) ) { $ find = array_merge ( $ find , ( array ) $ params [ 'params' ] ) ; unset ( $ params [ 'params' ] ) ; $ pod = pods ( $ pod , $ find ) ; } elseif ( ! is_object ( $ pod ) ) { $ pod = pods ( $ pod , $ find ) ; } $ data = array ( ) ; while ( $ pod -> fetch ( ) ) { $ data [ $ pod -> id ( ) ] = $ this -> export_pod_item ( $ params , $ pod ) ; } $ data = $ this -> do_hook ( 'export' , $ data , $ pod -> pod , $ pod ) ; return $ data ; }
Export data from a Pod

@param string|object $pod    The pod name or Pods object
@param array         $params An associative array of parameters

@return array Data arrays of all exported pod items
@since 1.7.1
Export data from a Pod