MadelineProtoDocs/docs/PHP/danog/MadelineProto/Settings/TLSchema.md

2.6 KiB

title: danog\MadelineProto\Settings\TLSchema: TL schema settings. description:

danog\MadelineProto\Settings\TLSchema

Back to index

Author: Daniil Gentili daniil@daniil.it

TL schema settings.

Method list:

  • needsUpgrade(): bool
  • upgrade(): void
  • getLayer(): int
  • setLayer(int $layer): self
  • getMTProtoSchema(): string
  • setMTProtoSchema(string $MTProtoSchema): self
  • getAPISchema(): string
  • setAPISchema(string $APISchema): self
  • getSecretSchema(): string
  • setSecretSchema(string $secretSchema): self
  • getOther(): array
  • setOther(array $other): self
  • hasChanged(): bool

Methods:

needsUpgrade(): bool

Returns whether the TL parser should re-parse the TL schemes.


Generated by danog/phpdoc

upgrade(): void

Signal that scheme was re-parsed.


Generated by danog/phpdoc

getLayer(): int

Get TL layer version.


Generated by danog/phpdoc

setLayer(int $layer): self

Set TL layer version.

Parameters:

  • $layer: int TL layer version.

Generated by danog/phpdoc

getMTProtoSchema(): string

Get MTProto schema path.


Generated by danog/phpdoc

setMTProtoSchema(string $MTProtoSchema): self

Set MTProto schema path.

Parameters:

  • $MTProtoSchema: string MTProto schema path.

Generated by danog/phpdoc

getAPISchema(): string

Get API schema path.


Generated by danog/phpdoc

setAPISchema(string $APISchema): self

Set API schema path.

Parameters:

  • $APISchema: string API schema path.

Generated by danog/phpdoc

getSecretSchema(): string

Get secret schema path.


Generated by danog/phpdoc

setSecretSchema(string $secretSchema): self

Set secret schema path.

Parameters:

  • $secretSchema: string Secret schema path.

Generated by danog/phpdoc

getOther(): array

Get the value of other.


Generated by danog/phpdoc

setOther(array $other): self

Set the value of other.

Parameters:

  • $other: array

Generated by danog/phpdoc

hasChanged(): bool

Get whether this setting was changed, also applies changes.


Generated by danog/phpdoc


Generated by danog/phpdoc