@param array $aParameter

@return TPkgRunFrontendActionStatus
320127
public function runAction($aParameter)
    {
        $oStatus = new TPkgRunFrontendActionStatus();
        if (isset($aParameter['email']) && isset($aParameter['order_id']) && !empty($aParameter['email']) && !empty($aParameter['order_id'])) {
            $oOrder = TdbShopOrder::GetNewInstance();
            if ($oOrder->Load($aParameter['order_id'])) {
                $bSuccess = $oOrder->SendOrderNotification($aParameter['email']);
                if ($bSuccess) {
                    $oStatus->sMessage = TGlobal::Translate('chameleon_system_shop.orders.msg_order_confirm_sent', array('%mail%' => $aParameter['email']));
                    $oStatus->sMessageType = 'MESSAGE';
                } else {
                    $oStatus->sMessage = TGlobal::Translate('chameleon_system_shop.orders.error_sending_confirm_mail', array('%error%' => $bSuccess));
                    $oStatus->sMessageType = 'ERROR';
                }
            } else {
                $oStatus->sMessage = TGlobal::Translate('chameleon_system_shop.orders.error_sending_confirm_order_not_found');
                $oStatus->sMessageType = 'ERROR';
            }
        } else {
            $oStatus->sMessage = TGlobal::Translate('chameleon_system_shop.orders.error_sending_confirm_order_missing_parameter');
            $oStatus->sMessageType = 'ERROR';
        }

        return $oStatus;
    }
1056531
public function getTooltipMsgForAttribute($param) {
        $param_arr = json_decode($param, true);
        $msg_array = array();
        foreach ($this->xmlContent as $msg) {
            if ($msg->getAttribute('uicomponent') == 'tooltip' &&
                    $msg->getAttribute('targetcontroller') == $param_arr['targetcontroller'] &&
                    $msg->getAttribute('targetaction') == $param_arr['targetaction'] &&
                    in_array($msg->getAttribute('targetattr'), $param_arr['targetattr'])
            ) {
                //Check if delay exists as an attribute
                $delayshow = $msg->getAttribute('delayshow');
                if ($delayshow != '') {
                    //Check if delayhide exists in xml, then use it, else use 0 by default
                    $delayhide = ($msg->getAttribute('delayhide') != '') ? $msg->getAttribute('delayhide') : 0;

                    $msgconfig_arr = array('value' => $msg->getAttribute('value'), 'targetattr' => $msg->getAttribute('targetattr'), 'placement' => $msg->getAttribute('placement'), 'delayshow' => $delayshow, 'delayhide' => $delayhide);
                } else {
                    $msgconfig_arr = array('value' => $msg->getAttribute('value'), 'targetattr' => $msg->getAttribute('targetattr'), 'placement' => $msg->getAttribute('placement'));
                }
                array_push($msg_array, array('tooltipmsg' => $msgconfig_arr));
            }
        }

        return $msg_array;
    }
239982
public function transform($user, array $params = array())
    {
        if (!$user instanceof UserInterface) {
            throw new TransformerParameterTypeException();
        }

        $facade = $this->newFacade();

        $facade->id = $user->getId();
        $facade->username = $user->getUsername();
        $facade->email = $user->getEmail();
        $facade->roles = implode(',', $user->getRoles());

        $groups = $user->getGroups();
        $labels = array();
        foreach($groups as $group){
            if (!$group->isDeleted()) {
                $labels[] = $this->multiLanguagesChoiceManager->choose($group->getLabels());
            }
        }

        $facade->groups = implode(',', $labels);

        if ($this->hasGroup(CMSGroupContext::AUTHORIZATIONS)) {
            $canDelete = $this->authorizationChecker->isGranted(ContributionActionInterface::DELETE, $user);
            $facade->addRight('can_delete', $canDelete);
        }

        return $facade;
    }
992605
protected function resolveArgumentValue(\ReflectionParameter $param)
    {
        $paramClass = null;

        try {
            $paramClass = $param->getClass();
        }
        catch (\ReflectionException $e) {
        }

        if (!($paramClass instanceof ReflectionClass) || $param->isDefaultValueAvailable()) {
            return $this->resolveArgumentDefaultValue($param);
        }

        if (!($this->manager instanceof Manager)) {
            throw new RuntimeException("Unable to retrieve descriptor for class '{$paramClass->getName(
                                       )}' " . "because the manager has not been set. Please use Descriptor::setManager to resolve this.");
        }

        return $this->manager->describe($paramClass->getName(), null, null, $paramClass);
    }
646151
public function withWorkingPublicKeyParameters(Element $params = null): self
    {
        $state = clone $this;
        $state->_workingPublicKeyParameters = $params;
        return $state;
    }
1040373
private function havingWrapper()
    {
        return function ($parameter) {
            if ($parameter instanceof FragmentInterface) {

                //We are only not creating bindings for plan fragments
                if (!$parameter instanceof ParameterInterface && !$parameter instanceof BuilderInterface) {
                    return $parameter;
                }
            }

            if (is_array($parameter)) {
                throw new BuilderException('Arrays must be wrapped with Parameter instance');
            }

            //Wrapping all values with ParameterInterface
            if (!$parameter instanceof ParameterInterface && !$parameter instanceof ExpressionInterface) {
                $parameter = new Parameter($parameter, Parameter::DETECT_TYPE);
            };

            //Let's store to sent to driver when needed
            $this->havingParameters[] = $parameter;

            return $parameter;
        };
    }
1216294
public function widget($name, array $params = [])
    {
        if (!isset($this->widgets[$name])) {
            throw new \InvalidArgumentException(sprintf('A widget by the name "%s" not exist.', $name));
        }

        $widget = $this->widgets[$name];

        return $widget($params);
    }
42417
private function maybeAddParam($params, $name)
  {
    $param = $this->client->getClassConfig($this, $name);
    if ($param != '') {
      $params[$name] = $param;
    }
    return $params;
  }
657903
public static function factory($sEngine, $aParams = array())
	{
		$sEngine = ucfirst(strtolower($sEngine));
		Core::require_file('ruxon/packages/Session/src/Drivers/Session'.$sEngine.'Driver.class.php');
		$sEngineClass = 'Session'.$sEngine.'Driver';

		return new $sEngineClass($aParams);
	}
867948
public function create(array $params = [])
    {
        $defaults = [
            'issue_id' => null,
            'project_id' => null,
            'spent_on' => null,
            'hours' => null,
            'activity_id' => null,
            'comments' => null,
        ];
        $params = $this->sanitizeParams($defaults, $params);

        if (
            (!isset($params['issue_id']) && !isset($params['project_id']))
         || !isset($params['hours'])
        ) {
            throw new \Exception('Missing mandatory parameters');
        }

        $xml = new \SimpleXMLElement('<?xml version="1.0"?><time_entry></time_entry>');
        foreach ($params as $k => $v) {
            if ('custom_fields' === $k && is_array($v)) {
                $this->attachCustomFieldXML($xml, $v);
            } else {
                $xml->addChild($k, $v);
            }
        }

        return $this->post('/time_entries.xml', $xml->asXML());
    }
658170
public function HandleNotifyMessage($aParameter)
    {
        TTools::WriteLogEntry('OGONE: handle notify message: '.print_r($aParameter, true), 1, __FILE__, __LINE__);
        if ($this->CheckIncomingHash($aParameter)) {
            $aParameter = array_change_key_case($aParameter, CASE_UPPER);
            $oOrder = TdbShopOrder::GetNewInstance();
            if ($oOrder->LoadFromField('ordernumber', $aParameter['ORDERID'])) {
                $sPaymentState = $aParameter['STATUS'];
                $this->HandleNotifyMessageForPaymentState($sPaymentState, $aParameter, $oOrder);
            } else {
                TTools::WriteLogEntry('OGONE: handle notify message order ('.$aParameter['ORDERID'].') not exists', 1, __FILE__, __LINE__);
            }
        } else {
            TTools::WriteLogEntry('OGONE: handle notify message incorrect hash check: ', 1, __FILE__, __LINE__);
        }

        return true;
    }
245087
public static function listAllPromotionsAsync(array $parameters = [])
    {
        return self::listAllPromotionsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
420556
public function mockAdapterPost(array $parameters)
    {
        $post = $this->plugAdapter(Post::class, new \WP_Post(new \StdClass))->first();

        foreach ($parameters as $key => $value) {
            $post->{$key} = $value;
        }

        return $post;
    }
947352
protected function BuildOutgoingHash($aParameter)
    {
        $sHash = '';
        $sSharedSecret = $this->GetConfigParameter('sSharedSecretOut');
        if ('' != $sSharedSecret) {
            ksort($aParameter);
            foreach ($aParameter as $sParameterName => $sParameterValue) {
                if ('' != $sParameterValue || is_numeric($sParameterValue)) {
                    $sHash .= strtoupper($sParameterName).'='.$sParameterValue.$sSharedSecret;
                }
            }
            $sHash = hash('sha256', $sHash);
        }

        return $sHash;
    }
492734
protected function GetAllInputFieldParameter($aParameter = array())
    {
        if (!is_array($aParameter)) {
            $aParameter = array();
        }
        $aParameter = $this->GetStandardInputFieldParameter($aParameter);
        $aParameter['trx_typ'] = $this->GetConfigParameter('trx_typ');
        $aParameter['use_datastorage'] = $this->GetConfigParameter('use_datastorage');
        $aParameter['datastorage_reuse_method'] = $this->GetConfigParameter('datastorage_reuse_method');
        $sDataExpireDateSec = time() + ((int) $this->GetConfigParameter('expiretime_min')) * 60;
        $aParameter['datastorage_expirydate'] = date('Y/m/d H:i:s', $sDataExpireDateSec);
        $oGlobal = TGlobal::instance();
        $aParameter['spot'] = $oGlobal->GetExecutingModulePointer()->sModuleSpotName;

        return $aParameter;
    }
1350107
public static function arpa(array $options = [], ClientInterface $client = null)
    {
        return Metrics\ARPAs::all($options, $client);
    }
878950
protected function buildParametersForAuthentictatedMethods(array $parameters = [])
    {
        if (!empty($this->sessionKey)) {
            $parameters['sk'] = $this->sessionKey;
        }

        // The api_sig computation shouldn't include the "format" parameter
        // http://www.last.fm/group/Last.fm+Web+Services/forum/21604/_/428269/1#f18907544
        $fixedParameters = $parameters;
        unset($fixedParameters['format']);

        ksort($fixedParameters);
        $signature = '';
        foreach ($fixedParameters as $k => $v) {
            $signature .= "$k$v";
        }
        $parameters['api_sig'] = md5($signature . $this->apiSecret);

        return $parameters;
    }