⚛ Uci GraphQL

UciMutationType extends UciType
in package

Class used for load all schema for the UCI System in GraphQL.

Table of Contents

$uciInfo  : array<string|int, mixed>
$forbiddenConfigurations  : array<string|int, mixed>|null
$provider  : UciProvider|null
$uciConfigTypes  : array<string|int, mixed>
$uciFields  : array<string|int, mixed>
$uciSectionTypes  : array<string|int, mixed>
$actionEnum  : EnumType
__construct()  : mixed
Construct all the type with dinamyc schema from the UCI System.
getConfigDescription()  : string
Return a description for the config.
getConfigName()  : string
Return correct name for the config ObjectType.
getOptionDescription()  : string
Return a description for the option.
getOptionName()  : string
Return correct name for the option ObjectType.
getsectionDescription()  : string
Return a description for the section.
getSectionName()  : string
Return correct name for the section ObjectType.
setUciInfo()  : void
cleanRegexString()  : string
filterResolverArraySection()  : array<string|int, mixed>|null
Resolve the array using filters.
getAllOptions()  : array<string|int, mixed>
Return all options available using other sections in the configuration file.
getConfigsForbidden()  : array<string|int, mixed>
Return all configs name forbidden.
getConfigurationType()  : array<string|int, mixed>
Return the schema for the configuration of UCI.
getOptionsForbidden()  : array<string|int, mixed>
Return all options name forbidden.
getOptionType()  : array<string|int, mixed>
Return the schema for the options by section in the configuration of UCI.
getSectionsForbidden()  : array<string|int, mixed>
Return all sections name forbidden.
getSectionType()  : array<string|int, mixed>
Return the schema for the section in the configuration of UCI.
getUciFields()  : array<string|int, mixed>
Return all fields in the uci configuration using GraphQL sintax.
getUniqueConfigType()  : ObjectType
Return an unique config type without repeat.
getUniqueKeys()  : array<string|int, mixed>
Return an array with unique keys for each array.
getUniqueSectionType()  : ObjectType
Return an unique section type without repeat.
isCorrectConfigForbiddenConfigurations()  : bool
isCorrectForbiddenConfigurations()  : bool
isCorrectSectionForbiddenConfigurations()  : bool
isRegexString()  : bool

Properties

$uciInfo

public array<string|int, mixed> $uciInfo = []

$forbiddenConfigurations

protected array<string|int, mixed>|null $forbiddenConfigurations = null

$uciConfigTypes

protected array<string|int, mixed> $uciConfigTypes = []

$uciFields

protected array<string|int, mixed> $uciFields = []

$uciSectionTypes

protected array<string|int, mixed> $uciSectionTypes = []

Methods

__construct()

Construct all the type with dinamyc schema from the UCI System.

public __construct([array<string|int, mixed> $forbiddenConfigurations = [] ][, UciProvider|null $provider = null ]) : mixed
Parameters
$forbiddenConfigurations : array<string|int, mixed> = []
$provider : UciProvider|null = null

Construct all the type with dinamyc schema from the UCI System.

Return values
mixed

getConfigDescription()

Return a description for the config.

public getConfigDescription(string $configName) : string
Parameters
$configName : string
Return values
string

getConfigName()

Return correct name for the config ObjectType.

public getConfigName(mixed $configName) : string
Parameters
$configName : mixed
Tags
inheritdoc
Return values
string

getOptionDescription()

Return a description for the option.

public getOptionDescription(string $optionName, string $sectionName, string $configName) : string
Parameters
$optionName : string
$sectionName : string
$configName : string
Return values
string

getOptionName()

Return correct name for the option ObjectType.

public getOptionName(mixed $configName, mixed $sectionName, mixed $optionName) : string
Parameters
$configName : mixed
$sectionName : mixed
$optionName : mixed
Tags
inheritdoc
Return values
string

getsectionDescription()

Return a description for the section.

public getsectionDescription(string $sectionName, string $configName) : string
Parameters
$sectionName : string
$configName : string
Return values
string

getSectionName()

Return correct name for the section ObjectType.

public getSectionName(mixed $configName, mixed $sectionName) : string
Parameters
$configName : mixed
$sectionName : mixed
Tags
inheritdoc
Return values
string

setUciInfo()

public setUciInfo(array<string|int, mixed> $uciInfo) : void
Parameters
$uciInfo : array<string|int, mixed>
Return values
void

cleanRegexString()

protected cleanRegexString(string $string) : string
Parameters
$string : string
Return values
string

filterResolverArraySection()

Resolve the array using filters.

protected filterResolverArraySection(array<string|int, mixed> $value, array<string|int, mixed> $args, Context|null $context, ResolveInfo $info) : array<string|int, mixed>|null
Parameters
$value : array<string|int, mixed>
$args : array<string|int, mixed>
$context : Context|null
$info : ResolveInfo
Return values
array<string|int, mixed>|null

getAllOptions()

Return all options available using other sections in the configuration file.

protected getAllOptions(array<string|int, mixed> $sections, array<string|int, mixed>|UciSection $section) : array<string|int, mixed>
Parameters
$sections : array<string|int, mixed>

All sections available

$section : array<string|int, mixed>|UciSection

Section to evaluate

Return values
array<string|int, mixed>

getConfigsForbidden()

Return all configs name forbidden.

protected getConfigsForbidden() : array<string|int, mixed>
Return values
array<string|int, mixed>

getConfigurationType()

Return the schema for the configuration of UCI.

protected getConfigurationType(string $configName, array<string|int, mixed> $configFields) : array<string|int, mixed>
Parameters
$configName : string
$configFields : array<string|int, mixed>
Return values
array<string|int, mixed>

getOptionsForbidden()

Return all options name forbidden.

protected getOptionsForbidden(string $configName, string $sectionName) : array<string|int, mixed>
Parameters
$configName : string
$sectionName : string
Return values
array<string|int, mixed>

getOptionType()

Return the schema for the options by section in the configuration of UCI.

protected getOptionType(mixed $configName, mixed $sectionName, mixed $optionName) : array<string|int, mixed>
Parameters
$configName : mixed
$sectionName : mixed
$optionName : mixed
Tags
inheritdoc
Return values
array<string|int, mixed>

getSectionsForbidden()

Return all sections name forbidden.

protected getSectionsForbidden(string $configName) : array<string|int, mixed>
Parameters
$configName : string
Return values
array<string|int, mixed>

getSectionType()

Return the schema for the section in the configuration of UCI.

protected getSectionType(string $configName, string $sectionName, array<string|int, mixed> $sectionFields, bool $isArray) : array<string|int, mixed>
Parameters
$configName : string
$sectionName : string
$sectionFields : array<string|int, mixed>
$isArray : bool
Return values
array<string|int, mixed>

getUciFields()

Return all fields in the uci configuration using GraphQL sintax.

protected getUciFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

getUniqueConfigType()

Return an unique config type without repeat.

protected getUniqueConfigType(string $configName, array<string|int, mixed> $configFields) : ObjectType
Parameters
$configName : string
$configFields : array<string|int, mixed>
Return values
ObjectType

getUniqueKeys()

Return an array with unique keys for each array.

protected getUniqueKeys(array<string|int, mixed> $section) : array<string|int, mixed>
Parameters
$section : array<string|int, mixed>
Return values
array<string|int, mixed>

getUniqueSectionType()

Return an unique section type without repeat.

protected getUniqueSectionType(string $configName, string $sectionName, array<string|int, mixed> $sectionFields) : ObjectType
Parameters
$configName : string
$sectionName : string
$sectionFields : array<string|int, mixed>
Return values
ObjectType

isCorrectConfigForbiddenConfigurations()

protected isCorrectConfigForbiddenConfigurations(string $configName) : bool
Parameters
$configName : string
Return values
bool

isCorrectForbiddenConfigurations()

protected isCorrectForbiddenConfigurations() : bool
Return values
bool

isCorrectSectionForbiddenConfigurations()

protected isCorrectSectionForbiddenConfigurations(string $configName, string $sectionName) : bool
Parameters
$configName : string
$sectionName : string
Return values
bool

isRegexString()

protected isRegexString(string $string) : bool
Parameters
$string : string
Return values
bool

Search results