TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\ContextMenu\ContextMenuAction Class Reference
Inheritance diagram for TYPO3\CMS\Backend\ContextMenu\ContextMenuAction:
t3lib_contextmenu_Action

Public Member Functions

 getLabel ()
 
 setLabel ($label)
 
 getId ()
 
 setId ($id)
 
 getIcon ()
 
 setIcon ($icon)
 
 getClass ()
 
 setClass ($class)
 
 getCallbackAction ()
 
 setCallbackAction ($callbackAction)
 
 getType ()
 
 setType ($type)
 
 getChildActions ()
 
 setChildActions (\TYPO3\CMS\Backend\ContextMenu\ContextMenuActionCollection $actions)
 
 hasChildActions ()
 
 setCustomAttributes (array $customAttributes)
 
 getCustomAttributes ()
 
 toArray ()
 

Protected Attributes

 $label = ''
 
 $id = ''
 
 $icon = ''
 
 $class = ''
 
 $callbackAction = ''
 
 $type = ''
 
 $childActions = NULL
 
 $customAttributes = array()
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Context Menu Action

Author
Stefan Galinski stefa.nosp@m.n.ga.nosp@m.linsk.nosp@m.i@gm.nosp@m.ail.c.nosp@m.om

Definition at line 22 of file ContextMenuAction.php.

Member Function Documentation

◆ getCallbackAction()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::getCallbackAction ( )

Returns the callback action

Returns
string

Definition at line 158 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$callbackAction.

Referenced by TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\toArray().

◆ getChildActions()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::getChildActions ( )

Returns the child actions

Returns

Definition at line 195 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$childActions.

◆ getClass()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::getClass ( )

Returns the class

Returns
string

Definition at line 140 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$class.

Referenced by TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\toArray().

◆ getCustomAttributes()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::getCustomAttributes ( )

Returns the custom attributes

Returns
array

Definition at line 236 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$customAttributes.

Referenced by TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\toArray().

◆ getIcon()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::getIcon ( )

Returns the icon

Returns
string

Definition at line 121 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$icon.

Referenced by TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\toArray().

◆ getId()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::getId ( )

Returns the identifier

Returns
string

Definition at line 103 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$id.

Referenced by TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\toArray().

◆ getLabel()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::getLabel ( )

Returns the label

Returns
string

Definition at line 85 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$label.

Referenced by TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\toArray().

◆ getType()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::getType ( )

Returns the type

Returns
string

Definition at line 176 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$type.

Referenced by TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\toArray().

◆ hasChildActions()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::hasChildActions ( )

Returns TRUE if the action has child actions

Returns
boolean

Definition at line 214 of file ContextMenuAction.php.

Referenced by TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\toArray().

◆ setCallbackAction()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::setCallbackAction (   $callbackAction)

Sets the callback action

Parameters
string$callbackAction

Definition at line 167 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$callbackAction.

◆ setChildActions()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::setChildActions ( \TYPO3\CMS\Backend\ContextMenu\ContextMenuActionCollection  $actions)

Sets the child actions

Parameters
\TYPO3\CMS\Backend\ContextMenu\ContextMenuActionCollection$actions
Returns
void

Definition at line 205 of file ContextMenuAction.php.

◆ setClass()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::setClass (   $class)

Sets the class

Parameters
string$class

Definition at line 149 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$class.

◆ setCustomAttributes()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::setCustomAttributes ( array  $customAttributes)

Sets the custom attributes

Parameters
array$customAttributes
Returns
void

Definition at line 227 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$customAttributes.

◆ setIcon()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::setIcon (   $icon)

Sets the icon

Parameters
string$icon
Returns
void

Definition at line 131 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$icon.

◆ setId()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::setId (   $id)

Sets the identifier

Parameters
string$id

Definition at line 112 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$id.

◆ setLabel()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::setLabel (   $label)

Sets the label

Parameters
string$label

Definition at line 94 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$label.

◆ setType()

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::setType (   $type)

Sets the type

Parameters
string$type
Returns
void

Definition at line 186 of file ContextMenuAction.php.

References TYPO3\CMS\Backend\ContextMenu\ContextMenuAction\$type.

◆ toArray()

Member Data Documentation

◆ $callbackAction

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::$callbackAction = ''
protected

◆ $childActions

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::$childActions = NULL
protected

◆ $class

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::$class = ''
protected

◆ $customAttributes

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::$customAttributes = array()
protected

◆ $icon

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::$icon = ''
protected

◆ $id

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::$id = ''
protected

◆ $label

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::$label = ''
protected

◆ $type

TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::$type = ''
protected