XBRL-Instance.php
private function getScenario( $context )
	{
		if ( is_string( $context ) )
		{
			if ( ! isset( $this->contexts[ $context ] ) ) return null;
			$context = $this->contexts[ $context ];
		}

		if ( isset( $context['scenario'] ) ) return $context['scenario'];
		if ( isset( $context['entity']['scenario'] ) ) return $context['entity']['scenario'];

		return null;
	}
private function getScenario( $context )
	{
		if ( is_string( $context ) )
		{
			if ( ! isset( $this->contexts[ $context ] ) ) return null;
			$context = $this->contexts[ $context ];
		}

		if ( isset( $context['scenario'] ) ) return $context['scenario'];
		if ( isset( $context['entity']['scenario'] ) ) return $context['entity']['scenario'];

		return null;
	}
private function getScenario ( $ context ) { if ( is_string ( $ context ) ) { if ( ! isset ( $ this -> contexts [ $ context ] ) ) return null ; $ context = $ this -> contexts [ $ context ] ; } if ( isset ( $ context [ 'scenario' ] ) ) return $ context [ 'scenario' ] ; if ( isset ( $ context [ 'entity' ] [ 'scenario' ] ) ) return $ context [ 'entity' ] [ 'scenario' ] ; return null ; }
Return the available scenario element from a context
@param array|string $context
@return array|NULL
Return the available scenario element from a context