Ejemplo n.º 1
0
/**
 * Returns the ulfberht singleton or module object based on what is passed in.
 * @return mixed Module or Ulfberht object
 */
function ulfberht($module = null)
{
    if ($module) {
        return ulfberht\core\ulfberht::getInstance()->getModule($module);
    }
    return ulfberht\core\ulfberht::getInstance();
}
Ejemplo n.º 2
0
/**
 * Returns the ulfberht singleton or module object based on what is passed in.
 * @return mixed Ulfberht object
 */
function ulfberht()
{
    return ulfberht\core\ulfberht::instance();
}