aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/User
AgeCommit message (Collapse)AuthorFilesLines
2021-06-25Reorganize namespacesThomas Lange2-22/+0
2021-06-22Implement new Repository and Entity classesThomas Lange6-42/+22
This commit adds new Repository and Entity classes which are better abstracted from the rest of the application. They dont know anymore about configuration options or how to parse to HTML because this is not the job for the ORM but for other parts of the application. The previous commits were a preparation for this big change. An entity now represents just a single record from a specific table of the database – nothing more. The repositories job is it to fetch or update records of the database and instantiate the entities. Another problem that was solved is the high amount of database queries that was needed before. For example, on the blogs home page first were all 10 latest post IDs fetched from the database and then another query was executed with "WHERE id = :id" for *each* single post?! ... This problem is solved with the new repository classes; they now use a single query to fetch and build the entities of the 10 latest posts. This change also solves the problem with database queries spread across the application and limits the exzessive use of try/catch blocks which were used before. The new classes make the whole code much cleaner. :)
2021-06-21Remove getGUID methods from Item classesThomas Lange1-11/+0
2021-06-21Remove getURL methods from Item classesThomas Lange1-11/+0
2021-06-20Call password_verify directly in login scriptThomas Lange1-7/+0
2020-12-31Remove PHP closing tags and add LF in "core/namespace/User/*"Thomas Lange4-4/+0
In addition to the last commit, remove the unnecessary PHP closing tags from the end of the files and ensure that the files ending with an LF character.
2017-04-27Several changes have been made in this commit, which together with the ↵v2.0Thomas Lange1-0/+1
previous commits result in version 2.0 (database update required): + Implemented [core]: A new database field has been added to all tables to define optional "arguments" for a page, post or user through the content editor. These arguments will be parsed into key->value pairs and can be used within templates to do something special. Please read the wiki of this repository for further information about this new feature. + Bugfix [core]: The function "makeSlugURL" had not convert uppercase umlauts to lowercase because "strtolower" was used instead of the multibyte equivalent "mb_strtolower". + Optimization [core]: The first regular expression within the function "makeSlugURL" has been optimized (checking for uppercase characters at this point is unnecessary because $string is only lowercase). + Optimization [all templates]: Markup for the pagination.php has been simplified (a little bit). + Optimization [admin template]: The javascript for the arrow key navigation has been outsourced to the main.js file. + Optimization [admin template]: The javascript file will now be included with the "defer" attribute. + Optimization [standard template]: Some language variables have been changed. Database update to version 2.0 (no existing data will be lost or changed): ALTER TABLE `page` ADD `argv` VARCHAR(100) NULL DEFAULT NULL AFTER `body`; ALTER TABLE `post` ADD `argv` VARCHAR(100) NULL DEFAULT NULL AFTER `body`; ALTER TABLE `user` ADD `argv` VARCHAR(100) NULL DEFAULT NULL AFTER `body`;
2017-04-11Class "ExceptionHandler" has been removed and several files has been changed.Thomas Lange1-1/+1
2017-03-29Item exceptions now inherit "ExceptionHandler" to benefit from the ↵Thomas Lange1-1/+1
"defaultHandler" method.
2017-03-04Factory method "buildBySlug" is now defined in the "ItemFactory" class.Thomas Lange1-4/+0
2017-02-24Initial commit.v1.0Thomas Lange4-0/+78