wCMF
3.6
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Groups
Pages
class.ResourceTreeController.php
Go to the documentation of this file.
1
<?php
2
/**
3
* wCMF - wemove Content Management Framework
4
* Copyright (C) 2005-2014 wemove digital solutions GmbH
5
*
6
* Licensed under the terms of any of the following licenses
7
* at your choice:
8
*
9
* - GNU Lesser General Public License (LGPL)
10
* http://www.gnu.org/licenses/lgpl.html
11
* - Eclipse Public License (EPL)
12
* http://www.eclipse.org/org/documents/epl-v10.php
13
*
14
* See the license.txt file distributed with this work for
15
* additional information.
16
*
17
* $Id: class.ResourceTreeController.php 1462 2014-02-04 23:52:27Z iherwig $
18
*/
19
require_once(BASE.
"wcmf/application/controller/class.TreeViewController.php"
);
20
require_once(BASE.
"wcmf/lib/presentation/class.InternalLink.php"
);
21
22
/**
23
* @class ResourceTreeController
24
* @ingroup Controller
25
* @brief ResourceTreeController allows to browse cms content in a tree view
26
* and set links when selecting a resource. It works together with
27
* resourcetree.tpl.
28
*
29
* <b>Input actions:</b>
30
* - see TreeViewController
31
*
32
* <b>Output actions:</b>
33
* - see TreeViewController
34
*
35
* @param[in,out] fieldName The name of the input field, to which the selected value should be assigned
36
*
37
* @author ingo herwig <ingo@wemove.com>
38
*/
39
class
ResourceTreeController
extends
TreeViewController
40
{
41
/**
42
* @see Controller::executeKernel()
43
*/
44
function
executeKernel
()
45
{
46
$result = parent::executeKernel();
47
if
($this->
hasView
())
48
$this->_response->setValue(
'fieldName'
, $this->_request->getValue(
'fieldName'
));
49
return
$result;
50
}
51
/**
52
* @see TreeViewController::getClickAction()
53
*/
54
function
getClickAction
(&$node)
55
{
56
return
"javascript:setUrl('"
.str_replace(
"'"
,
"\'"
,
InternalLink::makeLink
($node->getOID())).
"');"
;
57
}
58
}
59
?>
ResourceTreeController\getClickAction
getClickAction(&$node)
Definition:
class.ResourceTreeController.php:54
ResourceTreeController
ResourceTreeController allows to browse cms content in a tree view and set links when selecting a res...
Definition:
class.ResourceTreeController.php:39
TreeViewController
TreeViewController is used to visualize cms data in a tree view.
Definition:
class.TreeViewController.php:43
InternalLink\makeLink
makeLink($oid)
Definition:
class.InternalLink.php:37
TreeViewController\hasView
hasView()
Definition:
class.TreeViewController.php:48
ResourceTreeController\executeKernel
executeKernel()
Definition:
class.ResourceTreeController.php:44
wcmf3.x
SVN
framework
wcmf
application
controller
class.ResourceTreeController.php
Generated on Wed Feb 5 2014 10:51:04 for wCMF by
1.8.6