2020-10-15 18:42:54 +02:00
|
|
|
---
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `upgrade(): void`
|
|
|
|
|
|
|
|
Signal that scheme was re-parsed.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `getLayer(): int`
|
|
|
|
|
|
|
|
Get TL layer version.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `setLayer(int $layer): self`
|
|
|
|
|
|
|
|
Set TL layer version.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$layer`: `int` TL layer version.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `getMTProtoSchema(): string`
|
|
|
|
|
|
|
|
Get MTProto schema path.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `setMTProtoSchema(string $MTProtoSchema): self`
|
|
|
|
|
|
|
|
Set MTProto schema path.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$MTProtoSchema`: `string` MTProto schema path.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `getAPISchema(): string`
|
|
|
|
|
|
|
|
Get API schema path.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `setAPISchema(string $APISchema): self`
|
|
|
|
|
|
|
|
Set API schema path.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$APISchema`: `string` API schema path.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `getSecretSchema(): string`
|
|
|
|
|
|
|
|
Get secret schema path.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `setSecretSchema(string $secretSchema): self`
|
|
|
|
|
|
|
|
Set secret schema path.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$secretSchema`: `string` Secret schema path.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `getOther(): array`
|
|
|
|
|
|
|
|
Get the value of other.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `setOther(array $other): self`
|
|
|
|
|
|
|
|
Set the value of other.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$other`: `array`
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `hasChanged(): bool`
|
|
|
|
|
|
|
|
Get whether this setting was changed, also applies changes.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|