PHP Class Sulu\Component\PHPCR\PathCleanup

Inheritance: implements Sulu\Component\PHPCR\PathCleanupInterface
Afficher le fichier Open project: sulu/sulu

Protected Properties

Свойство Type Description
$replacers array replacers for cleanup.

Méthodes publiques

Méthode Description
__construct ( array $replacers ) PathCleanup constructor.
cleanup ( string $dirty, string $languageCode = null ) : string returns a clean string.
validate ( string $path ) : boolean returns TRUE if path is valid.

Method Details

__construct() public méthode

PathCleanup constructor.
public __construct ( array $replacers )
$replacers array

cleanup() public méthode

returns a clean string.
public cleanup ( string $dirty, string $languageCode = null ) : string
$dirty string dirty string to cleanup
$languageCode string
Résultat string clean string

validate() public méthode

returns TRUE if path is valid.
public validate ( string $path ) : boolean
$path string
Résultat boolean

Property Details

$replacers protected_oe property

replacers for cleanup.
protected array $replacers
Résultat array