17 $this->iconType = $type;
18 if ( $this->iconType ==
'large' )
30 $this->controlWidth = $width;
31 $this->controlHeight = $height;
35 private function _getControl(
$label, $image, $module =
'main',
$action =
'', $item = NULL, $args = NULL)
37 $actionURL = $this->manager->getActionURL($module,
$action, $item, $args);
40 $control->addAttribute(
'title',
$label);
42 if( $this->iconType !=
'large')
44 $control->setImageType(
'icon');
47 if($this->controlWidth)
52 if($this->controlHeight)
63 $control = $this->_getControl(
$label, $image, $module,
$action, $item, $args);
70 $control = $this->_getControl(
$label, $image, $module,
$action, $item, $args);
77 if ( $this->manager->perms->checkAccess($transaction, $access) )
86 if ( $this->manager->checkAccess($transaction, $access) )
88 $this->insertAction($pos,
$label, $image, $module,
$action, $item, $args);
94 if ( $this->manager->perms->checkAccess($transaction, $access,
false,
true) )
103 if ( $this->manager->checkAccess($transaction, $access,
false,
true) )
105 $this->insertAction($pos,
$label, $image, $module,
$action, $item, $args);
addUserAction($transaction, $access, $label, $image, $module='main', $action='', $item='', $args=NULL)
addAction($label, $image, $module='main', $action='', $item=NULL, $args=NULL)
setControlSize($width, $height)
__construct($name='', $caption='', $controls=NULL, $close='', $icon='', $iconType='large')
insertGroupAction($pos, $transaction, $access, $label, $image, $module='main', $action='', $item='', $args=NULL)
insertUserAction($pos, $transaction, $access, $label, $image, $module='main', $action='', $item='', $args=NULL)
addGroupAction($transaction, $access, $label, $image, $module='main', $action='', $item='', $args=NULL)
setIconType($type='large')
InsertAction($pos, $label, $image, $module='main', $action='', $item=NULL, $args=NULL)
insertControl($pos, $control=null, $width='', $float='left')
addControl($control, $width='', $float='left')