GetUserMod
extends Smarty_Resource_Custom
in package
Class GetUserMod
Tags
Table of Contents
- $componentsService : GXModulesComponentsService
- $path : Path
- __construct() : mixed
- GetUserMod constructor.
- fetch() : void
- Fetches the template source.
- evaluateFilename() : string
- Evaluates the template filename.
- handleExtend() : void
- Handles the extend block.
- isAbsolutePath() : bool
- Checks if $path is an absolute shop path.
- isExtending() : bool
- Checks if $name is an extends block.
- isGxModulesHtml() : bool
- Checks if $path is a valid GXModules HTML file.
Properties
$componentsService
private
GXModulesComponentsService
$componentsService
$path
private
Path
$path
Methods
__construct()
GetUserMod constructor.
public
__construct(GXModulesComponentsService $componentsService, Path $path) : mixed
Parameters
- $componentsService : GXModulesComponentsService
- $path : Path
Return values
mixed —fetch()
Fetches the template source.
protected
fetch(string $name, string &$source, int &$mtime) : void
Parameters
- $name : string
- $source : string
- $mtime : int
Tags
Return values
void —evaluateFilename()
Evaluates the template filename.
private
evaluateFilename(string $name) : string
Parameters
- $name : string
Tags
Return values
string —handleExtend()
Handles the extend block.
private
handleExtend( $name, &$source, &$mtime) : void
Parameters
Return values
void —isAbsolutePath()
Checks if $path is an absolute shop path.
private
isAbsolutePath(string $path) : bool
Parameters
- $path : string
Return values
bool —isExtending()
Checks if $name is an extends block.
private
isExtending(string $name) : bool
Parameters
- $name : string
Return values
bool —isGxModulesHtml()
Checks if $path is a valid GXModules HTML file.
private
isGxModulesHtml(string $path) : bool
Parameters
- $path : string