Example #1
0
File: Item.php Project: a3gz/menu
 /**
  *
  */
 public function getUrlRoot()
 {
     if (isset($this->settings['urlRoot'])) {
         $urlRoot = $this->settings['urlRoot'];
         if (substr($urlRoot, -1) == '/') {
             $urlRoot = substr($urlRoot, 0, -1);
         }
         return $urlRoot;
     } elseif ($this->owner == null) {
         return '';
     }
     return $this->owner->getUrlRoot();
 }