]>
git.mxchange.org Git - core.git/log
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>
Roland Haeder [Fri, 17 Oct 2014 20:55:20 +0000 (22:55 +0200)]
Some more cleanups.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 19:28:00 +0000 (21:28 +0200)]
Added protocol for upcoming rewrite.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 18:36:33 +0000 (20:36 +0200)]
Minor: Descriptions improved
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 18:14:11 +0000 (20:14 +0200)]
Minor: Added commented out debug line.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 18:01:57 +0000 (20:01 +0200)]
Updated from hub code.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 17 Oct 2014 17:49:20 +0000 (19:49 +0200)]
Added new interfaces Handleable/-DataSet and ProtocolHandler (no content yet).
Updated copyright year to latest.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 7 Oct 2014 18:33:01 +0000 (20:33 +0200)]
Some API changes:
- ClientFactory now wants a protocol handler instance, instead of direct prococol name
- Double-quotes converted to single
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Fri, 26 Sep 2014 07:51:28 +0000 (09:51 +0200)]
much smaller number for nonce-incrementation
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Haeder [Thu, 25 Sep 2014 20:25:22 +0000 (22:25 +0200)]
Minor improvements
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 22 Jul 2014 21:57:16 +0000 (23:57 +0200)]
Fixed some stuff + added debug lines.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 22 Jul 2014 20:14:07 +0000 (22:14 +0200)]
Some fixes.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 6 Jul 2014 21:39:20 +0000 (23:39 +0200)]
Also store total found hashes (much lesser than total hashes).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Fri, 27 Jun 2014 14:45:06 +0000 (16:45 +0200)]
30 seconds every flush is okay.
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Häder [Fri, 27 Jun 2014 13:49:01 +0000 (15:49 +0200)]
A bit shorter.
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Häder [Fri, 27 Jun 2014 12:37:21 +0000 (14:37 +0200)]
Lesser constants and more rewrites on algo.
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Häder [Fri, 27 Jun 2014 09:58:07 +0000 (11:58 +0200)]
Rewrites
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Haeder [Wed, 25 Jun 2014 17:23:56 +0000 (19:23 +0200)]
Added setter/getter for a Minable instance (interface still in 'hub' project).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 24 Jun 2014 06:43:05 +0000 (08:43 +0200)]
Added missing method.
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
Roland Haeder [Mon, 23 Jun 2014 21:25:11 +0000 (23:25 +0200)]
Also getSeekPosition() belongs here ... + TODOs.txt updated (--amend rocks!)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 21:20:53 +0000 (23:20 +0200)]
writeData() also belongs here.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 21:16:37 +0000 (23:16 +0200)]
No block instance here ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 21:15:24 +0000 (23:15 +0200)]
writeAtPosition() also belongs in OutputPointer classes.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 20:48:24 +0000 (22:48 +0200)]
Renamed 'stacker' to 'stack' as they are stacks (FiFo and "FiLo").
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 18:16:33 +0000 (20:16 +0200)]
Even more ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 18:15:05 +0000 (20:15 +0200)]
These constants have moved ... ;-)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 23 Jun 2014 17:54:31 +0000 (19:54 +0200)]
Moved iterator instancing + removed duplicate getPointer().
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 5 Jun 2014 20:43:32 +0000 (22:43 +0200)]
Splitted 'binary specific' methods/attributes from generic file class and created general text/binary classes.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 4 Jun 2014 21:29:09 +0000 (23:29 +0200)]
Interface 'Block' is implemented also here ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 4 Jun 2014 21:27:43 +0000 (23:27 +0200)]
Need to call pointer instance ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 4 Jun 2014 21:26:19 +0000 (23:26 +0200)]
Fixed parser error.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 4 Jun 2014 21:24:55 +0000 (23:24 +0200)]
Also add getFileSize() here, too. This satisfies the interface.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 4 Jun 2014 21:20:56 +0000 (23:20 +0200)]
Added isFileOnlyGaps() and getFileSize(), both are "basicly finished".
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:58:57 +0000 (13:58 +0200)]
This getter needs also to be public and be called through iterator.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:53:24 +0000 (13:53 +0200)]
Added missing methods (should not be called).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:51:48 +0000 (13:51 +0200)]
Fixed: [FiFoFileStack:439] Method getHeaderSize() is unsupported or should not be called.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 31 May 2014 11:49:25 +0000 (13:49 +0200)]
Fixed: Fatal error: Access to undeclared static property: BaseFrameworkSystem::$hashLength
Signed-off-by: Roland Häder <roland@mxchange.org>