PHP Class Piwik\Plugins\WebsiteMeasurable\Settings\Urls

Inheritance: extends Piwik\Settings\Measurable\MeasurableProperty
Afficher le fichier Open project: piwik/piwik Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $idSite )
checkAtLeastOneUrl ( array $urls ) Checks that the array has at least one element
checkUrls ( array $urls ) Check that the array of URLs are valid URLs
cleanParameterUrls ( $urls ) : array Clean the parameter URLs: - if the parameter is a string make it an array - remove the trailing slashes if found
configureField ( )

Private Methods

Méthode Description
removeTrailingSlash ( string $url ) : string Remove the final slash in the URLs if found

Method Details

__construct() public méthode

public __construct ( $idSite )

checkAtLeastOneUrl() public méthode

Checks that the array has at least one element
public checkAtLeastOneUrl ( array $urls )
$urls array

checkUrls() public méthode

Check that the array of URLs are valid URLs
public checkUrls ( array $urls )
$urls array

cleanParameterUrls() public méthode

Clean the parameter URLs: - if the parameter is a string make it an array - remove the trailing slashes if found
public cleanParameterUrls ( $urls ) : array
Résultat array the array of cleaned URLs

configureField() public méthode

public configureField ( )