Public Member Functions | |
getContentSource () | |
getContent ($path) | |
init () | |
getBrowserCacheTimeByFileName ($filename=null) |
Public Attributes | |
$sourceSettings | |
$sourceClass | |
$homePage | |
$startPageFallback = 'index.html' | |
$startPageDynamic = true | |
$localizedAttributeName = 'startpageurl_' | |
$cacheTime | |
$staticFileCacheControl |
Gentics Portal.Node PHP Author & Copyright (c) by Gentics Software GmbH sales @gen tics. comhttp://www.gentics.com Licenses can be found in the LICENSE.txt file in the root-folder of this installation You must not use this software without a valid license agreement.
Module for working with File System Content Renderer and Dynamic Content Renderer. Configuration example: 'contentSource' => array( 'class' => 'site.common.modules.contentSource.ContentSourceModule', 'sourceSettings' => array( 'DynamicContentSource' => array( 'storageFolder' => '/var/www/gPortal/DCR' ), 'FileSystemContentSource' => array( 'sourceFolder' => '/var/www/gPortal/FSCR' ), ), 'sourceClass' => 'DynamicContentSource' )
Definition at line 25 of file ContentSourceModule.php.
ContentSourceModule::getBrowserCacheTimeByFileName | ( | $filename = null | ) |
Tries to find a browser cache time by path from the config, see $staticFileCacheControl
string | $filename |
Definition at line 143 of file ContentSourceModule.php.
References AppHelper\isNullOrEmptyString().
ContentSourceModule::getContent | ( | $path | ) |
Get static resource content. For example images, css, js
string | $path | content path |
Definition at line 116 of file ContentSourceModule.php.
References getContentSource().
ContentSourceModule::getContentSource | ( | ) |
Get object which represents Content Source
Definition at line 97 of file ContentSourceModule.php.
Referenced by getContent().
ContentSourceModule::init | ( | ) |
ContentSourceModule::$localizedAttributeName = 'startpageurl_' |
Name of content attribute for locale $localizedAttributeName . $locale
string
Definition at line 63 of file ContentSourceModule.php.
ContentSourceModule::$startPageDynamic = true |
Method of displaying startpage to user. Can take following values: false - redirect user to the page true - (no redirect - just display/include the page without changing the URL)
string
Definition at line 55 of file ContentSourceModule.php.
ContentSourceModule::$startPageFallback = 'index.html' |
This value is used when startpage for some folder doesnt exists
string
Definition at line 46 of file ContentSourceModule.php.