Source of file MessageproviderPostacomment.php

Size: 1,382 Bytes - Last Modified: 2016-05-18T03:08:26+02:00

buildproject/core/module_postacomment/system/messageproviders/MessageproviderPostacomment.php

1234567891011121314151617181920212223242526272829303132333435363738394041424344
<?php
/*"******************************************************************************************************
*   (c) 2007-2016 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
********************************************************************************************************/


namespace Kajona\Postacomment\System\Messageproviders;

use Kajona\System\System\Carrier;
use Kajona\System\System\Messageproviders\MessageproviderInterface;

/**
 * The postacomment message-provider is able to send mails as soon as a new comment is available.
 * By default, all users with edit-permissions of the postacomment-module are notified.
 *
 * @author sidler@mulchprod.de
 * @since 4.0
 */
class MessageproviderPostacomment implements MessageproviderInterface
{


    /**
     * Returns the name of the message-provider
     *
     * @return string
     */
    public function getStrName()
    {
        return Carrier::getInstance()->getObjLang()->getLang("messageprovider_postacomment_name", "postacomment");
    }

    /**
     * Returns a short identifier, mainly used to reference the provider in the config-view
     *
     * @return string
     */
    public function getStrIdentifier()
    {
        return "postacomment";
    }
}