PHP Class Microweber\Providers\FieldsManager

Show file Open project: microweber/microweber

Public Properties

Property Type Description
$app
$table
$table_values
$tables

Public Methods

Method Description
__construct ( $app = null )
decode_array_vals ( $it )
delete ( $id )
get ( $table, $id, $return_full = false, $field_for = false, $debug = false, $field_type = false, $for_session = false )
get_all ( $params )
get_by_id ( $field_id )
get_value ( $content_id, $field_name, $return_full = false, $table = 'content' )
get_values ( $custom_field_id )
make ( string $field_id, string $field_type = 'text', array $settings = false ) make_field.
make_default ( $rel, $rel_id, $fields_csv_str )
make_field ( $field_id, $field_type = 'text', $settings = false )
names_for_table ( string $table ) names_for_table.
reorder ( $data )
save ( $data )
unify_params ( $data )

Private Methods

Method Description
_decode_options ( $data )
_encode_options ( $data )

Method Details

__construct() public method

public __construct ( $app = null )

decode_array_vals() public method

public decode_array_vals ( $it )

delete() public method

public delete ( $id )

get() public method

public get ( $table, $id, $return_full = false, $field_for = false, $debug = false, $field_type = false, $for_session = false )

get_all() public method

public get_all ( $params )

get_by_id() public method

public get_by_id ( $field_id )

get_value() public method

public get_value ( $content_id, $field_name, $return_full = false, $table = 'content' )

get_values() public method

public get_values ( $custom_field_id )

make() public method

make_field.
Author: Microweber
public make ( string $field_id, string $field_type = 'text', array $settings = false )
$field_id string
$field_type string
$settings array

make_default() public method

public make_default ( $rel, $rel_id, $fields_csv_str )

make_field() public method

public make_field ( $field_id, $field_type = 'text', $settings = false )

names_for_table() public method

names_for_table.
Author: Microweber
public names_for_table ( string $table )
$table string

reorder() public method

public reorder ( $data )

save() public method

public save ( $data )

unify_params() public method

public unify_params ( $data )

Property Details

$app public property

public $app

$table public property

public $table

$table_values public property

public $table_values

$tables public property

public $tables