XBRL-Instance.php
public function getPeriodLabel()
	{
		$contexts = $this->contexts; // Protect the contexts
		try
		{
			// If there are only instant context and all the contexts have the same date...
			if ( ! $this->DurationContexts()->count() && count( $this->AllYears() ) == 1 )
			{
				$context = reset( $this->contexts );
				return $context['period']['endDate'];
			}
			else
			{
				$this->sortByStartDate();
				$startContext = reset( $this->contexts );
				$this->sortByEndDate();
				$endContext = end( $this->contexts );
				return "{$startContext['period']['startDate']} - {$endContext['period']['endDate']}";
			}
		}
		finally
		{
			$this->contexts = $contexts; // Restore
		}
	}
public function getPeriodLabel()
	{
		$contexts = $this->contexts; // Protect the contexts
		try
		{
			// If there are only instant context and all the contexts have the same date...
			if ( ! $this->DurationContexts()->count() && count( $this->AllYears() ) == 1 )
			{
				$context = reset( $this->contexts );
				return $context['period']['endDate'];
			}
			else
			{
				$this->sortByStartDate();
				$startContext = reset( $this->contexts );
				$this->sortByEndDate();
				$endContext = end( $this->contexts );
				return "{$startContext['period']['startDate']} - {$endContext['period']['endDate']}";
			}
		}
		finally
		{
			$this->contexts = $contexts; // Restore
		}
	}
public function getPeriodLabel ( ) { $ contexts = $ this -> contexts ; // Protect the contexts
 try { // If there are only instant context and all the contexts have the same date...
 if ( ! $ this -> DurationContexts ( ) -> count ( ) && count ( $ this -> AllYears ( ) ) == 1 ) { $ context = reset ( $ this -> contexts ) ; return $ context [ 'period' ] [ 'endDate' ] ; } else { $ this -> sortByStartDate ( ) ; $ startContext = reset ( $ this -> contexts ) ; $ this -> sortByEndDate ( ) ; $ endContext = end ( $ this -> contexts ) ; return "{$startContext['period']['startDate']} - {$endContext['period']['endDate']}" ; } } finally { $ this -> contexts = $ contexts ; // Restore
 } }
Return a period label for the context collection
@return string
Return a period label for the context collection