public function getBestTarget()
    {
        if ($this->hasParent() && ($this->target == '' || $this->target == '#')) {
            return $this->parent->getBestTarget();
        }
        
        return $this->target;
    }
public function getBestTarget()
    {
        if ($this->hasParent() && ($this->target == '' || $this->target == '#')) {
            return $this->parent->getBestTarget();
        }
        
        return $this->target;
    }
public function getBestTarget ( ) { if ( $ this -> hasParent ( ) && ( $ this -> target == '' || $ this -> target == '#' ) ) { return $ this -> parent -> getBestTarget ( ) ; } return $ this -> target ; }
Returns the best available target, if the menu entry has no target the
target of the parent object will be returned.

@return string
Returns the best available target if the menu entry has no target the target of the parent object will be returned .