]>
git.mxchange.org Git - core.git/log
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>
Roland Haeder [Wed, 18 Mar 2015 00:31:09 +0000 (01:31 +0100)]
Don't "abuse" setters for actually "unsetting" (closing) instances. Better use
explicit "unsetter" methods which seems to be a cleaner way.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 17 Mar 2015 21:13:14 +0000 (22:13 +0100)]
Updated copyright:
- Added a really lame script for doing this
- Updated copyright year to 2015 (as it has been changed this year)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 16 Mar 2015 18:57:33 +0000 (19:57 +0100)]
Renamed DatabaseResult to CachedDatabaseResult as it is actually "caching" the
whole result. This means that the result is kept in array and this result can be
used as an iterator to "walk" over the whole result. Later on if a non-cached
version is coming the iteration will callback the backend for the actual
iteration.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 13 Mar 2015 03:10:55 +0000 (04:10 +0100)]
Fixed loading of chash.pos (wrong indexes) + added cast to float for nonce.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 10 Mar 2015 00:40:30 +0000 (01:40 +0100)]
Renamed BaseFile to BaseAbstractFile to make it more clear that this class is
an abstracted file and is not responsible for the actual I/O (which is done by
the linked pointer instance).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 7 Mar 2015 22:01:20 +0000 (23:01 +0100)]
Continued:
- Added new class field $urlSourceInstance (What?! Not added before?) with
interface UrlSource as type-hint
- Removed deprecated classes/include files
- Added some "life" to FiFoFileStack as this class may happen the same was the
memory-based counter part FiFoStack. Still the BaseFileStack needs a lot
enhancement (unfinished).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 6 Mar 2015 23:19:12 +0000 (00:19 +0100)]
Renamed some paths and a class for better understanding them:
- Classes in 'databases' were backend classes (doing the hard work) so it got renamed to 'backend'
- Classes in 'wrapper' were frontend classes (which classes from e.g. the "business logic" may use) so it got renamed to 'frontend'
- To both above renames there are already proper "base" classes
- Renamed 'LocalFileDatabase' to 'CachedLocalFileDatabase' as the entire (!) result is stored in $resultData. This is maybe fine for small tables but never good for tables with a lot rows (I don't want to name a number here).
- TODOs.txt updated
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 5 Mar 2015 01:56:56 +0000 (02:56 +0100)]
Continued CSV parsing:
- Introduced readCsvFileLine() which reads a line from a CSV file and parses it to an indexed array
- Introduced readLine() which will read a line (not limited) from a text file
- Method read() will now work without parameters (depending on implementation, e.g. binary files must always be read with a buffer length)
- Other improvements
- TODOs.txt updated
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 19 Feb 2015 12:27:55 +0000 (13:27 +0100)]
It is 'CALLED' (minor).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 19 Feb 2015 10:41:00 +0000 (11:41 +0100)]
Lesser noisy debug lines.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 19 Feb 2015 10:35:19 +0000 (11:35 +0100)]
Some cleanups
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 19 Feb 2015 08:57:39 +0000 (09:57 +0100)]
Added missing method isOwnAddress().
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 30 Jan 2015 00:33:06 +0000 (01:33 +0100)]
Now use more the newly added (not here yet) ShareabeInfo instance.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 29 Jan 2015 20:46:59 +0000 (21:46 +0100)]
A class implementing ShareableInfo shall now be handled over.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 23 Jan 2015 20:57:03 +0000 (21:57 +0100)]
setListenerInstance() does not allow NULL, so don't set it.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 20 Jan 2015 21:46:56 +0000 (22:46 +0100)]
Merge branch 'master' of git.mxchange.org:/var/cache/git/repos/core
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 20 Jan 2015 21:45:58 +0000 (22:45 +0100)]
Continued:
- Added new field 'regularExpression' which can be used for validating data
- Added stub application for unit tests on the framework
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 20 Jan 2015 09:18:38 +0000 (10:18 +0100)]
Renamed method as shortcuts are not wanted.
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Haeder [Thu, 15 Jan 2015 22:18:52 +0000 (23:18 +0100)]
Added isValidUnlByPackageData()
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 11 Jan 2015 23:22:30 +0000 (00:22 +0100)]
And back to Listenable ... :-(
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 10 Jan 2015 22:21:32 +0000 (23:21 +0100)]
Sometimes it is Listenable, somtimes HandleableProtocol ... ;-)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 10 Jan 2015 21:58:07 +0000 (22:58 +0100)]
The name "Pointer" was to general, better use "FilePointer" to make it clear
that the implementing classes will be pointers on files.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 10 Jan 2015 21:55:12 +0000 (22:55 +0100)]
Renamed files to let the class loader find them.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 10 Jan 2015 21:49:15 +0000 (22:49 +0100)]
Added new classes + moved some in sub folders:
- Added input and output classes (duplicated + correct functions used) for text
files + added iniFile() in corresponding "base" classes
- Moved "raw" input/output classes to sub folders to allow separation, still
there may be a "base" class missing for both of them
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 26 Dec 2014 17:59:14 +0000 (18:59 +0100)]
The protocol handler was mostly not correct as a listener was really used here.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 25 Dec 2014 11:41:39 +0000 (12:41 +0100)]
Prevent generating cache keys if no query caching is enabled.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 24 Dec 2014 17:41:56 +0000 (18:41 +0100)]
Continued:
- Don't generate cache key if caching is disabled. This will save some time
- Updated debug message (minor)
- Updated TODOs.txt
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 24 Dec 2014 01:07:58 +0000 (02:07 +0100)]
Moved from 'hub' code.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 23 Dec 2014 22:46:49 +0000 (23:46 +0100)]
Also this ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 23 Dec 2014 22:45:10 +0000 (23:45 +0100)]
A much better name is HandleableProtocol.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 23 Dec 2014 19:46:48 +0000 (20:46 +0100)]
_SERVER array elements are all upper-case.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 23 Dec 2014 11:26:44 +0000 (12:26 +0100)]
Updated doc tag to reflect UNL rewrites in 'hub' project.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 15 Dec 2014 20:32:26 +0000 (21:32 +0100)]
Cleanup of previous commit.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 15 Dec 2014 20:22:42 +0000 (21:22 +0100)]
No longer simple IPs, better is UNL: Universal Node Locator
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 7 Dec 2014 22:18:47 +0000 (23:18 +0100)]
Added important call to setFileName()
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 7 Dec 2014 19:36:58 +0000 (20:36 +0100)]
Added missing methods (required by interfaces). They are all not used here.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 7 Dec 2014 19:29:33 +0000 (20:29 +0100)]
Added new CSV file abstraction class which is now a stub and needs expansion.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 7 Dec 2014 18:56:59 +0000 (19:56 +0100)]
Also this has to be renamed ('Directory' already exists).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 7 Dec 2014 18:55:14 +0000 (19:55 +0100)]
setIteratorInstance() was already defined and way to generic.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 7 Dec 2014 18:52:23 +0000 (19:52 +0100)]
Continued:
- FrameworkDirectoryPointer now has an own interface 'Directory'.
- Added setter/getter for directoryInstance variable
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 11 Nov 2014 21:38:22 +0000 (22:38 +0100)]
The UNL (Universal Node Locator) is now handled in a class.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 31 Oct 2014 22:41:50 +0000 (23:41 +0100)]
Make UNL upper-case
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 27 Oct 2014 22:34:39 +0000 (23:34 +0100)]
Added counter for total restarts
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 25 Oct 2014 11:11:40 +0000 (13:11 +0200)]
Upcoming rewrite to universal node locator (UNL) instead of "hard-wired"
ip:port combination. This change is only a name change of variables and does
currently hurt or change nothing.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 22:34:55 +0000 (00:34 +0200)]
Double qoutes generally "cost" performance as they are searched for variables (and single quotes not).
Signed-off-by: Roland Häder <roland@mxchange.org>