PHP Class Piwik\Plugins\WebsiteMeasurable\Settings\Urls

Inheritance: extends Piwik\Settings\Measurable\MeasurableProperty
Mostrar archivo Open project: piwik/piwik Class Usage Examples

Public Methods

Method 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

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

Method Details

__construct() public method

public __construct ( $idSite )

checkAtLeastOneUrl() public method

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

checkUrls() public method

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

cleanParameterUrls() public method

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

configureField() public method

public configureField ( )