Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (19 sloc) 0.622 kb
<?php
require_once EXTENSIONS . '/section_schemas/data-sources/datasource.section_schema.php';
Class Extension_Section_Schemas extends Extension {
private static $provides = array();
public static function registerProviders() {
self::$provides = array(
'data-sources' => array(
'SectionSchemaDatasource' => SectionSchemaDatasource::getName()
)
);
return true;
}
public static function providerOf($type = null) {
self::registerProviders();
if(is_null($type)) return self::$provides;
if(!isset(self::$provides[$type])) return array();
return self::$provides[$type];
}
}
Jump to Line
Something went wrong with that request. Please try again.