Releases: DivanDesign/EvolutionCMS.libraries.ddTools
Releases · DivanDesign/EvolutionCMS.libraries.ddTools
Version 0.43
- * 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 returnsfalse
if it is not an array. - *
toJSON
: Refactoring,\DDTools\ObjectTools::convertType
is used instead ofjson_encode
.
- *
\DDTools\BaseClass::toJSON
: Refactoring,\DDTools\ObjectTools::convertType
is used instead ofjson_encode
. - + Composer.json →
authors
: Added missing authors.
Version 0.42
- *
\ddTools::verifyRenamedParams
:- + If
$params->params
set as an object, the method will return an instance of stdClass. - *
\DDTools\ObjectTools::extend
is used instead ofarray_merge
.
- + If
- +
\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
- +
\ddTools::getDocumentIdByUrl
: Supports domains in IDNA ASCII-compatible format.
Version 0.40.1
- *
\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
- *
\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 addbase_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 to0
. - +
$params->backgroundColor
: Is not required anymore and by default is equal toFFFFFF
. - +
$params->quality
: Is not required anymore and by default is equal to100
. - *
$params->allowEnlargement
: Type changed to boolean (with backward compatibility). - * PHP.libraries.phpThumb: Updated from 1.7.13-201406261000 to 1.7.15-202004301145.
- * Refactoring.
- + Supports
- + README → Documentation → Parameters description →
\DDTools\FilesTools
→\DDTools\FilesTools::modifyImage($params)
.
Version 0.39
- +
\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
- *
\DDTools\ObjectTools::convertType
: Fixed type of deep objects when$params->type
=='objectarray'
. - * README:
- - Home page.
- + Links.
Version 0.38
- +
\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.
- * Now uses
Version 0.37.1
- *
ddTools::createDocument
:- * Parameters →
$docData->pagetitle
: Is not required anymore and by default will be equal to'New resource'
. - * Small refactoring.
- * Parameters →
Version 0.37
- *
\ddTools::sort2dArray
:- + Associative arrays are also supported.
- * Small refactoring.