PHP Class Sulu\Component\PHPCR\PathCleanup

Inheritance: implements Sulu\Component\PHPCR\PathCleanupInterface
Show file Open project: sulu/sulu

Protected Properties

Property Type Description
$replacers array replacers for cleanup.

Public Methods

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

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

cleanup() public method

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

validate() public method

returns TRUE if path is valid.
public validate ( string $path ) : boolean
$path string
return boolean

Property Details

$replacers protected property

replacers for cleanup.
protected array $replacers
return array