CommonDBTM::getSpecificMassiveActions PHP Method

getSpecificMassiveActions() public method

Get the specific massive actions
public getSpecificMassiveActions ( $checkitem = NULL ) : an
$checkitem link item to check right (default NULL)
return an array of massive actions
    function getSpecificMassiveActions($checkitem = NULL)
    {
        // test if current profile has rights to unlock current item type
        if (Session::haveRight(static::$rightname, UNLOCK)) {
            return array('ObjectLock' . MassiveAction::CLASS_ACTION_SEPARATOR . 'unlock' => _x('button', 'Unlock items'));
        }
        return array();
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @see CommonDBTM::getSpecificMassiveActions()
  **/
 function getSpecificMassiveActions($checkitem = NULL, $is_deleted = false)
 {
     $isadmin = static::canUpdate();
     $actions = parent::getSpecificMassiveActions($checkitem);
     if ($isadmin && !$is_deleted) {
         $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'sendmail'] = _x('button', 'Send');
     }
     return $actions;
 }
All Usage Examples Of CommonDBTM::getSpecificMassiveActions
CommonDBTM