PHP Class Gc\View\Helper\CdnBackend

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

Protected Properties

Property Type Description
$basePath string Base path
$config Gc\Core\Config Core config data
$databaseActive boolean If database is active
$request Zend\Http\PhpEnvironment\Request Request

Public Methods

Method Description
__construct ( Zend\Http\PhpEnvironment\Request $request, Config $config = null ) 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 = null )
$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_oe property

Base path
protected string $basePath
return string

$config protected_oe property

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

$databaseActive protected_oe property

If database is active
protected bool $databaseActive
return boolean

$request protected_oe property

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