src/ShopBundle/objects/db/TShopModuleArticleListFilter/TShopModuleArticleListFilter.class.php
public static function GetNewInstance($sData = null, $sLanguage = null)
    {
        $canBeCached = false;
        $cacheKey = null;
        if (false === is_array($sData)) {
            $canBeCached = true;
            $cacheKey = "$sData|$sLanguage";
            if (isset(self::$cache[$cacheKey])) {
                return clone self::$cache[$cacheKey];
            }
        }
        $oObject = parent:: GetNewInstance($sData, $sLanguage);
        if ($oObject && false !== $oObject->sqlData && isset($oObject->sqlData['class']) && !empty($oObject->sqlData['class'])) {
            $sClassName = $oObject->sqlData['class'];
            $oNewObject = new $sClassName();
            $oNewObject->LoadFromRow($oObject->sqlData);

            if ($canBeCached) {
                self::$cache[$cacheKey] = $oNewObject;
            }

            return $oNewObject;
        }

        return $oObject;
    }
public static function GetNewInstance($sData = null, $sLanguage = null)
    {
        $canBeCached = false;
        $cacheKey = null;
        if (false === is_array($sData)) {
            $canBeCached = true;
            $cacheKey = "$sData|$sLanguage";
            if (isset(self::$cache[$cacheKey])) {
                return clone self::$cache[$cacheKey];
            }
        }
        $oObject = parent:: GetNewInstance($sData, $sLanguage);
        if ($oObject && false !== $oObject->sqlData && isset($oObject->sqlData['class']) && !empty($oObject->sqlData['class'])) {
            $sClassName = $oObject->sqlData['class'];
            $oNewObject = new $sClassName();
            $oNewObject->LoadFromRow($oObject->sqlData);

            if ($canBeCached) {
                self::$cache[$cacheKey] = $oNewObject;
            }

            return $oNewObject;
        }

        return $oObject;
    }
public static function GetNewInstance ( $ sData = null , $ sLanguage = null ) { $ canBeCached = false ; $ cacheKey = null ; if ( false === is_array ( $ sData ) ) { $ canBeCached = true ; $ cacheKey = "$sData|$sLanguage" ; if ( isset ( self :: $ cache [ $ cacheKey ] ) ) { return clone self :: $ cache [ $ cacheKey ] ; } } $ oObject = parent :: GetNewInstance ( $ sData , $ sLanguage ) ; if ( $ oObject && false !== $ oObject -> sqlData && isset ( $ oObject -> sqlData [ 'class' ] ) && ! empty ( $ oObject -> sqlData [ 'class' ] ) ) { $ sClassName = $ oObject -> sqlData [ 'class' ] ; $ oNewObject = new $ sClassName ( ) ; $ oNewObject -> LoadFromRow ( $ oObject -> sqlData ) ; if ( $ canBeCached ) { self :: $ cache [ $ cacheKey ] = $ oNewObject ; } return $ oNewObject ; } return $ oObject ; }
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 TdbShopModuleArticleListFilter
factory creates a new instance and returns it .