Skip to content

1.17

Latest
Compare
Choose a tag to compare
@it-mediafinanz it-mediafinanz released this 30 Nov 12:47
· 7 commits to 1.x since this release

[1.17] - 2024-11-30, https://github.com/emvicy/Emvicy/releases/tag/1.17

added

  • \MVC\DB\Model\Db::create: 2nd parameter bool $bAutoIncementId (default=true); if set to false the id given in object will be saved to tupel; otherwise auto increment

changed

  • config/_mvc.php:51 (MVC_BIN): set absolute paths to binaries; speeds up construction time
  • "ezyang/htmlpurifier": "v4.17.*" => `"ezyang/htmlpurifier": "v4.*"
  • "erusev/parsedown":"1.7.*" => "erusev/parsedown":"1.*"

fixed

  • dct() always shows application/init/util/functions.php as calling source; Fix: add debug_backtrace to function chains

[1.16] - 2024-11-26, https://github.com/emvicy/Emvicy/releases/tag/1.16

added

  • \MVC\Debug::constructionTime: returns the construction time at the time of the call; Shortcuts: ct() returns construction time; dct() displays construction time
  • application/smartyPlugins/modifier.dateformat.php; usage example: {$smarty.now|dateformat:"Y-m-d H:i:s"}

changed

  • \MVC\Log::getLogFileDefault: make sure default log file matches config value MVC_LOG_FILE_DEFAULT; plus auto create log file dir if missing
  • application/init/skeleton/Module/templates/Frontend/layout/footer.tpl: replaced smarty's date_format by Emvicy's dateformat modifier.
  • smaller improvements; \MVC\InfoTool::getCaches

[1.15.1] - 2024-10-08, https://github.com/emvicy/Emvicy/releases/tag/1.15.1

changed

  • application/library/MVC/DB/Model/DbInit.php: using \MVC\Cache instead of \Cachix

removed

  • "gueff/cachix": "1.0.*"

[1.15] - 2024-10-07, https://github.com/emvicy/Emvicy/releases/tag/1.15

added

  • \MVC\Cache::exists: checks whether a cache related to a given token/key exists
  • \MVC\Strings::createPassword: creates a password; makes sure at least one of each lower, upper, int, special char is contained
  • Events
    • mvc.db.model.db.createTable.after: located in \MVC\DB\Model\Db::createTable, passes \MVC\DataType\DTValue $oDTValue
    • app.controller.__construct.before: located in \App\Controller::__construct, passes \MVC\DataType\DTRequestCurrent $oDTRequestCurrent

changed

  • \MVC\Cache not longer extends \Cachix.

[1.14] - 2024-08-15, https://github.com/emvicy/Emvicy/releases/tag/1.14

added

  • \MVC\Request::getHeaderValueOnKey

changed

  • \MVC\Route::getOnTag: returns always type of \MVC\DataType\DTRoute, if nothing was found it returns an DTRoute class with no values but not null.
  • deactivated #php_value session.auto_start 0 in .htaccess file as default (as it needs apache_mod to run properly)

deprecated

  • \MVC\Request::getHeader: use instead: Request::getHeaderValueOnKey() as its name is more precisely

fixed

  • \MVC\Route::getOnTag: tags on Routes which are assigned to multiple Methods (get/post) - marked as Method: * in php emvicy rtl - could not be found.

[1.13] - 2024-07-19, https://github.com/emvicy/Emvicy/releases/tag/1.13

added

  • \MVC\File::info, application/library/MVC/DataType/DTFileinfo.php: filesize added
  • \parse_str_clean: leaves key names preserved

changed

  • \MVC\Request::getHeader: Convert searched key and all header array keys (temporarily) to lowercase for easier comparison (HTTP1.1)
  • \MVC\Lock::create: if parameter bReturn is set to true, it returns the LockFilename's absolute path in any case (before it was bool: false if file already existed, true if file was newly created)

[1.12] - 2024-06-02, https://github.com/emvicy/Emvicy/releases/tag/1.12

added

  • Config MVC_ROUTING_DIR / \MVC\Config::get_MVC_ROUTING_DIR();
    • allows to read routing files from multiple modules at once (before only routing files from primary module got read)
    • in any module config you want to get read its routing files add $aConfig['MVC_ROUTING_DIR'][] = realpath(__DIR__ . '/../../../') . '/routing';
    • primary module routing files are set to get read by default (set in config/_mvc.php) (Backwards compatibilty)

removed

  • $aConfig['MVC_ROUTING_CLASS']
  • $aConfig['MVC_ROUTING_JSON']

fixed

  • smaller typos

[1.11.2] - 2024-05-27, https://github.com/emvicy/Emvicy/releases/tag/1.11.2

fixed

  • application/library/MVC/MVCTrait/TraitDataType.php, Line: 117, Message: settype(): Argument #2 ($type) must be a valid type; Fix: check type is one of valid ones, Line: 112
  • application/init/skeleton/Module/etc/event/filter.phtml: save back only if there was an array where filter had affect on

[1.11.1] - 2024-05-24, https://github.com/emvicy/Emvicy/releases/tag/1.11.1

fixed

  • /application/library/MVC/DB/Model/DbPDO.php, Line: 59, Message: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name ...; Fix: skip if so named column already exists in application/library/MVC/DB/Model/Db.php:662

[1.11] - 2024-05-23, https://github.com/emvicy/Emvicy/releases/tag/1.11

added

  • application/library/MVC/DataType/DTFileUpload.php: Datatype Class for $_FILES
  • \MVC\Session::empty: empty a session namespace; removes all data in the current namespace

fixed

  • File: application/library/MVC/Strings.php, Line: 213, Message: MVC\Strings::highlight_html(): Argument emvicy#1 ($sMarkup) must be of type string, null given, called in application/library/MVC/InfoTool.php on line 55

[1.10.3] - 2024-05-02, https://github.com/emvicy/Emvicy/releases/tag/1.10.3

fixed

  • \MVC\DB\Model\Db::getFieldInfo: Comment field is empty when retrieving all fields from a table; instead when retrieving a specific field it is set with a value
  • application/init/skeleton/Module/etc/event/filter.phtml: Line: 59, Message: foreach() argument must be of type array|object, int given,. Fix: for sanitize_var/preg_replace rules allow type int and array

[1.10.2] - 2024-03-22, https://github.com/emvicy/Emvicy/releases/tag/1.10.2

fixed

  • Infotoolbar may cause empty pages; FIX: Toolbar: rendered markup of current page is injected later in \MVC\InfoTool::injectToolbar
  • setter method for custom array params in generated DT Classes are using new(), but its constructor is set to protected. FIX: instead use static ::create()