jSignificantUrlsCompiler

Implements \jISimpleCompiler

Compiler for significant url engine

package

jelix

subpackage

urls_engine

Methods

register the given url informations

appendUrlInfo(\significantUrlInfoParsing $u, string $path,  $secondaryAction) 

Arguments

$path

string

$secondaryAction

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

compile(\jISelector $aSelector) : boolean

Arguments

$aSelector

\jISelector

the file selector

Response

boolean

true : process ok

extract all dynamic parts of a pathinfo, and read <param> elements

extractDynamicParams(\simpleXmlElement $url,  $pathinfo, \significantUrlInfoParsing $u) : string

Arguments

$url

\simpleXmlElement

the url element

$pathinfo

Response

string

the correponding regular expression

getEntryPointConfig

getEntryPointConfig( $entrypoint) 

Arguments

$entrypoint

newHandler

newHandler(\significantUrlInfoParsing $u, \simpleXmlElement $url,  $pathinfo = '') 

Arguments

$url

\simpleXmlElement

$pathinfo

readInclude

readInclude(\simpleXmlElement $url, \significantUrlInfoParsing $uInfo) 
Throws
\Exception

Arguments

$url

\simpleXmlElement

readProjectXml

readProjectXml() 

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

retrieveModulePaths(string $configFile,  $entrypoint = '') 

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

Arguments

$configFile

string

the config file name

$entrypoint

Properties

requestType

requestType : 

Type(s)

defaultUrl

defaultUrl : 

Type(s)

parseInfos

parseInfos : 

Type(s)

createUrlInfos

createUrlInfos : 

Type(s)

createUrlContent

createUrlContent : 

Type(s)

createUrlContentInc

createUrlContentInc : 

Type(s)

checkHttps

checkHttps : 

Type(s)

typeparam

typeparam : 

Type(s)

list all entry points and their config

entryPoints : 

Type(s)

list all modules path

modulesPath : 

Type(s)