Documentation

JsonNode
in package
implements JsonAdapter

JSON Adapter for Cx\Core\ContentManager\Model\Entity\Node

Tags
copyright

Cloudrexx AG

author

Florian Schuetz florian.schuetz@comvation.com

author

Michael Ritter michael.ritter@comvation.com

subpackage

core_json

Table of Contents

Interfaces

JsonAdapter
JSON Adapter for JSON requests

Properties

$deleteBuffer  : array<string|int, mixed>
List of IDs of deleted nodes
$em  : EntityManager
Reference to the Doctine EntityManager
$fallbacks  : array<string|int, mixed>
List of fallback languages
$messages  : array<string|int, mixed>
List of messages
$nodeRepo  : NodeRepository
Reference to the Doctrine NodeRepo
$pageRepo  : PageRepository
Reference to the Doctrine PageRepo

Methods

__construct()  : mixed
Constructor
copy()  : mixed
delete()  : mixed
Deletes a node
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
getPageTitlesTree()  : array<string|int, mixed>
Gets the page titles of all languages.
getTree()  : string
Returns the Node tree rendered for JS
move()  : mixed
Moves a node.
multipleDelete()  : mixed
Deletes multiple nodes.
buildPageTitlesTree()  : mixed
Builds a tree with all page titles.
clearCache()  : mixed
Drops the complete output cache
renderTree()  : string
Renders a jsTree friendly representation of the Node tree (in json)
tree_to_jstree_array()  : string
Converts a tree level to JSON

Properties

$deleteBuffer

List of IDs of deleted nodes

protected array<string|int, mixed> $deleteBuffer = array()

$em

Reference to the Doctine EntityManager

private EntityManager $em = null

$fallbacks

List of fallback languages

private array<string|int, mixed> $fallbacks = array()

lang=>fallback lang

$messages

List of messages

private array<string|int, mixed> $messages

Methods

copy()

public copy(mixed $arguments) : mixed
Parameters
$arguments : mixed

delete()

Deletes a node

public delete(array<string|int, mixed> $arguments[, mixed $flush = true ]) : mixed
Parameters
$arguments : array<string|int, mixed>

Arguments passed from JsonData

$flush : mixed = true

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

getPageTitlesTree()

Gets the page titles of all languages.

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

$tree

getTree()

Returns the Node tree rendered for JS

public getTree(mixed $parameters) : string
Parameters
$parameters : mixed
Return values
string

JSON data

move()

Moves a node.

public move(array<string|int, mixed> $arguments) : mixed

The following arguments are used: id = id of the moved node ref = id of the new parent node position = new position of id as ref's Nth child

Data source is in /lib/javascript/jquery/jstree/contrexx.js

Parameters
$arguments : array<string|int, mixed>

Arguments passed from JsonData

multipleDelete()

Deletes multiple nodes.

public multipleDelete(mixed $params) : mixed
Parameters
$params : mixed

buildPageTitlesTree()

Builds a tree with all page titles.

protected buildPageTitlesTree(array<string|int, mixed> $root) : mixed
Parameters
$root : array<string|int, mixed>

clearCache()

Drops the complete output cache

protected clearCache() : mixed

renderTree()

Renders a jsTree friendly representation of the Node tree (in json)

private renderTree([mixed $rootNodeId = 0 ][, mixed $recursive = false ]) : string
Parameters
$rootNodeId : mixed = 0
$recursive : mixed = false
Return values
string

JSON data

tree_to_jstree_array()

Converts a tree level to JSON

private tree_to_jstree_array(Node $root[, mixed $flat = false ][, mixed &$actions = null ]) : string
Parameters
$root : Node

Root node of the current level

$flat : mixed = false
$actions : mixed = null
Return values
string

JSON data


        
On this page

Search results