SproutCMS

This is the code documentation for the SproutCMS project

function reverseLookup()

Looks for a class constant which has a specific value.

Usage

string Constants::reverseLookup ( string $class , string $prefix , string $value );

Arguments

  1. string $class
    The class to look for constants in.
  2. string $prefix
    The prefix to require a constant to have.
  3. string $value
    The value to require a constant to have.

Return value

  • string
    The name of the constant, or null if no matching constant was found.