public function html_name( $sub_property = null, $row = null ) {
		$base_slug = $this->slug;

		if ( is_null( $sub_property ) ) {
			return $base_slug;
		}

		if ( is_numeric( $row ) ) {
			$base_slug = sprintf( '%s[%d]', $base_slug, intval( $row ) );
		}

		if ( ! papi_is_property( $sub_property ) ) {
			if ( is_array( $sub_property ) || is_object( $sub_property ) ) {
				$sub_property = self::factory( $sub_property );
			} else {
				return $base_slug;
			}
		}

		return sprintf( '%s[%s]', $base_slug, unpapify( $sub_property->get_slug() ) );
	}
public function html_name( $sub_property = null, $row = null ) {
		$base_slug = $this->slug;

		if ( is_null( $sub_property ) ) {
			return $base_slug;
		}

		if ( is_numeric( $row ) ) {
			$base_slug = sprintf( '%s[%d]', $base_slug, intval( $row ) );
		}

		if ( ! papi_is_property( $sub_property ) ) {
			if ( is_array( $sub_property ) || is_object( $sub_property ) ) {
				$sub_property = self::factory( $sub_property );
			} else {
				return $base_slug;
			}
		}

		return sprintf( '%s[%s]', $base_slug, unpapify( $sub_property->get_slug() ) );
	}
public function html_name ( $ sub_property = null , $ row = null ) { $ base_slug = $ this -> slug ; if ( is_null ( $ sub_property ) ) { return $ base_slug ; } if ( is_numeric ( $ row ) ) { $ base_slug = sprintf ( '%s[%d]' , $ base_slug , intval ( $ row ) ) ; } if ( ! papi_is_property ( $ sub_property ) ) { if ( is_array ( $ sub_property ) || is_object ( $ sub_property ) ) { $ sub_property = self :: factory ( $ sub_property ) ; } else { return $ base_slug ; } } return sprintf ( '%s[%s]' , $ base_slug , unpapify ( $ sub_property -> get_slug ( ) ) ) ; }
Get html name for property with or without sub property and row number.

@param  array|object $sub_property
@param  int          $row

@return string
Get html name for property with or without sub property and row number .