\Orpheus\PublisherSlugGenerator

The Slug Generator class

This class generate slug

Summary

Methods
Properties
Constants
format()
isRemovingSpaces()
getRemoveSpaces()
setRemoveSpaces()
isCamelCaseProcessing()
getCaseProcessing()
setCaseProcessing()
No public properties found
LOWERCASE
CAMELCASE
LOWERCAMELCASE
UPPERCAMELCASE
No protected methods found
$removeSpaces
$caseProcessing
N/A
No private methods found
No private properties found
N/A

Constants

LOWERCASE

LOWERCASE

CAMELCASE

CAMELCASE

LOWERCAMELCASE

LOWERCAMELCASE

UPPERCAMELCASE

UPPERCAMELCASE

Properties

$removeSpaces

$removeSpaces : boolean

Should remove space instead of replacing them

Type

boolean

$caseProcessing

$caseProcessing : boolean

How to process word case

Type

boolean

Methods

format()

format(string  $string) : 

Format the $string

Parameters

string $string

Returns

isRemovingSpaces()

isRemovingSpaces() : boolean

Is this generator removing spaces ?

Returns

boolean

getRemoveSpaces()

getRemoveSpaces() : boolean

Get is removing spaces

Returns

boolean

setRemoveSpaces()

setRemoveSpaces(boolean  $removeSpaces = true) : \Orpheus\Publisher\SlugGenerator

Set removing spaces

Parameters

boolean $removeSpaces

Returns

\Orpheus\Publisher\SlugGenerator

isCamelCaseProcessing()

isCamelCaseProcessing() : boolean

Is this generator camel case processing ?

Returns

boolean

getCaseProcessing()

getCaseProcessing() : integer

Get camel case processing

Returns

integer

setCaseProcessing()

setCaseProcessing(integer  $caseProcessing) : \Orpheus\Publisher\SlugGenerator

Set camel case processing

Parameters

integer $caseProcessing

Returns

\Orpheus\Publisher\SlugGenerator