Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
Williamdes /
MariaDBMySQLKBS /
Delete
Unzip
Name
Size
Permission
Date
Action
KBDocumentation.php
1.33
KB
-rw-r--r--
2022-12-06 13:49
KBEntry.php
2.98
KB
-rw-r--r--
2022-12-06 13:49
KBException.php
130
B
-rw-r--r--
2022-12-06 13:49
Search.php
4.91
KB
-rw-r--r--
2022-12-06 18:15
SlimData.php
4.54
KB
-rw-r--r--
2022-12-06 13:49
autoload.php
851
B
-rw-r--r--
2022-12-06 18:15
Save
Rename
<?php declare(strict_types = 1); namespace Williamdes\MariaDBMySQLKBS; use stdClass; use JsonSerializable; class KBEntry extends stdClass implements JsonSerializable { /** * The name of the variable * * @var string */ private $name; /** * Type of variable * * @var string|null */ private $type = null; /** * Is dynamic ? * * @var bool|null */ private $dynamic = null; /** * Documentations * * @var KBDocumentation[] */ private $docs = null; /** * Create a KBEntry object * * @param string $name The name of the variable * @param string|null $type Type of variable * @param bool|null $dynamic Is dynamic ? */ public function __construct(string $name, ?string $type, ?bool $dynamic) { $this->name = $name; if ($type !== null) { $this->type = $type; } if ($dynamic !== null) { $this->dynamic = $dynamic; } } /** * Get the variable name * * @return string */ public function getName(): string { return $this->name; } /** * Is the variable dynamic * * @return bool|null */ public function isDynamic(): ?bool { return $this->dynamic; } /** * Get the variable type * * @return string|null */ public function getType(): ?string { return $this->type; } /** * Variable has documentations * * @return bool */ public function hasDocumentations(): bool { if ($this->docs === null) { return false; } else { return count($this->docs) > 0; } } /** * Get all documentations * * @return KBDocumentation[] */ public function getDocumentations(): array { return $this->docs; } /** * Add documentation link * * @param string $url The URL * @param string|null $anchor The anchor * @return KBDocumentation */ public function addDocumentation(string $url, ?string $anchor = null): KBDocumentation { $this->url = $url; if ($this->docs === null) { $this->docs = []; } $kbd = new KBDocumentation($url, $anchor); $this->docs[] = $kbd; return $kbd; } /** * Used for json_encode function * This can seem useless, do not remove it. * * @return array<string,KBDocumentation[]|bool|string> */ public function jsonSerialize(): array { $outObj = []; $outObj['name'] = $this->name; if ($this->type !== null) { $outObj['type'] = $this->type; } if ($this->dynamic !== null) { $outObj['dynamic'] = $this->dynamic; } if ($this->docs !== null) { $outObj['docs'] = $this->docs; } return $outObj; } }