XBRL-SEC-XML-Package.php
private function processXBRLFiles( $elements )
	{
		/**
		 * An array of files each with the following elements
		 * 		sequence="1"
		 * 		file="quest_10k.htm"
		 * 		type="10-K"
		 * 		size="314940"
		 * 		description="FORM 10-K"
		 * 		url="http://www.sec.gov/Archives/edgar/data/1627554/000147793216008346/quest_10k.htm"
		 * @var array $xbrlFiles
		 */
		$xbrlFiles = array();

		foreach ( $elements as $name => $element )
		{
			$xbrlFile = array();

			foreach ( $element->attributes( XBRL_SEC_XML_Package::edgarNamespace ) as $attributeName => $value )
			{
				$xbrlFile[ $attributeName ] = (string)$value;
			}

			$xbrlFiles[] = $xbrlFile;
		}

		$this->xbrlFiles = $xbrlFiles;

		// Create the array contain just the file names
		$this->files = array_map( function( $item ) {
			return $item['file'];
		}, $xbrlFiles );
	}
private function processXBRLFiles( $elements )
	{
		/**
		 * An array of files each with the following elements
		 * 		sequence="1"
		 * 		file="quest_10k.htm"
		 * 		type="10-K"
		 * 		size="314940"
		 * 		description="FORM 10-K"
		 * 		url="http://www.sec.gov/Archives/edgar/data/1627554/000147793216008346/quest_10k.htm"
		 * @var array $xbrlFiles
		 */
		$xbrlFiles = array();

		foreach ( $elements as $name => $element )
		{
			$xbrlFile = array();

			foreach ( $element->attributes( XBRL_SEC_XML_Package::edgarNamespace ) as $attributeName => $value )
			{
				$xbrlFile[ $attributeName ] = (string)$value;
			}

			$xbrlFiles[] = $xbrlFile;
		}

		$this->xbrlFiles = $xbrlFiles;

		// Create the array contain just the file names
		$this->files = array_map( function( $item ) {
			return $item['file'];
		}, $xbrlFiles );
	}
private function processXBRLFiles ( $ elements ) { /**
		 * An array of files each with the following elements
		 * 		sequence="1"
		 * 		file="quest_10k.htm"
		 * 		type="10-K"
		 * 		size="314940"
		 * 		description="FORM 10-K"
		 * 		url="http://www.sec.gov/Archives/edgar/data/1627554/000147793216008346/quest_10k.htm"
		 * @var array $xbrlFiles
		 */ $ xbrlFiles = array ( ) ; foreach ( $ elements as $ name => $ element ) { $ xbrlFile = array ( ) ; foreach ( $ element -> attributes ( XBRL_SEC_XML_Package :: edgarNamespace ) as $ attributeName => $ value ) { $ xbrlFile [ $ attributeName ] = ( string ) $ value ; } $ xbrlFiles [ ] = $ xbrlFile ; } $ this -> xbrlFiles = $ xbrlFiles ; // Create the array contain just the file names
 $ this -> files = array_map ( function ( $ item ) { return $ item [ 'file' ] ; } , $ xbrlFiles ) ; }
Extract the file names from the manifest
@param SimpleXMLElement $elements
Extract the file names from the manifest