PHP Class ezjscServerFunctionsNode

Inheritance: extends ezjscServerFunctions
Show file Open project: ezsystems/ezpublish-legacy

Public Methods

Method Description
load ( mixed $args ) : array Returns a node data for given object / node id
subTree ( mixed $args ) : array Returns a subtree node items for given parent node
updatePriority ( mixed $args ) : array Updating priority sorting for given node

Protected Methods

Method Description
sortMap ( string $sort ) : string A helper function which maps sort keys from encoded JSON node to supported values

Method Details

load() public static method

Following parameters are supported: ezjscnode::load::embed_id[::attribute[::load_image_size]] eg: ezjscnode::load::ezobject_46::image::large eg: ezjscnode::load::eznode_44::summary eg: ezjscnode::load::44::summary (44 is in this case node id)
Since: 1.2
public static load ( mixed $args ) : array
$args mixed
return array

sortMap() protected static method

A helper function which maps sort keys from encoded JSON node to supported values
Since: 1.2
protected static sortMap ( string $sort ) : string
$sort string
return string

subTree() public static method

Following parameters are supported: ezjscnode::subtree::parent_node_id::limit::offset::sort::order
Since: 1.2
public static subTree ( mixed $args ) : array
$args mixed
return array

updatePriority() public static method

Updating priority sorting for given node
Since: 1.2
public static updatePriority ( mixed $args ) : array
$args mixed
return array