SproutCMS

This is the code documentation for the SproutCMS project

function nsFunc()

Gets the full name (including namespaced class) for a specified function

Usage

string Sprout::nsFunc ( string $func , array $possible_nses );

Arguments

  1. string $func
    The function to find, e.g. 'Fb::dropdown'
  2. array $possible_nses
    Possible namespaces to try, e.g. ['Sprout\Helpers']

Exceptions thrown

  • Exception
    if the function lookup failed

Return value

  • string