PHP Класс Microweber\Providers\Content\ContentManagerCrud

Наследование: extends Microweber\Providers\Database\Crud
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$app Microweber\Application
$no_cache Boolean that indicates the usage of cache while making queries.
$precached_links
$skip_pages_starting_with_url
$table
$tables

Открытые методы

Метод Описание
__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 )

Приватные методы

Метод Описание
map_params_to_schema ( $params )
set_table_names ( array | boolean $tables = false ) Sets the database table names to use by the class.

Описание методов

__construct() публичный Метод

public __construct ( $app = null )

get() публичный Метод

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
Результат array | boolean | mixed Array of content or false if nothing is found

get_by_url() публичный Метод

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

get_edit_field() публичный Метод

public get_edit_field ( $data, $debug = false )

reorder() публичный Метод

public reorder ( $params )

save() публичный Метод

public save ( $data, $delete_the_cache = true )

Описание свойств

$app публичное свойство

public Application,Microweber $app
Результат Microweber\Application

$no_cache публичное свойство

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

$skip_pages_starting_with_url публичное статическое свойство

public static $skip_pages_starting_with_url

$table публичное свойство

public $table

$tables публичное свойство

public $tables