public static function get($funcName)
	{
		if (isset(self::$cache[$funcName]))
		{
			return self::$cache[$funcName];
		}
		if (preg_match('(^[a-z_0-9]+$)D', $funcName))
		{
			$filepath = __DIR__ . '/functions/' . $funcName . '.js';
			if (file_exists($filepath))
			{
				return file_get_contents($filepath);
			}
		}
		throw new InvalidArgumentException("Unknown function '" . $funcName . "'");
	}
public static function get($funcName)
	{
		if (isset(self::$cache[$funcName]))
		{
			return self::$cache[$funcName];
		}
		if (preg_match('(^[a-z_0-9]+$)D', $funcName))
		{
			$filepath = __DIR__ . '/functions/' . $funcName . '.js';
			if (file_exists($filepath))
			{
				return file_get_contents($filepath);
			}
		}
		throw new InvalidArgumentException("Unknown function '" . $funcName . "'");
	}
public static function get ( $ funcName ) { if ( isset ( self :: $ cache [ $ funcName ] ) ) { return self :: $ cache [ $ funcName ] ; } if ( preg_match ( '(^[a-z_0-9]+$)D' , $ funcName ) ) { $ filepath = __DIR__ . '/functions/' . $ funcName . '.js' ; if ( file_exists ( $ filepath ) ) { return file_get_contents ( $ filepath ) ; } } throw new InvalidArgumentException ( "Unknown function '" . $ funcName . "'" ) ; }
Return a function's source from the cache or the filesystem

@param  string $funcName Function's name
@return string           Function's source
Return a function s source from the cache or the filesystem