src/Alg/Parcel/Packer.php
protected function getLargestArticle( $articleList )
	{
		$largestPacketName	= $this->getNameOfLargestPacket();
		$articleVolumes		= $this->volumes[$largestPacketName];
		asort( $articleVolumes );
		$articleKeys	= array_keys( $articleVolumes );
		do
		{
			$articleName	= array_pop( $articleKeys );
			if( array_key_exists( $articleName, $articleList ) )
				return $articleName;
		}
		while( $articleKeys );
	}
protected function getLargestArticle( $articleList )
	{
		$largestPacketName	= $this->getNameOfLargestPacket();
		$articleVolumes		= $this->volumes[$largestPacketName];
		asort( $articleVolumes );
		$articleKeys	= array_keys( $articleVolumes );
		do
		{
			$articleName	= array_pop( $articleKeys );
			if( array_key_exists( $articleName, $articleList ) )
				return $articleName;
		}
		while( $articleKeys );
	}
protected function getLargestArticle ( $ articleList ) { $ largestPacketName = $ this -> getNameOfLargestPacket ( ) ; $ articleVolumes = $ this -> volumes [ $ largestPacketName ] ; asort ( $ articleVolumes ) ; $ articleKeys = array_keys ( $ articleVolumes ) ; do { $ articleName = array_pop ( $ articleKeys ) ; if ( array_key_exists ( $ articleName , $ articleList ) ) return $ articleName ; } while ( $ articleKeys ) ; }
Returns the largest Article from an Article List by Article Volume.
@access		protected
@param		array		$articleList		Array of Articles and their Quantities.
@return		string
Returns the largest Article from an Article List by Article Volume .