library/Garp/Content/Import/Factory.php
public static function getImporter($dataFile) {
        $type = self::mapExtensionToType($dataFile);

        // normalize type
        $className = 'Garp_Content_Import_'.ucfirst($type);
        $obj = new $className($dataFile);
        if (!$obj instanceof Garp_Content_Import_Abstract) {
            throw new Garp_Content_Import_Exception("Class $className does not implement Garp_Content_Import_Abstract.");
        }
        return $obj;
    }
public static function getImporter($dataFile) {
        $type = self::mapExtensionToType($dataFile);

        // normalize type
        $className = 'Garp_Content_Import_'.ucfirst($type);
        $obj = new $className($dataFile);
        if (!$obj instanceof Garp_Content_Import_Abstract) {
            throw new Garp_Content_Import_Exception("Class $className does not implement Garp_Content_Import_Abstract.");
        }
        return $obj;
    }
public static function getImporter ( $ dataFile ) { $ type = self :: mapExtensionToType ( $ dataFile ) ; // normalize type $ className = 'Garp_Content_Import_' . ucfirst ( $ type ) ; $ obj = new $ className ( $ dataFile ) ; if ( ! $ obj instanceof Garp_Content_Import_Abstract ) { throw new Garp_Content_Import_Exception ( "Class $className does not implement Garp_Content_Import_Abstract." ) ; } return $ obj ; }
Return instance of Garp_Content_Import_Abstract
@param String $dataFile Filename of the datafile
@return Garp_Content_import_Abstract
Return instance of Garp_Content_Import_Abstract