public static function __getClassPath($name)
    {
        if (is_file(EMAILGATEWAYS . "/email.$name.php")) {
            return EMAILGATEWAYS;
        } else {
            $extensions = Symphony::ExtensionManager()->listInstalledHandles();

            if (is_array($extensions) && !empty($extensions)) {
                foreach ($extensions as $e) {
                    if (is_file(EXTENSIONS . "/$e/email-gateways/email.$name.php")) {
                        return EXTENSIONS . "/$e/email-gateways";
                    }
                }
            }
        }

        return false;
    }
public static function __getClassPath($name)
    {
        if (is_file(EMAILGATEWAYS . "/email.$name.php")) {
            return EMAILGATEWAYS;
        } else {
            $extensions = Symphony::ExtensionManager()->listInstalledHandles();

            if (is_array($extensions) && !empty($extensions)) {
                foreach ($extensions as $e) {
                    if (is_file(EXTENSIONS . "/$e/email-gateways/email.$name.php")) {
                        return EXTENSIONS . "/$e/email-gateways";
                    }
                }
            }
        }

        return false;
    }
public static function __getClassPath ( $ name ) { if ( is_file ( EMAILGATEWAYS . "/email.$name.php" ) ) { return EMAILGATEWAYS ; } else { $ extensions = Symphony :: ExtensionManager ( ) -> listInstalledHandles ( ) ; if ( is_array ( $ extensions ) && ! empty ( $ extensions ) ) { foreach ( $ extensions as $ e ) { if ( is_file ( EXTENSIONS . "/$e/email-gateways/email.$name.php" ) ) { return EXTENSIONS . "/$e/email-gateways" ; } } } } return false ; }
Finds the gateway by name

@param string $name
The gateway to look for
@return string|boolean
If the gateway is found, the path to the folder containing the
gateway is returned.
If the gateway is not found, false is returned.
Finds the gateway by name