controller/common/src/Controller/Common/Subscription/Export/Csv/Processor/Address/Standard.php
public function process( \Aimeos\MShop\Subscription\Item\Iface $subscription, \Aimeos\MShop\Order\Item\Base\Iface $order )
	{
		$result = [];
		$addresses = $order->getAddresses();

		krsort( $addresses );

		foreach( $addresses as $items )
		{
			foreach( $items as $item )
			{
				$data = [];
				$list = $item->toArray();

				foreach( $this->getMapping() as $pos => $key )
				{
					if( array_key_exists( $key, $list ) ) {
						$data[$pos] = $list[$key];
					} else {
						$data[$pos] = '';
					}
				}

				ksort( $data );
				$result[] = $data;
			}
		}

		return $result;
	}
public function process( \Aimeos\MShop\Subscription\Item\Iface $subscription, \Aimeos\MShop\Order\Item\Base\Iface $order )
	{
		$result = [];
		$addresses = $order->getAddresses();

		krsort( $addresses );

		foreach( $addresses as $items )
		{
			foreach( $items as $item )
			{
				$data = [];
				$list = $item->toArray();

				foreach( $this->getMapping() as $pos => $key )
				{
					if( array_key_exists( $key, $list ) ) {
						$data[$pos] = $list[$key];
					} else {
						$data[$pos] = '';
					}
				}

				ksort( $data );
				$result[] = $data;
			}
		}

		return $result;
	}
public function process ( \ Aimeos \ MShop \ Subscription \ Item \ Iface $ subscription , \ Aimeos \ MShop \ Order \ Item \ Base \ Iface $ order ) { $ result = [ ] ; $ addresses = $ order -> getAddresses ( ) ; krsort ( $ addresses ) ; foreach ( $ addresses as $ items ) { foreach ( $ items as $ item ) { $ data = [ ] ; $ list = $ item -> toArray ( ) ; foreach ( $ this -> getMapping ( ) as $ pos => $ key ) { if ( array_key_exists ( $ key , $ list ) ) { $ data [ $ pos ] = $ list [ $ key ] ; } else { $ data [ $ pos ] = '' ; } } ksort ( $ data ) ; $ result [ ] = $ data ; } } return $ result ; }
Returns the subscription related data

@param \Aimeos\MShop\Subscription\Item\Iface $subscription Subscription item
@param \Aimeos\MShop\Order\Item\Base\Iface $order Full subscription with associated items
@return array Two dimensional associative list of subscription data representing the lines in CSV
Returns the subscription related data