Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
common
modules
personalisation
helpers
PersonalisationAttributeHelper.php
1
<?php
2
/**
3
* Gentics Portal.Node PHP
4
* Author & Copyright (c) by Gentics Software GmbH
5
* sales@gentics.com
6
* http://www.gentics.com
7
* Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8
* You must not use this software without a valid license agreement.
9
*
10
*/
11
class
PersonalisationAttributeHelper
12
{
13
14
/**
15
* Return tree in format for javascript tree plugin
16
*
17
* @static
18
* @return array
19
*/
20
public
static
function
getTreeJs
()
21
{
22
$tree =
PersonalisationAttribute::getTree
();
23
return
$tree[
'item'
];
24
}
25
26
/**
27
* Return tree in format for javascript tree plugin
28
*
29
* @param integer $userId id of user
30
*
31
* @return array
32
*/
33
public
static
function
getTreeWithUserStateJs
($userId)
34
{
35
$tree =
PersonalisationAttribute::getTreeWithUserState
($userId);
36
return
$tree[
'item'
];
37
}
38
}
Generated on Thu Jun 20 2013 14:45:15 for Gentics Portal.Node PHP API by
1.8.1.2