Свойство | Тип | Описание | |
---|---|---|---|
$options | mixed>\array | ||
$provider | Cocur\Slugify\RuleProvider\RuleProviderInterface | ||
$rules | string>\array |
Метод | Описание | |
---|---|---|
__construct ( array $options = [], Cocur\Slugify\RuleProvider\RuleProviderInterface $provider = null ) | ||
activateRuleSet ( string $ruleSet ) : |
||
addRule ( string $character, string $replacement ) : |
Adds a custom rule to Slugify. | |
addRules ( array $rules ) : |
Adds multiple rules to Slugify. | |
create ( array $options = [] ) : |
Static method to create new instance of {@see Slugify}. | |
slugify ( string $string, string | array | null $options = null ) : string | Returns the slug-version of the string. |
public __construct ( array $options = [], Cocur\Slugify\RuleProvider\RuleProviderInterface $provider = null ) | ||
$options | array | |
$provider | Cocur\Slugify\RuleProvider\RuleProviderInterface |
public activateRuleSet ( string $ruleSet ) : |
||
$ruleSet | string | |
Результат |
protected RuleProviderInterface,Cocur\Slugify\RuleProvider $provider | ||
Результат | Cocur\Slugify\RuleProvider\RuleProviderInterface |