SproutCMS

This is the code documentation for the SproutCMS project

function instance()

For a given link specification, instance it's class

Usage

array Lnk::instance ( string $spec );

Arguments

  1. string $spec

Exceptions thrown

  • InvalidArgumentException
    If the link specification is invalid
  • InvalidArgumentException
    If the class is not found

Return value

  • array
    [0] => instance, [1] => spec data