Skip to content

Releases: DivanDesign/EvolutionCMS.snippets.ddSendFeedback

Version 2.9

15 Jul 06:27

Choose a tag to compare

  • + SenderEmail → Parameters → senders->email->to: Addresses validation has been added. So if you specify only invalid emails, you will receive an error in the CMS log that not all required parameters have been set.
  • + Sender → Parameters → senders->{$senderName}->isFailRequiredParamsDisplayedToLog: The new optional parameter. Allows you do disable a failure message to the CMS log when required parameters are not set.

v2.8

13 Jul 18:40

Choose a tag to compare

  • * Sender:
    • + Parameters:
      • + senders->{$senderName}->isFailDisplayedToUser: The new optional parameter. Allows to prevent displaying a failure message to user when sending is failed.
      • + senders->{$senderName}->tpl:
        • + Any empty placeholders will be deleted before sending.
        • + Valid values → object: The new valid value. If the parameter set as an object, each item will be parsed as an independent template and then the result will be converted to JSON, it can be useful if you need to send a JSON object.
    • + CRMLiveSklad: The new sender. Allows to send orders to CRM LiveSklad.com.
    • + CustomHTTPRequest → Parameters → senders->customhttprequest->requestResultParams: The new group of parameters. Allows you to configure response parsing (see README).
    • + Email, Slack, CustomHTTPRequest: Sending error message in CMS log has been added.
    • * Telegram, SMSRu, CRMLiveSklad: Sending error message in CMS log has been improved.
    • + SMSRu: An API error message has been added to a CMS log message.
  • * \ddTools::getTpl is used instead of $modx->getTpl (means a bit less bugs).
  • * \ddTools::isEmpty is used instead of empty to check array/object variables for less fragility.
  • * README → Parameters description → Senders:
    • * Some text improvements.
    • * Examples: HJSON is used for all examples.
    • + Links → GitHub.
  • + CHANGELOG: Description of several old versions has been added.
  • + Composer.json → autoload.
  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.62 is required.

Version 2.7.1

08 Nov 22:16

Choose a tag to compare

  • * Improved removing of empty placeholders while senders->{$senderName}->tpl parsing.

Version 2.7

12 May 18:59

Choose a tag to compare

  • * Attention! PHP >= 5.6 is required.
  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.50 is required.
  • * Attention! (MODX)EvolutionCMS.snippets.ddMakeHttpRequest >= 2.3.1 is required.
  • + Parameters:
    • + senders: Can also be set as HJSON or as a native PHP object or array (e. g. for calls through $modx->runSnippet).
    • + senders->customhttprequest->sendRawPostData: The new parameter (see README).
  • + You can just call \DDTools\Snippet::runSnippet to run the snippet without DB and eval (see README → Examples).
  • + \ddSendFeedback\Snippet: The new class. All snippet code was moved here.
  • * \DDTools\Snippet::runSnippet is used instead of $modx->runSnippet to run (MODX)EvolutionCMS.snippets.ddMakeHttpRequest without DB and eval.
  • + README → Documentation → Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.
  • + Composer.json:
    • support.
    • + authors: Added missed homepages.

Version 2.6.1

07 Feb 11:18

Choose a tag to compare

  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.41 is required (not tested with older versions).
  • + \ddSendFeedback\Sender\Sender::__construct: Less fragile code, \DDTools\ObjectTools::extend is used instead of array_merge.
  • * Snippet: \DDTools\ObjectTools::convertType is used istead of \ddTools::encodedStringToArray.

Version 2.6

18 Jan 17:05

Choose a tag to compare

  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.32 is required.
  • + Parameters → senders: Can be set as a native PHP array or object (e. g. for calls through $modx->runSnippet).
  • + REAMDE:
    • + The snippet results description.
    • + Requires.
    • + Documentation.
    • + Links.
    • + Style improvements.
  • + CHANGELOG.
  • + CHANGELOG_ru.
  • + Composer.json:
    • + keywords: Additional keywords.
    • + homepage.
    • + authors.
    • + require.

Version 2.5

18 Jan 17:05

Choose a tag to compare

  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.25 is required.
  • + Parameters → senders->customhttprequest: The new sender.
  • * Parameters → senders->telegram->textMarkupSyntax: Was renamed from senders->telegram->messageMarkupSyntax with backward compatibility.
  • * \ddTools::$modx is used instead of $modx in all methods.
  • + \ddSendFeedback\Sender\: Added required parameters checking.
  • + \ddSendFeedback\Sender\: Will not throws an error if required parameters are not set or set but empty. Feel free and don't care about that.
  • * \ddSendFeedback\Sender\Sender::__construct: DDTools\BaseClass::setExistingProps is used.
  • - \ddSendFeedback\Sender\Sender::includeSenderByName: The method was removed. \DDTools\BaseClass::createChildInstance is used instead.
  • + \ddSendFeedback\Sender\Sender::initPostPlaceholders: POST fields prepared through nl2br only if $this->textMarkupSyntax == 'html'.
  • + Composer.json.

Version 1.5

18 Jan 17:05

Choose a tag to compare

  • + Parameters → fromField: The new parameter. $_POST array element with mailer name are taken (replacing from).