Свойство | Тип | Описание | |
---|---|---|---|
$_themePath | The theme path storage | ||
$m_article | MetaArticle | Article object | |
$m_buildPath | string | ||
$m_buildQuery | string | ||
$m_buildQueryArray | array | ||
$m_config | object | ||
$m_errorCode | integer | Holds the URL process error code; null if no error | |
$m_fragment | string | ||
$m_host | string | ||
$m_issue | MetaIssue | Issue object | |
$m_language | MetaLanguage | Language object | |
$m_objects | |||
$m_parts | array | The URI parts | |
$m_password | string | ||
$m_path | string | ||
$m_port | integer | ||
$m_preview | boolean | True if in preview mode | |
$m_previewParameters | array | The list of parameters used in preview mode | |
$m_publication | MetaPublication | Publication object | |
$m_query | string | ||
$m_scheme | string | ||
$m_section | MetaSection | Section object | |
$m_template | MetaTemplate | Template object | |
$m_type | integer | The URI type It can be either: Template Path = 1 Short Names = 2 | |
$m_uri | string | The URI value | |
$m_user | MetaUser | ||
$m_validURI | boolean | Whether the URI is valid or not |
Метод | Описание | |
---|---|---|
GetPreviewParameters ( ) | ||
__construct ( string $p_uri = 'SELF' ) | Class constructor | |
__get ( string $p_property ) : boolean | Sets an object property | |
__set ( string $p_property, mixed $p_value ) : boolean | Sets an object property | |
getBase ( ) : string | Gets the URI base, it is the scheme, host and (if exists) port. | |
getBasePath ( ) : string | Gets the base plus the path from the current URI. | |
getCampsiteVector ( ) : array | Returns campsite params: language, publication, issue, section, article. | |
getErrorCode ( ) : integer | Returns the URL processing error code | |
getFragment ( ) : string | Gets the fragment part from the current URI. | |
getHost ( ) : string | Gets the host part from the current URI. | |
getPassword ( ) : string | Gets the password part from the current URI. | |
getPath ( ) : string | Gets the path part from the current URI. | |
getPort ( ) : integer | Gets the port part from the current URI. | |
getQuery ( ) : string | Gets the query part from the current URI. | |
getQueryArray ( array $p_keepParameters = [], array $p_removeParameters = [] ) : array | Gets the array containing the query variables. | |
getQueryVar ( string $p_varName ) : string | Gets the given variable from the URI query. | |
getRelativeBase ( ) : string | Gets the relative URI base, it is '//', host and (if exists) port. | |
getRequestURI ( ) : string | Gets the requested URI. | |
getScheme ( ) : string | Gets the scheme part from the current URI. | |
getTemplate ( $p_templateIdOrName = null ) | ||
getThemePath ( ) | ||
getURI ( string $p_param = null, boolean $p_preview = false ) : string | Returns the URI string based on given URL parameter. | |
getURIPath ( string $p_param = null, boolean $p_preview = false ) : string | Returns the URI path based on given URL parameter. | |
getURL ( ) : string | Gets the URL from the object attributes. | |
getURLParameters ( string $p_param = null, boolean $p_preview = false ) : string | Returns the URI query parameters based on given URL parameter. | |
getURLType ( ) : integer | Gets the URL type. | |
getUser ( ) : string | Returns the user part from the current URI. | |
isRestrictedParameter ( string $p_parameterName ) : boolean | Returns true if the given parameter is restricted and can not be set from outside the URL object. | |
isSSL ( ) : boolean | Returns whether the site is running over SSL or not. | |
setFragment ( string $p_fragment ) : void | Sets the URI fragment. | |
setHost ( string $p_host ) : void | Sets the URI host. | |
setPassword ( $p_password ) : void | Sets the URI password part. | |
setPath ( string $p_path ) : void | Sets the URI path. | |
setPort ( integer $p_port ) : void | Sets the URI port. | |
setQuery ( $p_query ) : void | Gets the query part from the current URI. | |
setQueryVar ( string $p_varName, string $p_value = null ) : void | Sets the given URI query variable. | |
setScheme ( string $p_scheme ) : void | Sets the URI scheme. | |
setUser ( string $p_user ) : void | Sets the URI user part. |
Метод | Описание | |
---|---|---|
QueryArrayToString ( array $p_queryArray, $p_HTMLEscape = true ) : string | Builds a URI query string from the given query array. | |
addToQuery ( &$p_query, array $p_parameters ) | Adds the given parameters to the query array | |
buildURI ( array &$p_params = [], boolean $p_preview = false ) : void | Sets the URI path and query values based on given parameters. | |
clearParams ( array $parameters ) | ||
isValidCache ( ) : boolean | Returns the cache valid state | |
isValidTemplate ( string $p_templateName ) : boolean | Returns whether the template name given is a valid template resource. | |
render ( array $p_parts = [] ) : string | Builds a URI string from the given parts. | |
resetList ( $listIdPrefix ) | ||
setURLType ( integer $p_type ) : void | Sets the URL type. | |
validateCache ( boolean $p_valid ) | Sets the cache validation for URI rendering |
Метод | Описание | |
---|---|---|
parse ( string $p_uri ) : boolean | Parses the given URI. | |
processImageOptions ( integer &$p_imageNo, array $p_params ) |
Process the image options given in the new format:
|
|
processOldImageOptions ( integer &$p_imageNo, array $p_params ) |
Process the image options given in the old format (for compatibility):
[ |
|
readUser ( ) |
protected static QueryArrayToString ( array $p_queryArray, $p_HTMLEscape = true ) : string | ||
$p_queryArray | array | An array of query variables |
Результат | string | $queryString The generated query string |
public __construct ( string $p_uri = 'SELF' ) | ||
$p_uri | string | The full URI string |
protected addToQuery ( &$p_query, array $p_parameters ) | ||
$p_parameters | array |
public getBasePath ( ) : string | ||
Результат | string | The URI base path |
public getCampsiteVector ( ) : array | ||
Результат | array |
public getErrorCode ( ) : integer | ||
Результат | integer |
public getFragment ( ) : string | ||
Результат | string | $m_fragment The fragment value |
public getPassword ( ) : string | ||
Результат | string | $m_password The password value |
public getQueryVar ( string $p_varName ) : string | ||
$p_varName | string | The variable name |
Результат | string | null on failure, otherwise the variable value |
public getRelativeBase ( ) : string | ||
Результат | string | $relativeBase The relative URI base |
public getRequestURI ( ) : string | ||
Результат | string | The requested URI string |
abstract public isRestrictedParameter ( string $p_parameterName ) : boolean | ||
$p_parameterName | string | |
Результат | boolean |
protected isValidCache ( ) : boolean | ||
Результат | boolean |
protected isValidTemplate ( string $p_templateName ) : boolean | ||
$p_templateName | string | The name of the template from the URI path |
Результат | boolean | true on success, false on failure |
public setFragment ( string $p_fragment ) : void | ||
$p_fragment | string | The fragment part |
Результат | void |
public setPassword ( $p_password ) : void | ||
Результат | void |
protected setURLType ( integer $p_type ) : void | ||
$p_type | integer | The URL type number |
Результат | void |
protected validateCache ( boolean $p_valid ) | ||
$p_valid | boolean |
protected MetaArticle $m_article | ||
Результат | MetaArticle |
protected int $m_errorCode | ||
Результат | integer |
protected MetaLanguage $m_language | ||
Результат | MetaLanguage |
protected static array $m_previewParameters | ||
Результат | array |
protected MetaPublication $m_publication | ||
Результат | MetaPublication |
protected MetaSection $m_section | ||
Результат | MetaSection |
protected MetaTemplate $m_template | ||
Результат | MetaTemplate |
protected int $m_type | ||
Результат | integer |
protected bool $m_validURI | ||
Результат | boolean |