PHP Class Elementor\DB

Datei anzeigen Open project: pojome/elementor

Public Methods

Method Description
get_builder ( integer $post_id, string $revision = self::REVISION_PUBLISH ) : array Get & Parse the builder from DB.
get_edit_mode ( $post_id ) : mixed Get edit mode by Page ID
get_plain_editor ( $post_id, $revision = self::REVISION_PUBLISH )
iterate_data ( $data_container, $callback )
remove_draft ( $post_id ) : void Remove draft data from DB.
save_editor ( integer $post_id, array $posted, string $revision = self::REVISION_PUBLISH ) : void Save builder method.
set_edit_mode ( integer $post_id, string $mode = 'builder' ) : void Setup the edit mode per Page ID

Protected Methods

Method Description
_get_json_meta ( $post_id, $key )
_get_new_editor_from_wp_editor ( $post_id )

Private Methods

Method Description
_get_editor_data ( array $data, boolean $with_html_content = false ) : array Sanitize posted data.
_save_plain_text ( $post_id )

Method Details

_get_json_meta() protected method

protected _get_json_meta ( $post_id, $key )

_get_new_editor_from_wp_editor() protected method

protected _get_new_editor_from_wp_editor ( $post_id )

get_builder() public method

Get & Parse the builder from DB.
Since: 1.0.0
public get_builder ( integer $post_id, string $revision = self::REVISION_PUBLISH ) : array
$post_id integer
$revision string
return array

get_edit_mode() public method

Get edit mode by Page ID
Since: 1.0.0
public get_edit_mode ( $post_id ) : mixed
$post_id
return mixed

get_plain_editor() public method

public get_plain_editor ( $post_id, $revision = self::REVISION_PUBLISH )

iterate_data() public method

public iterate_data ( $data_container, $callback )

remove_draft() public method

Remove draft data from DB.
Since: 1.0.0
public remove_draft ( $post_id ) : void
$post_id
return void

save_editor() public method

Save builder method.
Since: 1.0.0
public save_editor ( integer $post_id, array $posted, string $revision = self::REVISION_PUBLISH ) : void
$post_id integer
$posted array
$revision string
return void

set_edit_mode() public method

Setup the edit mode per Page ID
Since: 1.0.0
public set_edit_mode ( integer $post_id, string $mode = 'builder' ) : void
$post_id integer
$mode string
return void