PHP Class CampURIShortNames

Inheritance: extends CampURI
Mostrar archivo Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$_themePath The theme path storage

Public Methods

Method 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.

Protected Methods

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

Private Methods

Method 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 method

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

buildURI() protected method

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
return void

getFormParameters() public method

public getFormParameters ( ) : array
return array An array containing all the form parameters to print out

isRestrictedParameter() public method

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
return boolean

Property Details

$_themePath protected_oe property

The theme path storage
protected $_themePath