public function isActive($class = '')
    {
        $isActive = false;
        if(in_array($this->menuLinkID, self::getActiveIDs())) {
            $isActive = true;
        }
        if($isActive && $class) {
            return $class;
        }

        return $isActive;
    }
public function isActive($class = '')
    {
        $isActive = false;
        if(in_array($this->menuLinkID, self::getActiveIDs())) {
            $isActive = true;
        }
        if($isActive && $class) {
            return $class;
        }

        return $isActive;
    }
public function isActive ( $ class = '' ) { $ isActive = false ; if ( in_array ( $ this -> menuLinkID , self :: getActiveIDs ( ) ) ) { $ isActive = true ; } if ( $ isActive && $ class ) { return $ class ; } return $ isActive ; }
Checks if a given MenuLinkID is currently active in navigation

@params string $class
@return bool|string Returns true, false or the given class name
Checks if a given MenuLinkID is currently active in navigation