XBRL-Instance.php
public function ElementsByName( $names )
	{
		if ( is_string( $names ) )
			$names = array_map( 'trim', explode( ",", $names ) );

		if ( ! is_array( $names ) )
			throw new Exception( 'InstanceElementsFilter::ElementsByName $names must be a string or array' );

		$names = array_flip( $names );
		return new InstanceElementsFilter( $this->instance, array_intersect_key( $this->elements, $names ) );
	}
public function ElementsByName( $names )
	{
		if ( is_string( $names ) )
			$names = array_map( 'trim', explode( ",", $names ) );

		if ( ! is_array( $names ) )
			throw new Exception( 'InstanceElementsFilter::ElementsByName $names must be a string or array' );

		$names = array_flip( $names );
		return new InstanceElementsFilter( $this->instance, array_intersect_key( $this->elements, $names ) );
	}
public function ElementsByName ( $ names ) { if ( is_string ( $ names ) ) $ names = array_map ( 'trim' , explode ( "," , $ names ) ) ; if ( ! is_array ( $ names ) ) throw new Exception ( 'InstanceElementsFilter::ElementsByName $names must be a string or array' ) ; $ names = array_flip ( $ names ) ; return new InstanceElementsFilter ( $ this -> instance , array_intersect_key ( $ this -> elements , $ names ) ) ; }
Return a list of elements filtered by one or more names
@param array|string $names The parameter can be the name of an element, a comma delimited list of names or an array of names
@throws Exception
@return InstanceElementsFilter
Return a list of elements filtered by one or more names