src/ShopAffiliateBundle/objects/db/TPkgShopAffiliate.class.php
public static function GetInstance($sId)
    {
        $oElement = TdbPkgShopAffiliate::GetNewInstance();
        $oElement->Load($sId);
        if (!empty($oElement->sqlData['class'])) {
            $sClassName = $oElement->sqlData['class'];
            $oElementNew = new $sClassName();
            $oElementNew->LoadFromRow($oElement->sqlData);
            $oElement = $oElementNew;
        }

        return $oElement;
    }
public static function GetInstance($sId)
    {
        $oElement = TdbPkgShopAffiliate::GetNewInstance();
        $oElement->Load($sId);
        if (!empty($oElement->sqlData['class'])) {
            $sClassName = $oElement->sqlData['class'];
            $oElementNew = new $sClassName();
            $oElementNew->LoadFromRow($oElement->sqlData);
            $oElement = $oElementNew;
        }

        return $oElement;
    }
public static function GetInstance ( $ sId ) { $ oElement = TdbPkgShopAffiliate :: GetNewInstance ( ) ; $ oElement -> Load ( $ sId ) ; if ( ! empty ( $ oElement -> sqlData [ 'class' ] ) ) { $ sClassName = $ oElement -> sqlData [ 'class' ] ; $ oElementNew = new $ sClassName ( ) ; $ oElementNew -> LoadFromRow ( $ oElement -> sqlData ) ; $ oElement = $ oElementNew ; } return $ oElement ; }
return instance of class (casted as correct type.

@param string $sId

@return TdbPkgShopAffiliate
return instance of class ( casted as correct type .