Jelix 1.6.37

jSignificantUrlsCompiler
in package
implements jISimpleCompiler

Compiler for significant url engine

Tags
subpackage

urls_engine

Interfaces, Classes and Traits

jISimpleCompiler
interface for compiler which needs only one source file.

Table of Contents

$checkHttps  : mixed
$createUrlContent  : mixed
$createUrlContentInc  : mixed
$createUrlInfos  : mixed
$defaultUrl  : mixed
$entryPoints  : mixed
list all entry points and their config
$modulesPath  : mixed
list all modules path
$parseInfos  : mixed
$requestType  : mixed
$typeparam  : mixed
compile()  : bool
parse the given file, and store the result in a cache file
appendUrlInfo()  : mixed
register the given url informations
extractDynamicParams()  : string
extract all dynamic parts of a pathinfo, and read <param> elements
getEntryPointConfig()  : mixed
newHandler()  : mixed
readInclude()  : mixed
readProjectXml()  : mixed
retrieveModulePaths()  : mixed
since urls.xml declare all entrypoints, current entry point does not have access to all modules, so doesn't know all their paths.

Properties

$typeparam

protected mixed $typeparam = array('string' => '([^\/]+)', 'char' => '([^\/])', 'letter' => '(\w)', 'number' => '(\d+)', 'int' => '(\d+)', 'integer' => '(\d+)', 'digit' => '(\d)', 'date' => '([0-2]\d{3}\-(?:0[1-9]|1[0-2])\-(?:[0-2][1-9]|3[0-1]))', 'year' => '([0-2]\d{3})', 'month' => '(0[1-9]|1[0-2])', 'day' => '([0-2][1-9]|[1-2]0|3[0-1])', 'path' => '(.*)', 'locale' => '(\w{2,3}(?:(?:\-|_)\w{2,3})?)', 'lang' => '(\w{2,3})')

Methods

compile()

parse the given file, and store the result in a cache file

public compile(mixed $aSelector) : bool
Parameters
$aSelector : mixed

the file selector

Return values
bool

true : process ok

getEntryPointConfig()

protected getEntryPointConfig(mixed $entrypoint) : mixed
Parameters
$entrypoint : mixed
Return values
mixed

retrieveModulePaths()

since urls.xml declare all entrypoints, current entry point does not have access to all modules, so doesn't know all their paths.

protected retrieveModulePaths(string $configFile[, mixed $entrypoint = '' ]) : mixed

this method retrieve all module paths declared in the configuration of an entry point or the global configuration

Parameters
$configFile : string

the config file name

$entrypoint : mixed = ''
Return values
mixed

Search results