Command.php
1 month ago
DB.php
1 month ago
Date.php
2 weeks ago
Event.php
2 weeks ago
File.php
1 month ago
Guard.php
1 month ago
Http.php
1 month ago
Log.php
1 month ago
Option.php
1 month ago
Schema.php
1 month ago
Schema.php
42 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Facade proxy for SchemaManager database schema operations. |
| 5 | * Exposes create, drop, and foreign key constraint toggles. |
| 6 | * Used by migrations to define and modify tables. |
| 7 | * |
| 8 | * @package Framework |
| 9 | * @subpackage Supports\Facades |
| 10 | * @since 1.0.0 |
| 11 | */ |
| 12 | namespace Kirki\Framework\Supports\Facades; |
| 13 | |
| 14 | \defined('ABSPATH') || exit; |
| 15 | use Kirki\Framework\Facade; |
| 16 | /** |
| 17 | * Facade proxy for SchemaManager database schema operations. |
| 18 | * |
| 19 | * @method static void create(string $table, \Closure $callback) |
| 20 | * @method static void drop_if_exists(string $table) |
| 21 | * @method static void drop(string $table) |
| 22 | * @method static void enabled_checking_foreign_key_constraints() |
| 23 | * @method static void disabled_checking_foreign_key_constraints() |
| 24 | * @method static array get_column_listing(string $table) |
| 25 | * @method static array get_columns(string $table) |
| 26 | * @see \Framework\Database\Schema\SchemaManager |
| 27 | */ |
| 28 | class Schema extends Facade |
| 29 | { |
| 30 | /** |
| 31 | * Get the accessor. |
| 32 | * |
| 33 | * @return mixed |
| 34 | * |
| 35 | * @since 1.0.0 |
| 36 | */ |
| 37 | public static function get_accessor() |
| 38 | { |
| 39 | return 'schema'; |
| 40 | } |
| 41 | } |
| 42 |