SproutCMS

This is the code documentation for the SproutCMS project

function nsClass()

Gets the full class name (including namespace) for a specified class, with a list of namespaces to search

Usage

string Sprout::nsClass ( string $class , array $possible_nses );

Arguments

  1. string $class
    The class to instantiate, e.g. 'Fb'
  2. array $possible_nses
    Possible namespaces to try, e.g. ['Sprout\Helpers']

Exceptions thrown

  • Exception
    if the class lookup failed

Return value

  • string