public static function registerAutoload() { if (!self::$_autoloadRegistered) { spl_autoload_register(array(__CLASS__, '_loadClass')); } self::$_autoloadRegistered = TRUE; }
/** * Add a filter at the beginning of the chain * * @param mixed $filter Either a filter key or a instance of RRSlug_FilterInterface. * @return RRSlug_FilterChain A reference to this instance. * @author Romain Ruetschi <*****@*****.**> */ public function unshift($filter) { $filter = $this->_slug->getFilterFromMixedValue($filter); $this->_filters = array($filter) + $this->_filters; return $this; }