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

            if (is_array($extensions) && !empty($extensions)) {
                foreach ($extensions as $e) {
                    if (is_file(EXTENSIONS . "/$e/data-sources/data.$handle.php")) {
                        return EXTENSIONS . "/$e/data-sources";
                    }
                }
            }
        }

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

            if (is_array($extensions) && !empty($extensions)) {
                foreach ($extensions as $e) {
                    if (is_file(EXTENSIONS . "/$e/data-sources/data.$handle.php")) {
                        return EXTENSIONS . "/$e/data-sources";
                    }
                }
            }
        }

        return false;
    }
public static function __getClassPath ( $ handle ) { if ( is_file ( DATASOURCES . "/data.$handle.php" ) ) { return DATASOURCES ; } else { $ extensions = Symphony :: ExtensionManager ( ) -> listInstalledHandles ( ) ; if ( is_array ( $ extensions ) && ! empty ( $ extensions ) ) { foreach ( $ extensions as $ e ) { if ( is_file ( EXTENSIONS . "/$e/data-sources/data.$handle.php" ) ) { return EXTENSIONS . "/$e/data-sources" ; } } } } return false ; }
Finds a Datasource by name by searching the data-sources folder in the
workspace and in all installed extension folders and returns the path
to it's folder.

@param string $handle
The handle of the Datasource free from any Symphony conventions
such as `data.*.php`
@return string|boolean
If the datasource is found, the function returns the path it's folder, otherwise false.
Finds a Datasource by name by searching the data - sources folder in the workspace and in all installed extension folders and returns the path to it s folder .