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

159 lines
2.6 KiB
Markdown

---
title: danog\MadelineProto\Settings\TLSchema: TL schema settings.
description:
---
# `danog\MadelineProto\Settings\TLSchema`
[Back to index](../../../index.md)
> 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](https://phpdoc.daniil.it)
### `upgrade(): void`
Signal that scheme was re-parsed.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `getLayer(): int`
Get TL layer version.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `setLayer(int $layer): self`
Set TL layer version.
Parameters:
* `$layer`: `int` TL layer version.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `getMTProtoSchema(): string`
Get MTProto schema path.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `setMTProtoSchema(string $MTProtoSchema): self`
Set MTProto schema path.
Parameters:
* `$MTProtoSchema`: `string` MTProto schema path.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `getAPISchema(): string`
Get API schema path.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `setAPISchema(string $APISchema): self`
Set API schema path.
Parameters:
* `$APISchema`: `string` API schema path.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `getSecretSchema(): string`
Get secret schema path.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `setSecretSchema(string $secretSchema): self`
Set secret schema path.
Parameters:
* `$secretSchema`: `string` Secret schema path.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `getOther(): array`
Get the value of other.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `setOther(array $other): self`
Set the value of other.
Parameters:
* `$other`: `array`
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `hasChanged(): bool`
Get whether this setting was changed, also applies changes.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)