Documentation

JsonContentManager
in package
implements JsonAdapter

JSON Adapter for ContentManager

Tags
copyright

Cloudrexx AG

author

Michael Ritter michael.ritter@comvation.com

subpackage

core_json

Table of Contents

Interfaces

JsonAdapter
JSON Adapter for JSON requests

Methods

copy()  : mixed
Copies the complete tree from the default language to another and copies the pages content
getAccess()  : array<string|int, mixed>
Returns an array containing the permissions of the current user The array has the following keys with boolean values: global If this is false, cannot do anything in the content manager delete If this is true, the user can delete pages and nodes create If this is true, the user can create pages and nodes access If this is true, the user can change access to pages publish If this is true, the user can publish or decline drafts
getAccessableMethods()  : array<string|int, mixed>
Returns an array of method names accessable from a JSON request
getDefaultPermissions()  : object
Returns default permission as object
getMessagesAsString()  : string
Returns all messages as string
getName()  : string
Returns the internal name used as identifier for this adapter
link()  : mixed
Copies the complete tree from the default language to another and sets content type to fallback
saveToggleStatuses()  : mixed
Saves the toggle statuses in the session.
performLanguageAction()  : mixed

Methods

copy()

Copies the complete tree from the default language to another and copies the pages content

public copy(array<string|int, mixed> $params) : mixed
Parameters
$params : array<string|int, mixed>

Array containing target language (array("get"=>array("to"=>{target}))

getAccess()

Returns an array containing the permissions of the current user The array has the following keys with boolean values: global If this is false, cannot do anything in the content manager delete If this is true, the user can delete pages and nodes create If this is true, the user can create pages and nodes access If this is true, the user can change access to pages publish If this is true, the user can publish or decline drafts

public getAccess() : array<string|int, mixed>
Tags
todo

Move this method to the ContentManager class and use it everywhere

Return values
array<string|int, mixed>

Array containing the permissions of the current user

getAccessableMethods()

Returns an array of method names accessable from a JSON request

public getAccessableMethods() : array<string|int, mixed>
Return values
array<string|int, mixed>

List of method names

getDefaultPermissions()

Returns default permission as object

public getDefaultPermissions() : object
Return values
object

getMessagesAsString()

Returns all messages as string

public getMessagesAsString() : string
Return values
string

HTML encoded error messages

getName()

Returns the internal name used as identifier for this adapter

public getName() : string
Return values
string

Name of this adapter

Copies the complete tree from the default language to another and sets content type to fallback

public link(array<string|int, mixed> $params) : mixed
Parameters
$params : array<string|int, mixed>

Array containing target language (array("get"=>array("to"=>{target}))

saveToggleStatuses()

Saves the toggle statuses in the session.

public saveToggleStatuses(array<string|int, mixed> $params) : mixed
Parameters
$params : array<string|int, mixed>

Client parameters

Tags
author

Yannic Tschanz yannic.tschanz@comvation.com

performLanguageAction()

private performLanguageAction(mixed $action, mixed $params) : mixed
Parameters
$action : mixed
$params : mixed

        
On this page

Search results