* @param string $subject quoted column name
* @param string $message quoted column name
*/
- function __construct(string $table = "email", string $id = "id", string $title = "subject", string $subject = "subject", string $message = "message") {
+ function __construct($table = "email", $id = "id", $title = "subject", $subject = "subject", $message = "message") {
$this->table = $table;
$this->id = $id;
$this->title = $title;
/**
* @param bool $sameOrigin allow running from the same origin only
*/
- function __construct(bool $sameOrigin = false) {
+ function __construct($sameOrigin = false) {
$this->sameOrigin = $sameOrigin;
}
* @param string $from find these characters ...
* @param string $to ... and replace them by these
*/
- function __construct(string $from = 'áčďéěíňóřšťúůýž', string $to = 'acdeeinorstuuyz') {
+ function __construct($from = 'áčďéěíňóřšťúůýž', $to = 'acdeeinorstuuyz') {
$this->from = $from;
$this->to = $to;
}
* @param string $apiKey The default key is shared with all users and may run out of quota; get your own API key at: https://aistudio.google.com/apikey
* @param string $model Available models: https://ai.google.dev/gemini-api/docs/models#available-models
*/
- function __construct(string $apiKey = 'AIzaSyDWDbPjmvH9_hphsnY_yJGdue42qRMG3do', string $model = "gemini-2.0-flash") {
+ function __construct($apiKey = 'AIzaSyDWDbPjmvH9_hphsnY_yJGdue42qRMG3do', $model = "gemini-2.0-flash") {
$this->apiKey = $apiKey;
$this->model = $model;
}
/**
* @param string $filename defaults to "$database.sql"
*/
- function __construct(string $filename = "") {
+ function __construct($filename = "") {
$this->filename = $filename;
}
/** Print table structure in tabular format
* @param Index[] $indexes data about all indexes on a table
*/
- function tableIndexesPrint(array $indexes): bool {
+ function tableIndexesPrint($indexes): bool {
echo "<table>\n";
echo "<thead><tr><th>" . Adminer\lang('Name') . "<th>" . Adminer\lang('Type') . "<th>" . Adminer\lang('Columns') . "</thead>\n";
foreach ($indexes as $name => $index) {
class AdminerTinymce extends Adminer\Plugin {
protected $path;
- function __construct(string $path = "tiny_mce/tiny_mce.js") {
+ function __construct($path = "tiny_mce/tiny_mce.js") {
$this->path = $path;
}