Page.php
49 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Kirki\App\Supports\Facades; |
| 4 | |
| 5 | defined( 'ABSPATH' ) || exit; |
| 6 | |
| 7 | use Kirki\App\Managers\PageManager; |
| 8 | use Kirki\Framework\Collections\Collection; |
| 9 | use Kirki\Framework\Facade; |
| 10 | /** |
| 11 | * Page Support Facade |
| 12 | * @method static void save_style_blocks(int $page_id, $data = [], $staging_version = false) |
| 13 | * @method static void save_deprecated_global_style_blocks(int $page_id, $data = [], $staging_version = false) |
| 14 | * @method static void save_used_global_style_block_ids(int $page_id, $data = [], $staging_version = false) |
| 15 | * @method static void save_used_style_block_ids(int $page_id, $data = [], $staging_version = false) |
| 16 | * @method static void save_used_font_list(int $page_id, $data = [], $staging_version = false) |
| 17 | * @method static void save_blocks(int $page_id, $data = [], $staging_version = false) |
| 18 | * @method static void save_editor_mode(int $page_id) |
| 19 | * @method static bool is_kirki_editor_mode(int $page_id) |
| 20 | * @method static array|false set_last_edited_datetime_of_stage_version(int $page_id, bool $has_legacy_global_style = false) |
| 21 | * @method static int get_most_recent_stage_version(int $page_id, $stage_must = true, $restoring = false, $old_version = false) |
| 22 | * @method static Collection get_all_staged_versions(int $page_id, bool $create_if_empty = true) |
| 23 | * @method static Collection publish_stage_version(int $page_id, bool $has_legacy_global_style = false) |
| 24 | * @method static string get_staged_meta_name(string $meta_name, int $page_id, $stage_version = false, $stage_only = false) |
| 25 | * @method static array|null get_published_staged_version_info(int $page_id) |
| 26 | * @method static int|false get_published_stage_version(int $page_id) |
| 27 | * @method static array get_page_styleblocks(int $page_id, $stage_version = false) |
| 28 | * @method static mixed get_global_data_using_key(string $key) |
| 29 | * @method static array merge_style_blocks($a, $b) |
| 30 | * @method static string get_variable_mode($page) |
| 31 | * @method static array get_all_block_post_ids() |
| 32 | * @method static int|null get_most_recent_unpublished_stage_version(int $page_id) |
| 33 | * @method static int get_front_page_id() |
| 34 | * @method static bool is_front_page(int $page_id) |
| 35 | * @method static Collection rename_stage_version(int $page_id, int $stage_version, string $new_name) |
| 36 | * @method static int restore_stage_version(int $page_id, int $old_version_id) |
| 37 | * @method static Collection remove_stage_version(int $page_id, int $stage_version) |
| 38 | * @method static array|null get_staged_version_info(int $page_id, int $stage_version) |
| 39 | * |
| 40 | * @see \Kirki\App\Managers\PageManager |
| 41 | */ |
| 42 | class Page extends Facade |
| 43 | { |
| 44 | public static function get_accessor() |
| 45 | { |
| 46 | return PageManager::class; |
| 47 | } |
| 48 | } |
| 49 |