aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/models.php
Commit message (Collapse)AuthorAge
* Make dbversion a method of DatabaseLaria Carolin Chabowski2020-11-08
| | | | | We currently don't actually use it, but it might come in handy, so let's keep it.
* Plugin: Fix creating plugin database recordsLaria Carolin Chabowski2020-11-08
| | | | | Newer MySQL / MariaDB versions are a bit more strict when omitting values on insert which made the old Plugin::create() not work any more.
* Plugin: Remove unused methodLaria Carolin Chabowski2020-11-08
|
* Remove some unused DB functions / globalsLaria Carolin Chabowski2020-10-20
| | | | | Now it begins to pay off, that (nearly) all model classes were updated to use the new Database class :)
* Article: Update documentation and remove global db usagesLaria Carolin Chabowski2020-10-20
|
* Repository: Update documentation and remove global db usagesLaria Carolin Chabowski2020-10-19
|
* Image: Update documentation and remove global db usagesLaria Carolin Chabowski2020-10-19
|
* Image: Make $pre_max{w,h} constsLaria Carolin Chabowski2020-10-19
|
* Image: Fix referencing undefined propertyLaria Carolin Chabowski2020-10-19
|
* Tag: Update documentation and remove global db usagesLaria Carolin Chabowski2020-10-19
|
* Section: Update documentation and remove global db usagesLaria Carolin Chabowski2020-10-19
|
* Plugin: Update documentation and remove global db usagesLaria Carolin Chabowski2020-10-18
|
* Style: Update documentation and remove global db usagesLaria Carolin Chabowski2020-10-18
|
* Comment: Update documentation and remove global db usagesLaria Carolin Chabowski2020-10-05
|
* Multilingual+Translation: Update documentation and remove global db usagesLaria Carolin Chabowski2020-10-05
|
* Group: Update documentation and remove global db usagesLaria Carolin Chabowski2020-10-05
|
* User: Update documentation and remove global db usagesLaria Carolin Chabowski2020-10-05
|
* KVStorage: Move into namespace and remove global db usagesLaria Carolin Chabowski2020-10-05
| | | | Also update documentation a bit (mostly converting to phpdoc)
* Remove unused classLaria Carolin Chabowski2020-10-05
|
* Use password_hash() and friends to hash and verify passwordsLaria Carolin Chabowski2020-09-25
| | | | | | | | | | | | Previously I rolled my own password hashing function. While it at least used some sort of salt, it's still a terrible idea. The newly created class PasswordHash wraps the password_hash() family of functions but can also check the old password hash format (to distinguish them, the new password hashes are prefixed with a '!'). In PasswordHash::needsRehash we then always report an hash of the old format as being in need of a rehash. That way, these old hashes will be replaced the next time the user successfully logs in.
* Replace kses with HTMLPurifierLaria Carolin Chabowski2020-09-25
| | | | This gets rid of our last non-compüoser dependency! :)
* Refactor textprocessorsLaria Carolin Chabowski2020-09-25
| | | | | They are now managed by TextprocessorRepository and are instances of Textprocessor. This replaces the global $textprocessors variable.
* Code cleanupLaria Carolin Chabowski2020-09-21
| | | | | | | | | | - Remove unused variables - Remove unused utility functions - Asserting presence and typehinting global variables - Remove unused variables - Add missing global - Add parameter type constraint - Fix some references to nonexisting variables
* Fix broken SQL in Repository::createLaria Carolin Chabowski2020-04-28
| | | | | - There were values missing - Use PREFIX_
* Oops, some unfinished changes slipped into ade9ede m(Laria Carolin Chabowski2020-04-27
|
* Automatic code formattingLaria Carolin Chabowski2020-04-26
|
* Some simple code formattingLaria Carolin Chabowski2020-04-26
| | | | | | - Expand tabs into spaces - Remove trailing whitespace - Get rid of closing `?>` tags
* Expand tabs and remove trailing whitespaceLaria Carolin Chabowski2020-04-26
|
* PHP < 5.4 can not use $this in anonymous functions.Kevin Chabowski2013-10-04
| | | | Should have tested that one earlier (damn).
* Fixed wrong variable namesKevin Chabowski2013-10-03
|
* models.php now uses PDO (UNTESTED!)Kevin Chabowski2013-10-03
|
* Style::test_name implemented.feature-move-data-checking-to-modelsKevin Chabowski2012-06-08
|
* Section::test_name implemented.Kevin Chabowski2012-06-08
|
* Article::test_status implementedKevin Chabowski2012-06-08
|
* Tag::test_name implemented.Kevin Chabowski2012-06-08
|
* Made Article::test_urlname public and added docu.Kevin Chabowski2012-06-08
|
* Article::test_urlname implemented.Kevin Chabowski2012-06-08
|
* Plugins can now hook into the Article editor.feature-plugin-articledataKevin Chabowski2012-05-20
| | | | | | | * Plugins can display additional fields in the article editor. * Plugins can perform actions when saving an article and even veto the saving. * Plugins can get their ArticleExtradata objects.
* Added silent mode to abstract KVStorage class.Kevin Chabowski2012-05-20
| | | | | Activated silent mode will return NULL instead of throwing an DoesNotExistError Exception, if a key does not exist.
* ArticleExtradata class and other changes to models.phpKevin Chabowski2012-05-19
| | | | | | | | | | | | * ArticleExtradata class added. This class gives plugins the possibility to assign additional data to articles. * Abstract class KVStorage added. ArticleExtradata and PluginKVStorage extend from it. * Added dbversion function, it returns the version of the database model currently in use. The version is stored in the PREFIX_meta table. If there is no PREFIX_meta table, dbversion returns version 0. This will be useful for updating the system. * New MySQL tables.
* Fixed a buggy SQL-Query in Section::get_articles.Kevin Chabowski2012-02-18
|
* Incompatible plugins will now get disabled.Kevin Chabowski2012-02-18
|
* Fixed two bugs in the Article class.Kevin Chabowski2012-02-04
| | | | | | 1. Article::set_tags now actually saves tag relations... 2. Article::by_multi() filters out duplicates that were a result from the join with the `PREFIX_article_tag_relations` table.
* Fixed Image:all function (broken Query).Kevin Chabowski2012-01-29
|
* Article::by_multi must be static!Kevin Chabowski2012-01-17
|
* Documentation of settings.Kevin Chabowski2012-01-15
|
* Comments model fixed.Kevin Chabowski2012-01-11
| | | | | * Fixed a MySQL query. * Comments::populate_by_sqlrow fixed.
* Fixed some plugin related bugs.Kevin Chabowski2012-01-08
| | | | | * Plugin backend pages did not work. * Plugin author was not transferred to database.
* Repo administration and indtall from repo added.Kevin Chabowski2012-01-08
|
* Article::by_multi improved and frontend modifications.Kevin Chabowski2011-12-27
| | | | | | | * Article::by_multi now has more criterias and can perform sorting, paging and limiting. Also only generates full articles when needed. * In the frontend there are now some "hidden" __obj STE variables, so some objects do not need to be created multiple times.