]>
git.mxchange.org Git - core.git/log
Roland Haeder [Sat, 18 Apr 2015 01:39:54 +0000 (03:39 +0200)]
Allowed to set extra instance (for special cases, okay).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 18 Apr 2015 00:40:33 +0000 (02:40 +0200)]
Added some new stuff.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Apr 2015 18:50:53 +0000 (20:50 +0200)]
Added checks for 'command' and 'form' and check if CAPTCHA is enabled.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 22:54:34 +0000 (00:54 +0200)]
Opps, a parser error was introduced last commit.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 22:52:07 +0000 (00:52 +0200)]
Added isGuest() isConfirmed() to BaseUser for wrapping this type of check into
small methods. Also these methods are used to check the user instance before it
is being returned to other classes (see their factory methods).
Also 2 new exceptions has been added for above pre-checks.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 21:22:10 +0000 (23:22 +0200)]
startElement(), finishElement() and characterHandler() must be public as they
are called from XmlParser class.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 21:16:42 +0000 (23:16 +0200)]
Subject line may contain HTML entities and then it needs to be put in
<![CDATA[Blä]]> to get rid of XML parser errors.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 21:10:27 +0000 (23:10 +0200)]
Brought loadEmailTemplate() back to life.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 21:01:03 +0000 (23:01 +0200)]
Fixed parser error ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 20:58:55 +0000 (22:58 +0200)]
Fixed parser error.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 16:46:45 +0000 (18:46 +0200)]
Not so much double quotes for strings (convention).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 16:33:28 +0000 (18:33 +0200)]
It is better 'menu' + output of full fieldArray if DEVELOPER is defined.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 16:07:54 +0000 (18:07 +0200)]
This is a public method.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 15:45:44 +0000 (17:45 +0200)]
Throwing an NPE here hides the actual exception and it is much harder to track what is wrong.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 14:53:34 +0000 (16:53 +0200)]
Let's see if this works better.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 14:49:47 +0000 (16:49 +0200)]
Updated this as well.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 14:47:51 +0000 (16:47 +0200)]
Updated signature of addCriteria().
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 14:46:04 +0000 (16:46 +0200)]
UpdateCriteria currently needs to overwrite addCriteria().
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 14:40:24 +0000 (16:40 +0200)]
Introduced genericHanleRequestLoginAreaFailedRedirect()
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 14:25:24 +0000 (16:25 +0200)]
Fixed parser error.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 14:24:19 +0000 (16:24 +0200)]
This old stuff needs to be rewritten.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Apr 2015 14:14:33 +0000 (16:14 +0200)]
No more needed to call parent execute().
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 23:20:58 +0000 (01:20 +0200)]
Nope, no more ShipSimu here ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 23:19:43 +0000 (01:19 +0200)]
Moved from shipsimu project.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 23:13:02 +0000 (01:13 +0200)]
Introduced genericHanleRequestLoginFailedRedirect().
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 23:00:57 +0000 (01:00 +0200)]
Also call initWebOutputInstance() here.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 22:56:48 +0000 (00:56 +0200)]
Added some more missing class fields.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 22:54:39 +0000 (00:54 +0200)]
Added missing field.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 22:51:33 +0000 (00:51 +0200)]
Same for controller (?).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 22:49:04 +0000 (00:49 +0200)]
Added 'default_image_command' as this is really the default for all applications that create images.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 22:46:06 +0000 (00:46 +0200)]
Gee, found more copy-paste errors ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 22:44:02 +0000 (00:44 +0200)]
Don't look for commands in controller resolvers as this confuses the code (maybe).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 22:40:10 +0000 (00:40 +0200)]
resolveController() was everywhere the same, still you can overwrite it with
your own implementation.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 22:24:58 +0000 (00:24 +0200)]
It is actually a class.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 22:16:11 +0000 (00:16 +0200)]
Added support for template suffix. This allows to load templates such as register_form, etc.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 09:48:07 +0000 (11:48 +0200)]
Sometimes 'page' is wanted, sometimes 'command' but basicly both want a command
instance. So it is better to rename it everywhere to 'command'.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 6 Apr 2015 00:03:06 +0000 (02:03 +0200)]
Use getResponseTypeFromSystem() to get 'html' or 'console', what is really needed.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 23:52:51 +0000 (01:52 +0200)]
Don't allow underscores or dashes in application names (remove them).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 23:42:07 +0000 (01:42 +0200)]
Renamed a lot more stuff from 'web' to 'html'.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 23:31:01 +0000 (01:31 +0200)]
Forgot to rename classes as well ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 23:22:32 +0000 (01:22 +0200)]
One to much?
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 23:21:21 +0000 (01:21 +0200)]
Cleanup + expanded CompileableTemplate with a lot public methods from BaseTemplateEngine
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 23:01:43 +0000 (01:01 +0200)]
Configuration data is now being inserted as same as other data.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 22:40:54 +0000 (00:40 +0200)]
Added 'base_url'
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 22:30:50 +0000 (00:30 +0200)]
Introduced executeGenericPrePostCommand() which will execute a command with
pre and post filters.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 22:04:53 +0000 (00:04 +0200)]
Added shutdown filter methods.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 21:59:13 +0000 (23:59 +0200)]
Added sendGenericGetResponse() which sends a generic HTML GET response to the
client. This means a header, menu, content and footer is compiled and send out
to the client.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 21:54:05 +0000 (23:54 +0200)]
Added isGetRequestMethod(), isHeadRequestMethod() and isPostRequestMethod().
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 21:38:05 +0000 (23:38 +0200)]
Moved some class fields and their setter/getter to BaseFrameworkSystem.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 21:19:45 +0000 (23:19 +0200)]
Renamed classes.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 21:06:07 +0000 (23:06 +0200)]
Renamed classes
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 20:59:06 +0000 (22:59 +0200)]
Fixed comments (minor)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 20:29:54 +0000 (22:29 +0200)]
Added new method as the template engine may need additional
application-depending data from the application.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 20:25:03 +0000 (22:25 +0200)]
Basicly finished menu rendering (wow).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 20:06:38 +0000 (22:06 +0200)]
Added very basic support (unfinished) for menu rendering
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 5 Apr 2015 18:48:32 +0000 (20:48 +0200)]
Keep multi-line comments in their proper way with /* */.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:56:28 +0000 (21:56 +0100)]
It is now html, not web.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:39:54 +0000 (21:39 +0100)]
Move also this.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:37:45 +0000 (21:37 +0100)]
Moved from 'hub' (jepp, more to come!)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:35:47 +0000 (21:35 +0100)]
Added from 'hub' project.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:33:04 +0000 (21:33 +0100)]
Moved from 'hub' project, too.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:31:57 +0000 (21:31 +0100)]
Moved from 'hub' project.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:27:47 +0000 (21:27 +0100)]
Moved visitor stuff from 'hub'.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:24:19 +0000 (21:24 +0100)]
Moved default iterator from 'hub'.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:21:46 +0000 (21:21 +0100)]
Moved ListGroupList from 'hub'.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:19:20 +0000 (21:19 +0100)]
Also moved this interface (again more will come).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:17:43 +0000 (21:17 +0100)]
Also moved this stuff (more may come).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:13:55 +0000 (21:13 +0100)]
Also moved this interface.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 20:10:57 +0000 (21:10 +0100)]
Added task handler from 'hub' project.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 19:53:09 +0000 (20:53 +0100)]
Moved methods to reduce code duplicates.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 19:47:05 +0000 (20:47 +0100)]
Class prefixes can be now all lower-case.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 19:41:22 +0000 (20:41 +0100)]
Response type fixed (opps).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 19:39:59 +0000 (20:39 +0100)]
getDefaultCommand() is now moved to BaseResponse.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 19:27:36 +0000 (20:27 +0100)]
Class prefixes for actions, commands and controllers can now be like 'foo_bar'.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 18:21:57 +0000 (19:21 +0100)]
Output system is now no longer initialized by loading a centralized
inc/output.php as this was a stupid idea and sometimes the same application
has a console and web part.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 17:33:21 +0000 (18:33 +0100)]
getResponseTypeFromSystem() is now static.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 17:29:01 +0000 (18:29 +0100)]
Separate web and console debugging.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 17:18:05 +0000 (18:18 +0100)]
Imported from 'hub' code.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 01:15:15 +0000 (02:15 +0100)]
Renamed more stuff (will break app_die(), so it needs fixing).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 00:26:34 +0000 (01:26 +0100)]
Very noisy line (for web applications).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 00:18:53 +0000 (01:18 +0100)]
Some fixes for template parsing.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 24 Mar 2015 00:09:09 +0000 (01:09 +0100)]
Don't shorten variable names, even when they become long. If so, then find a
better way of naming them.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Mar 2015 23:58:57 +0000 (00:58 +0100)]
Better use 'self'.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Mar 2015 23:56:49 +0000 (00:56 +0100)]
Language base path is now optional.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Mar 2015 23:36:37 +0000 (00:36 +0100)]
Added config entry.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Mar 2015 23:34:21 +0000 (00:34 +0100)]
Class renamed + some cosmetical changes applied.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Mar 2015 15:09:31 +0000 (16:09 +0100)]
Renamed some more 'web' -> 'html' (more will come).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Mar 2015 15:04:36 +0000 (16:04 +0100)]
Even more renamed 'web' -> 'html'
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Mar 2015 15:02:41 +0000 (16:02 +0100)]
'Web' is to generic, better use 'Html' as it is for HTML.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Mar 2015 14:07:40 +0000 (15:07 +0100)]
Obsolete code removed.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Mar 2015 02:20:40 +0000 (03:20 +0100)]
Updated a little unmaintained test cases (they need to be run sooner or later).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Mar 2015 02:17:22 +0000 (03:17 +0100)]
HttpRequest and HttpResponse were to generic as they were only used for HTML
responses. Later on this framework will also handle other protocols or formats
that are based on HTTP (such as RSS). So by using Http as class prefix but
actually responding with HTML will exclude such other response types which is
not a good idea.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 22 Mar 2015 21:54:18 +0000 (22:54 +0100)]
Introduced initWebOutputInstance() which will initialize a web output instance.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 22 Mar 2015 20:11:33 +0000 (21:11 +0100)]
It may rarely happen that no filters are registered. It is strange but it may
happen.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 22 Mar 2015 00:08:41 +0000 (01:08 +0100)]
Minor fix, don't mix space and tab for intending, except for comment block:
/*
* This is an intended comment block with tabs and spaces to call doBla().
*/
$this->doBla();
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 21 Mar 2015 20:59:02 +0000 (21:59 +0100)]
Moved getter near it's setter counter part to have them next to each other.
Still this particular "base" class needs cleanup in things of position of
methods: first private, then protected then public and always keep setter
and getter close to each other and at top position (right after contructor).
All existing factory methods always lead setters and getters (right after
constructor).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 21 Mar 2015 20:58:26 +0000 (21:58 +0100)]
Commented added switch to MHASH_SHA256 + 5-times hashing and some other improvements.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 19 Mar 2015 00:48:03 +0000 (01:48 +0100)]
Commented out noisy debug lines, closeFile() should now be okay.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 18 Mar 2015 00:36:17 +0000 (01:36 +0100)]
More cleanups of public closeFile() method as it is private now and shall only
be called by the destructor.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 18 Mar 2015 00:34:09 +0000 (01:34 +0100)]
Fixed parser error.
Signed-off-by: Roland Häder <roland@mxchange.org>