src/ShopRatingServiceBundle/objects/db/TPkgShopRatingService.class.php
public static function GetNewInstance($sData = null, $sLanguage = null)
    {
        $oObject = parent::GetNewInstance($sData, $sLanguage);

        if ($oObject && !empty($oObject->fieldClass)) {
            $aData = $oObject->sqlData;
            $sClassName = $aData['class'];
            $oObject = new $sClassName();
            /** @var $oInterface TCMSInterfaceManagerBase */
            $oObject->LoadFromRow($aData);
        }

        return $oObject;
    }
public static function GetNewInstance($sData = null, $sLanguage = null)
    {
        $oObject = parent::GetNewInstance($sData, $sLanguage);

        if ($oObject && !empty($oObject->fieldClass)) {
            $aData = $oObject->sqlData;
            $sClassName = $aData['class'];
            $oObject = new $sClassName();
            /** @var $oInterface TCMSInterfaceManagerBase */
            $oObject->LoadFromRow($aData);
        }

        return $oObject;
    }
public static function GetNewInstance ( $ sData = null , $ sLanguage = null ) { $ oObject = parent :: GetNewInstance ( $ sData , $ sLanguage ) ; if ( $ oObject && ! empty ( $ oObject -> fieldClass ) ) { $ aData = $ oObject -> sqlData ; $ sClassName = $ aData [ 'class' ] ; $ oObject = new $ sClassName ( ) ; /** @var $oInterface TCMSInterfaceManagerBase */ $ oObject -> LoadFromRow ( $ aData ) ; } return $ oObject ; }
Return new instance of "row-object".

factory creates a new instance and returns it.

@param string|array $sData     - either the id of the object to load, or the row with which the instance should be initialized
@param string       $sLanguage - init with the language passed

@return TdbPkgShopRatingService
Return new instance of row - object .