src/Neuron/GameServer/Player.php
public function sendNotification ($txtMsgKey, $txtMsgSection, $inputData = array (), $objSender = null, $isPublic = false)
    {
        $text = $this->getRightLanguage ();

        // Add "actor" to inputdata
        $inputData['actor'] = $this;

        $newArray = array ();
        $plainArray = array ();
        foreach ($inputData as $k => $v)
        {
            if ($v instanceof Neuron_GameServer_Interfaces_Logable)
            {
                $newArray[$k] = Neuron_Core_Tools::output_varchar ($v->getName ());
                $plainArray[$k] = $v->getName ();
            }
            else
            {
                $newArray[$k] = Neuron_Core_Tools::output_varchar ($v);
                $plainArray[$k] = $v;
            }
        }

        $msg = Neuron_Core_Tools::putIntoText
        (
            $text->get ($txtMsgKey, $txtMsgSection, 'notifications'),
            $newArray
        );

        $msg_plaintext = Neuron_Core_Tools::putIntoText
        (
            $text->get ($txtMsgKey, $txtMsgSection, 'notifications'),
            $plainArray
        );

        // Notify player gametrigger
        //$this->callGameTrigger ('sendNotification', array ($msg, $txtMsgSection, $txtMsgKey, $inputData));

        try {
            $this->sendOpenIDNotifications($msg_plaintext, $txtMsgKey, $txtMsgSection, $inputData, $objSender, $isPublic);
        } catch (Exception $e) {
            // Something went wrong, but we can't care about it too much.
            Neuron_ErrorHandler_Handler::getInstance()->notify($e);
        }

        // Also send email
        try {
            $this->sendNotificationEmail ($msg_plaintext, $txtMsgKey, $txtMsgSection, $inputData, $objSender, $isPublic);
        } catch (Exception $e) {
            Neuron_ErrorHandler_Handler::getInstance()->notify($e);
        }
    }
public function sendNotification ($txtMsgKey, $txtMsgSection, $inputData = array (), $objSender = null, $isPublic = false)
    {
        $text = $this->getRightLanguage ();

        // Add "actor" to inputdata
        $inputData['actor'] = $this;

        $newArray = array ();
        $plainArray = array ();
        foreach ($inputData as $k => $v)
        {
            if ($v instanceof Neuron_GameServer_Interfaces_Logable)
            {
                $newArray[$k] = Neuron_Core_Tools::output_varchar ($v->getName ());
                $plainArray[$k] = $v->getName ();
            }
            else
            {
                $newArray[$k] = Neuron_Core_Tools::output_varchar ($v);
                $plainArray[$k] = $v;
            }
        }

        $msg = Neuron_Core_Tools::putIntoText
        (
            $text->get ($txtMsgKey, $txtMsgSection, 'notifications'),
            $newArray
        );

        $msg_plaintext = Neuron_Core_Tools::putIntoText
        (
            $text->get ($txtMsgKey, $txtMsgSection, 'notifications'),
            $plainArray
        );

        // Notify player gametrigger
        //$this->callGameTrigger ('sendNotification', array ($msg, $txtMsgSection, $txtMsgKey, $inputData));

        try {
            $this->sendOpenIDNotifications($msg_plaintext, $txtMsgKey, $txtMsgSection, $inputData, $objSender, $isPublic);
        } catch (Exception $e) {
            // Something went wrong, but we can't care about it too much.
            Neuron_ErrorHandler_Handler::getInstance()->notify($e);
        }

        // Also send email
        try {
            $this->sendNotificationEmail ($msg_plaintext, $txtMsgKey, $txtMsgSection, $inputData, $objSender, $isPublic);
        } catch (Exception $e) {
            Neuron_ErrorHandler_Handler::getInstance()->notify($e);
        }
    }
/*
Various notifications are called