Class Graphite_Graph_Params

Utility for graph level parameters.

Author(s):
Copyright:   2012 Bryan Davis and contributors. All Rights Reserved.
License:   Simplified BSD License

Member Variables

protected static array $aliases
Mapping from property names to Graphite parameter names.
protected static array $params
Valid graph URI parameters.

Method Summary

public static string canonicalName( $name )
Find the canonical name for a parameter.
public static mixed format( $name , $value )
Format a parameter value.

Methods

canonicalName

static string canonicalName( string $name )

Find the canonical name for a parameter.

The value may be an alias or it may differ in case from the true parameter name.

Parameters:

Name Type Description
$name string Parameter to lookup

format

static mixed format( string $name , string $value )

Format a parameter value.

Parameters:

Name Type Description
$name string Parameter name
$value string Value to format

Located in /src/Graphite/Graph/Params.php [line 19]