public function display( array $rules, $property = null ) {
		if ( empty( $rules ) ) {
			return true;
		}

		$rules  = $this->prepare_rules( $rules, $property );

		if ( in_array( $rules['relation'], $this->relations, true ) ) {
			return $this->display_by_relation( $rules );
		}

		return true;
	}
public function display( array $rules, $property = null ) {
		if ( empty( $rules ) ) {
			return true;
		}

		$rules  = $this->prepare_rules( $rules, $property );

		if ( in_array( $rules['relation'], $this->relations, true ) ) {
			return $this->display_by_relation( $rules );
		}

		return true;
	}
public function display ( array $ rules , $ property = null ) { if ( empty ( $ rules ) ) { return true ; } $ rules = $ this -> prepare_rules ( $ rules , $ property ) ; if ( in_array ( $ rules [ 'relation' ] , $ this -> relations , true ) ) { return $ this -> display_by_relation ( $ rules ) ; } return true ; }
Check if the property should be displayed by the rules.

@param  array $rules
@param  Papi_Core_Property $property

@return bool
Check if the property should be displayed by the rules .