Fixed bug #14050: CleanUp - CGL format of t3lib files - t3lib_context_directory
[Packages/TYPO3.CMS.git] / t3lib / contextmenu / class.t3lib_contextmenu_action.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2010 TYPO3 Tree Team <http://forge.typo3.org/projects/typo3v4-extjstrees>
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27
28 /**
29 * Context Menu Action
30 *
31 * @author Stefan Galinski <stefan.galinski@gmail.com>
32 * @package TYPO3
33 * @subpackage t3lib
34 */
35 class t3lib_contextmenu_Action {
36 /**
37 * Label
38 *
39 * @var string
40 */
41 protected $label = '';
42
43 /**
44 * Identifier
45 *
46 * @var string
47 */
48 protected $id = '';
49
50 /**
51 * Icon
52 *
53 * @var string
54 */
55 protected $icon = '';
56
57 /**
58 * Class
59 *
60 * @var string
61 */
62 protected $class = '';
63
64 /**
65 * Callback Action
66 *
67 * @var string
68 */
69 protected $callbackAction = '';
70
71 /**
72 * Returns the label
73 *
74 * @return string
75 */
76 public function getLabel() {
77 return $this->label;
78 }
79
80 /**
81 * Sets the label
82 *
83 * @param string $label
84 */
85 public function setLabel($label) {
86 $this->label = $label;
87 }
88
89 /**
90 * Returns the identifier
91 *
92 * @return string
93 */
94 public function getId() {
95 return $this->id;
96 }
97
98 /**
99 * Sets the identifier
100 *
101 * @param string $id
102 */
103 public function setId($id) {
104 $this->id = $id;
105 }
106
107 /**
108 * Returns the class
109 *
110 * @return string
111 */
112 public function getClass() {
113 return $this->class;
114 }
115
116 /**
117 * Sets the class
118 *
119 * @param string $class
120 */
121 public function setClass($class) {
122 $this->class = $class;
123 }
124
125 /**
126 * Returns the callback action
127 *
128 * @return string
129 */
130 public function getCallbackAction() {
131 return $this->callbackAction;
132 }
133
134 /**
135 * Sets the callback action
136 *
137 * @param string $callbackAction
138 */
139 public function setCallbackAction($callbackAction) {
140 $this->callbackAction = $callbackAction;
141 }
142 }