Skip to content

Releases: DivanDesign/EvolutionCMS.snippets.ddGetFileInfo

Version 2.5

25 Apr 20:08
Compare
Choose a tag to compare
  • * Attention! PHP >= 5.6 is required.
  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.49 is required.
  • * Parameters:
    • + tpl_placeholders: Can also be set as HJSON.
    • * sizeUnitFormat
      • * Was renamed from sizeNameFormat (with backward compatibility).
      • + Values are case insensitive.
  • + You can just call \DDTools\Snippet::runSnippet to run the snippet without DB and eval (see README → Examples).
  • + \ddGetFileInfo\Snippet: The new class. All snippet code was moved here.
  • + README:
    • + Documentation → Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.
    • + Links.
    • + Text improvements.
  • + README_ru.
  • + Composer.json:
    • + homepage.
    • + support.
    • + authors.

Version 2.4

15 Jan 00:33
Compare
Choose a tag to compare
  • + The ability to return the MIME content type for a file (see the tpl parameter).
  • * Parameters → tpl: Wrong [+file+] placeholder was fixed.
  • + README, CHANGELOG: Style improvements.
  • + README → Documentation → Parameters description → tpl_placeholders: Text improved.

Version 2.3

15 Jan 00:33
Compare
Choose a tag to compare
  • + If file doesn't contain base path, the snippet will add it.
  • * fopen is not used anymore because @ operator doesn't always work.
  • * filesize is used only for local files, not for URLs. @ steel used because not only URLs will generate errors.

Version 2.2.1

15 Jan 00:32
Compare
Choose a tag to compare
  • * Critical variable name error was fixed.

Version 2.2

15 Jan 00:32
Compare
Choose a tag to compare
  • * Attention! PHP >= 5.4 is required.
  • * Attention! MODXEvo >= 1.1 is required.
  • * Attention! MODXEvo.libraries.ddTools >= 0.18 is required.
  • + Added JSON and Query string formats support for the tpl_placeholders parameter (with backward compatibility).
  • + Added support of the @CODE: keyword prefix in the tpl parameter.
  • * The following parameters were renamed (with backward compatibility):
    • * docFieldfile_docField.
    • * docIdfile_docId.
    • * sizeType → sizeNameFormat.
    • * sizePrec → sizePrecision.
    • * placeholders → tpl_placeholders.
  • * The sizeNameFormat parameter changes:
    • * User-friendly values.
    • + Added EnFull value.
    • * Is equal to EnShort by default.

Version 1.0

15 Jan 00:31
Compare
Choose a tag to compare
  • + The first release.