PHP Class Microweber\Providers\Content\ContentManagerCrud

Inheritance: extends Microweber\Providers\Database\Crud
Afficher le fichier Open project: microweber/microweber

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public __construct ( $app = null )

get() public méthode

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
Résultat array | boolean | mixed Array of content or false if nothing is found

get_by_url() public méthode

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

get_edit_field() public méthode

public get_edit_field ( $data, $debug = false )

reorder() public méthode

public reorder ( $params )

save() public méthode

public save ( $data, $delete_the_cache = true )

Property Details

$app public_oe property

public Application,Microweber $app
Résultat 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