public static function getNameById($sid)
    {
        $list = self::getList(true);
        $key = array_search($sid, $list);
        if ($key === false)
            throw new SidItemNotFound('Sid not exists');

        return $key;
    }
public static function getNameById($sid)
    {
        $list = self::getList(true);
        $key = array_search($sid, $list);
        if ($key === false)
            throw new SidItemNotFound('Sid not exists');

        return $key;
    }
public static function getNameById ( $ sid ) { $ list = self :: getList ( true ) ; $ key = array_search ( $ sid , $ list ) ; if ( $ key === false ) throw new SidItemNotFound ( 'Sid not exists' ) ; return $ key ; }
Return constant name from SID.

@param int $id SID to find

@return string Name of constant.
@throws SidItemNotFound
Return constant name from SID .