PHP Class Gc\View\Helper\Cdn

Inheritance: extends Zend\View\Helper\AbstractHelper
Show file Open project: gotcms/gotcms

Protected Properties

Property Type Description
$basePath string Base path
$config Gc\Core\Config Core config data
$request Zend\Http\PhpEnvironment\Request Request

Public Methods

Method Description
__construct ( Zend\Http\PhpEnvironment\Request $request, Config $config ) Constructor
__invoke ( string $path ) : string Generates an url with the given path.

Method Details

__construct() public method

Constructor
public __construct ( Zend\Http\PhpEnvironment\Request $request, Config $config )
$request Zend\Http\PhpEnvironment\Request Http request
$config Gc\Core\Config Core config

__invoke() public method

Generates an url with the given path.
public __invoke ( string $path ) : string
$path string Path
return string Url

Property Details

$basePath protected property

Base path
protected string $basePath
return string

$config protected property

Core config data
protected Config,Gc\Core $config
return Gc\Core\Config

$request protected property

Request
protected Request,Zend\Http\PhpEnvironment $request
return Zend\Http\PhpEnvironment\Request