PHP Class CampURIShortNames

Inheritance: extends CampURI
Afficher le fichier Open project: sourcefabric/newscoop

Protected Properties

Свойство Type Description
$_themePath The theme path storage

Méthodes publiques

Méthode Description
__construct ( string $p_uri = null ) Class constructor
getFormParameters ( ) : array
isRestrictedParameter ( string $p_parameterName ) : boolean Returns true if the given parameter is restricted and can not be set from outside the URL object.

Méthodes protégées

Méthode Description
buildURI ( array &$p_params = [], boolean $p_preview = false ) : void Sets the URI path and query values based on given parameters.

Private Methods

Méthode Description
_getArticle ( integer $articleNo, MetaLanguage $language ) : MetaArticle Get article
_getIssue ( string $name, MetaLanguage $language, MetaPublication $publication ) : MetaIssue Get issue
_getLanguage ( string $code, MetaPublication $publication ) : MetaLanguage Get language by code
_getPublication ( ) : MetaPublication Get publication by site name
_getSection ( string $name, MetaIssue $issue, MetaLanguage $language, MetaPublication $publication ) : MetaSection Get section
_getTemplate ( ) : MetaTemplate Get template
getURIArticle ( ) : string Gets the article URI path.
getURIIssue ( ) : string Gets the issue URI path.
getURILanguage ( ) : string Gets the language URI path.
getURISection ( ) : string Gets the section URI path.
setURL ( Zend_Controller_Request_Abstract $request ) : void | PEAR_Error Sets the URL values
setURLFromSymfony ( Symfony\Component\HttpFoundation\Request $request ) Sets the URL values

Method Details

__construct() public méthode

Class constructor
public __construct ( string $p_uri = null )
$p_uri string The full URI string

buildURI() protected méthode

Sets the URI path and query values based on given parameters.
protected buildURI ( array &$p_params = [], boolean $p_preview = false ) : void
$p_params array An array of valid URL parameters
$p_preview boolean If true, will keep the preview parameters in the URL
Résultat void

getFormParameters() public méthode

public getFormParameters ( ) : array
Résultat array An array containing all the form parameters to print out

isRestrictedParameter() public méthode

Returns true if the given parameter is restricted and can not be set from outside the URL object.
public isRestrictedParameter ( string $p_parameterName ) : boolean
$p_parameterName string
Résultat boolean

Property Details

$_themePath protected_oe property

The theme path storage
protected $_themePath