public function copyFrom( MShop_Service_Item_Interface $service )
	{
		$this->setCode( $service->getCode() );
		$this->setName( $service->getName() );
		$this->setType( $service->getType() );
		$this->setServiceId( $service->getId() );

		$items = $service->getRefItems( 'media', 'default', 'default' );
		if( ( $item = reset( $items ) ) !== false ) {
			$this->setMediaUrl( $item->getUrl() );
		}

		$this->setModified();
	}
public function copyFrom( MShop_Service_Item_Interface $service )
	{
		$this->setCode( $service->getCode() );
		$this->setName( $service->getName() );
		$this->setType( $service->getType() );
		$this->setServiceId( $service->getId() );

		$items = $service->getRefItems( 'media', 'default', 'default' );
		if( ( $item = reset( $items ) ) !== false ) {
			$this->setMediaUrl( $item->getUrl() );
		}

		$this->setModified();
	}
public function copyFrom ( MShop_Service_Item_Interface $ service ) { $ this -> setCode ( $ service -> getCode ( ) ) ; $ this -> setName ( $ service -> getName ( ) ) ; $ this -> setType ( $ service -> getType ( ) ) ; $ this -> setServiceId ( $ service -> getId ( ) ) ; $ items = $ service -> getRefItems ( 'media' , 'default' , 'default' ) ; if ( ( $ item = reset ( $ items ) ) !== false ) { $ this -> setMediaUrl ( $ item -> getUrl ( ) ) ; } $ this -> setModified ( ) ; }
Copys all data from a given service item.

@param MShop_Service_Item_Interface $service New service item
Copys all data from a given service item .