PHP Class Microweber\Providers\Content\ContentManagerCrud

Inheritance: extends Microweber\Providers\Database\Crud
Datei anzeigen Open project: microweber/microweber

Public Properties

Property Type Description
$app Microweber\Application
$no_cache Boolean that indicates the usage of cache while making queries.
$precached_links
$skip_pages_starting_with_url
$table
$tables

Public Methods

Method Description
__construct ( $app = null )
get ( mixed | array | boolean | string $params = false ) : array | boolean | mixed Get array of content items from the database.
get_by_url ( $url = '', $no_recursive = false )
get_edit_field ( $data, $debug = false )
reorder ( $params )
save ( $data, $delete_the_cache = true )

Private Methods

Method Description
map_params_to_schema ( $params )
set_table_names ( array | boolean $tables = false ) Sets the database table names to use by the class.

Method Details

__construct() public method

public __construct ( $app = null )

get() public method

It accepts string or array as parameters. You can pass any db field name as parameter to filter content by it. All parameter are passed to the get() function You can get and filter content and also order the results by criteria
public get ( mixed | array | boolean | string $params = false ) : array | boolean | mixed
$params mixed | array | boolean | string You can pass parameters as string or as array
return array | boolean | mixed Array of content or false if nothing is found

get_by_url() public method

public get_by_url ( $url = '', $no_recursive = false )

get_edit_field() public method

public get_edit_field ( $data, $debug = false )

reorder() public method

public reorder ( $params )

save() public method

public save ( $data, $delete_the_cache = true )

Property Details

$app public_oe property

public Application,Microweber $app
return Microweber\Application

$no_cache public_oe property

Boolean that indicates the usage of cache while making queries.
public $no_cache

$skip_pages_starting_with_url public_oe static_oe property

public static $skip_pages_starting_with_url

$table public_oe property

public $table

$tables public_oe property

public $tables