Releases: DivanDesign/EvolutionCMS.snippets.ddGetFileInfo
Releases · DivanDesign/EvolutionCMS.snippets.ddGetFileInfo
Version 2.5
- * 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.
- * Was renamed from
- +
- + 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
- + 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
- + 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
- * Critical variable name error was fixed.
Version 2.2
- * 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 thetpl
parameter. - * The following parameters were renamed (with backward compatibility):
- *
docField
→file_docField
. - *
docId
→file_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
- + The first release.