%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 54.36.91.62 / Your IP : 216.73.217.162 Web Server : Apache System : Linux webm002.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : wellingtpa ( 97533) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wellingtpa/www/wp-content/plugins/elementor/modules/mcp/abilities/ |
Upload File : |
<?php
namespace Elementor\Modules\Mcp\Abilities;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class Ability_Definition {
public string $label;
public string $description;
public string $category;
public array $output_schema;
public array $meta;
/** @var callable */
public $permission_callback;
public array $input_schema;
public function __construct(
string $label,
string $description,
string $category,
array $output_schema,
array $meta,
callable $permission_callback,
array $input_schema = []
) {
$this->label = $label;
$this->description = $description;
$this->category = $category;
$this->output_schema = $output_schema;
$this->meta = $meta;
$this->permission_callback = $permission_callback;
$this->input_schema = $input_schema;
}
public function to_array(): array {
$definition = [
'label' => $this->label,
'description' => $this->description,
'category' => $this->category,
'output_schema' => $this->output_schema,
'meta' => $this->meta,
'permission_callback' => $this->permission_callback,
];
if ( ! empty( $this->input_schema ) ) {
$definition['input_schema'] = $this->input_schema;
}
return $definition;
}
}