public static function getCurrent($columnName = '')
    {
        if ($columnName) {
            if (isset(self::$currentMenuLink->$columnName)) {
                return self::$currentMenuLink->$columnName;
            }
            return;
        }
        return self::$currentMenuLink;
    }
public static function getCurrent($columnName = '')
    {
        if ($columnName) {
            if (isset(self::$currentMenuLink->$columnName)) {
                return self::$currentMenuLink->$columnName;
            }
            return;
        }
        return self::$currentMenuLink;
    }
public static function getCurrent ( $ columnName = '' ) { if ( $ columnName ) { if ( isset ( self :: $ currentMenuLink -> $ columnName ) ) { return self :: $ currentMenuLink -> $ columnName ; } return ; } return self :: $ currentMenuLink ; }
Get current MenuLink ID

@param  string $columnName Column of page to be returned
@return int|null Returns MenuLinkID if found, null instead
Get current MenuLink ID