Perforce Chronicle 2012.2/486814
API Documentation
|
Implements Zend_Filter_Interface to convert titles to ids which are URL and Record friendly. More...
Public Member Functions | |
filter ($value) | |
Convert a provided title into an acceptable id for use in URLs or Records. |
Implements Zend_Filter_Interface to convert titles to ids which are URL and Record friendly.
P4Cms_Filter_TitleToId::filter | ( | $ | value | ) |
Convert a provided title into an acceptable id for use in URLs or Records.
mixed | $value | The title to be filtered |
{ $value = strtolower((string)$value); $value = preg_replace('/[^a-z0-9]/', '-', $value); return trim($value, '-'); }