/**
  * @param array $defaultOptions
  * @param string $charset
  */
 public function __construct(array $defaultOptions = array(), $charset = null)
 {
     $this->defaultOptions = array_merge(array('depth' => null, 'currentAsLink' => true, 'currentClass' => 'current', 'ancestorClass' => 'current_ancestor', 'firstClass' => 'first', 'lastClass' => 'last', 'compressed' => false, 'allow_safe_labels' => false), $defaultOptions);
     parent::__construct($charset);
 }
예제 #2
0
 /**
  * @param IMatcher $matcher
  * @param array $defaultOptions
  */
 public function __construct(IMatcher $matcher, array $defaultOptions = array(), $charset = null)
 {
     $this->matcher = $matcher;
     $this->setDefaults($defaultOptions);
     parent::__construct($charset);
 }
예제 #3
0
 /**
  * @param MatcherInterface $matcher
  * @param array            $defaultOptions
  * @param string           $charset
  */
 public function __construct(MatcherInterface $matcher, array $defaultOptions = array(), $charset = null)
 {
     $this->matcher = $matcher;
     $this->defaultOptions = array_merge(array('depth' => null, 'matchingDepth' => null, 'currentAsLink' => true, 'currentClass' => 'current', 'ancestorClass' => 'current_ancestor', 'firstClass' => 'first', 'lastClass' => 'last', 'compressed' => false, 'allow_safe_labels' => false, 'clear_matcher' => true, 'leaf_class' => null, 'branch_class' => null), $defaultOptions);
     parent::__construct($charset);
 }