abstract class AbstractTypeRegistry (View source)

Traits

Provides extensions to this object to integrate it with standard config API methods.

Config options

rebuild_on_missing_schema_file bool

Whether to rebuild the schema if there is a mysteriously missing schema file.

rebuild_on_missing_schema_file_minimum_interval int

Minimum number of seconds between rebuilding the schema if a schema file is missing.

Properties

protected static $types

Methods

public static 
config()

Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).

public
mixed
stat(string $name) deprecated

Get inherited config value

public
mixed
uninherited(string $name)

Gets the uninherited value for the given config option

public
$this
set_stat(string $name, mixed $value) deprecated

Update the config value for a given property

public static 
mixed|null
get(string $typename)

No description

protected static 
string
getSourceDirectory()

No description

protected static 
string
getSourceNamespace()

No description

protected static 
mixed|null
fromCache(string $typename)

No description

public static 
ScalarType
ID()

No description

public static 
ScalarType
String()

No description

public static 
ScalarType
Boolean()

No description

public static 
ScalarType
Float()

No description

public static 
ScalarType
Int()

No description

public static 
ListOfType
listOf($type)

No description

public static 
NonNull
nonNull($type)

No description

Details

static Config_ForClass config()

Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).

Return Value

Config_ForClass

mixed stat(string $name) deprecated

deprecated 5.0 Use ->config()->get() instead

Get inherited config value

Parameters

string $name

Return Value

mixed

mixed uninherited(string $name)

Gets the uninherited value for the given config option

Parameters

string $name

Return Value

mixed

$this set_stat(string $name, mixed $value) deprecated

deprecated 5.0 Use ->config()->set() instead

Update the config value for a given property

Parameters

string $name
mixed $value

Return Value

$this

static mixed|null get(string $typename)

No description

Parameters

string $typename

Return Value

mixed|null

Exceptions

Exception

abstract static protected string getSourceDirectory()

No description

Return Value

string

abstract static protected string getSourceNamespace()

No description

Return Value

string

static protected mixed|null fromCache(string $typename)

No description

Parameters

string $typename

Return Value

mixed|null

Exceptions

Exception

static ScalarType ID()

No description

Return Value

ScalarType

static ScalarType String()

No description

Return Value

ScalarType

static ScalarType Boolean()

No description

Return Value

ScalarType

static ScalarType Float()

No description

Return Value

ScalarType

static ScalarType Int()

No description

Return Value

ScalarType

static ListOfType listOf($type)

No description

Parameters

$type

Return Value

ListOfType

static NonNull nonNull($type)

No description

Parameters

$type

Return Value

NonNull