Skip to content

Releases: DivanDesign/EvolutionCMS.libraries.ddTools

Version 0.43

10 Mar 00:13
Compare
Choose a tag to compare
  • * Attention! PHP >= 5.6 is required.
  • * \DDTools\Response:
    • - Child version classes are not used anymore.
    • + $requiredMetaKeys: The new field.
    • + $requiredMetaMessageKeys: The new field.
    • + validateMetaMessage: The new method.
    • + setMetaMessage: The new method.
    • + validateMeta: Can take any type of parameter and just returns false if it is not an array.
    • * toJSON: Refactoring, \DDTools\ObjectTools::convertType is used instead of json_encode.
  • * \DDTools\BaseClass::toJSON: Refactoring, \DDTools\ObjectTools::convertType is used instead of json_encode.
  • + Composer.json → authors: Added missing authors.

Version 0.42

24 Feb 17:20
Compare
Choose a tag to compare
  • * \ddTools::verifyRenamedParams:
    • + If $params->params set as an object, the method will return an instance of stdClass.
    • * \DDTools\ObjectTools::extend is used instead of array_merge.
  • + \DDTools\Snippet: The new abstract class for snippets.
  • * \ddTools::getTemplateVars, \ddTools::getTemplateVarOutput → Parameters → $idnames: Less fragile working when the parameter is a string.
  • + README → Links → Packagist.

Version 0.41

15 Dec 13:19
Compare
Choose a tag to compare
  • + \ddTools::getDocumentIdByUrl: Supports domains in IDNA ASCII-compatible format.

Version 0.40.1

22 Jun 06:21
Compare
Choose a tag to compare
  • * \ddTools::createDocument, \ddTools::updateDocument: Document field values will be prepared by $modx->db->escape().
  • + \ddTools::createDocument → Parameters → $docData->pagetitle: Can't be equal to '', so will be equal to 'New resource' in this case.

Version 0.40

19 Jun 14:21
Compare
Choose a tag to compare
  • * \DDTools\FilesTools::modifyImage:
    • + Supports .ico and .bmp.
    • + $params->watermarkImageFullPathName: The new parameter. You can overlay your image with needed watermark image.
    • + $params->sourceFullPathName, $params->outputFullPathName: Can be equal to relative paths too, the method will automatically add base_path if needed.
    • + $params->outputFullPathName: Is not required anymore and by default is be equal to $params->sourceFullPathName.
    • + $params->allowEnlargement: Is not required anymore and by default is equal to 0.
    • + $params->backgroundColor: Is not required anymore and by default is equal to FFFFFF.
    • + $params->quality: Is not required anymore and by default is equal to 100.
    • * $params->allowEnlargement: Type changed to boolean (with backward compatibility).
    • * PHP.libraries.phpThumb: Updated from 1.7.13-201406261000 to 1.7.15-202004301145.
    • * Refactoring.
  • + README → Documentation → Parameters description → \DDTools\FilesTools\DDTools\FilesTools::modifyImage($params).

Version 0.39

07 Jun 17:58
Compare
Choose a tag to compare
  • + \ddTools::createDocument → Parameters → $docData->alias: Will be transliterated from $docData->pagetitle if empty or not set.
  • * README → Documentation → Installation → Using Composer: Fixed the library name.

Version 0.38.1

02 Jun 20:08
Compare
Choose a tag to compare
  • * \DDTools\ObjectTools::convertType: Fixed type of deep objects when $params->type == 'objectarray'.
  • * README:
    • - Home page.
    • + Links.

Version 0.38

02 Jun 14:28
Compare
Choose a tag to compare
  • + \DDTools\ObjectTools::convertType: The new method. Converts an object type. Arrays, JSON and Query string objects are also supported.
  • * \ddTools::encodedStringToArray:
    • * Now uses \DDTools\ObjectTools::convertType.
    • * Style of CMS log message was improved.

Version 0.37.1

28 May 09:20
Compare
Choose a tag to compare
  • * ddTools::createDocument:
    • * Parameters → $docData->pagetitle: Is not required anymore and by default will be equal to 'New resource'.
    • * Small refactoring.

Version 0.37

24 May 14:16
Compare
Choose a tag to compare
  • * \ddTools::sort2dArray:
    • + Associative arrays are also supported.
    • * Small refactoring.