Example #1
0
 public static function registerAutoload()
 {
     if (!self::$_autoloadRegistered) {
         spl_autoload_register(array(__CLASS__, '_loadClass'));
     }
     self::$_autoloadRegistered = TRUE;
 }
Example #2
0
 /**
  * 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;
 }