core.git
11 years agoCopyright updated
Roland Häder [Wed, 16 May 2012 20:22:49 +0000 (20:22 +0000)]
Copyright updated

11 years agoMade readVariable() protected again, if you need access to this method, implement...
Roland Häder [Wed, 16 May 2012 20:06:33 +0000 (20:06 +0000)]
Made readVariable() protected again, if you need access to this method, implement a public method in your template engine which calls this method.

11 years agoSome minor improvements
Roland Häder [Tue, 15 May 2012 19:26:16 +0000 (19:26 +0000)]
Some minor improvements

11 years agoMade readVariable() public, used single-quotes instead of double
Roland Häder [Tue, 15 May 2012 16:54:47 +0000 (16:54 +0000)]
Made readVariable() public, used single-quotes instead of double

11 years agoMinor comment changes
Roland Häder [Mon, 14 May 2012 21:51:31 +0000 (21:51 +0000)]
Minor comment changes

11 years agoWarning made more clear
Roland Häder [Mon, 14 May 2012 21:14:55 +0000 (21:14 +0000)]
Warning made more clear

11 years agoAdded FilterChain::getFilters()
Roland Häder [Mon, 14 May 2012 20:56:41 +0000 (20:56 +0000)]
Added FilterChain::getFilters()

11 years agoCnstants first, than class attributes/fields
Roland Häder [Mon, 14 May 2012 20:55:13 +0000 (20:55 +0000)]
Cnstants first, than class attributes/fields

11 years agoThe FilterChain class is now registerable
Roland Häder [Mon, 14 May 2012 20:26:09 +0000 (20:26 +0000)]
The FilterChain class is now registerable

11 years agoRefactured 'BaseRegistry::getInstance()' a little
Roland Häder [Mon, 14 May 2012 20:18:23 +0000 (20:18 +0000)]
Refactured 'BaseRegistry::getInstance()' a little

11 years agoAnd 'public' also ...
Roland Häder [Mon, 14 May 2012 20:14:15 +0000 (20:14 +0000)]
And 'public' also ...

11 years ago'static' please ...
Roland Häder [Mon, 14 May 2012 20:11:22 +0000 (20:11 +0000)]
'static' please ...

11 years ago'core' enchanced:
Roland Häder [Mon, 14 May 2012 20:04:13 +0000 (20:04 +0000)]
'core' enchanced:
Method BaseRegistry::getRegistryKeyFromArray() added which allows to generate
prefixed registry keys from arrays. This does mostly call implode() with a
standard glue.

11 years agoCheck for config variables first, than general to avoid a bug: If the same
Roland Häder [Sun, 6 May 2012 00:43:29 +0000 (00:43 +0000)]
Check for config variables first, than general to avoid a bug: If the same
variable is set in general and config. This needs fixing! :(

11 years agoSorted fields/attributes and setter/getter to top, except realClass. That always...
Roland Häder [Sat, 28 Apr 2012 08:57:20 +0000 (08:57 +0000)]
Sorted fields/attributes and setter/getter to top, except realClass. That always remains on top of all

11 years agoAllowed debugBackTrace() to not exit (default is to exit)
Roland Häder [Fri, 27 Apr 2012 14:27:12 +0000 (14:27 +0000)]
Allowed debugBackTrace() to not exit (default is to exit)

11 years agoRemoved deprecated scripts (please delete them even if you get conflicts)
Roland Häder [Wed, 25 Apr 2012 18:28:12 +0000 (18:28 +0000)]
Removed deprecated scripts (please delete them even if you get conflicts)

11 years agoAdded type-hint 'array' for $onlyKeys because this should only be an array.
Roland Häder [Sun, 22 Apr 2012 21:44:48 +0000 (21:44 +0000)]
Added type-hint 'array' for $onlyKeys because this should only be an array.
Please report any problems related to this change!

11 years agoChanged/fixed/added properties
Roland Häder [Sun, 22 Apr 2012 20:33:38 +0000 (20:33 +0000)]
Changed/fixed/added properties

11 years agoAdded method stubs to satisfy interface
Roland Häder [Sun, 22 Apr 2012 20:05:14 +0000 (20:05 +0000)]
Added method stubs to satisfy interface

11 years agoHack to prevent 'array to string conversion' message
Roland Häder [Sun, 22 Apr 2012 20:00:30 +0000 (20:00 +0000)]
Hack to prevent 'array to string conversion' message

12 years agoFixed a typo
Roland Häder [Sat, 24 Mar 2012 08:27:18 +0000 (08:27 +0000)]
Fixed a typo

12 years agoForgot this :(
Roland Häder [Fri, 23 Mar 2012 20:35:14 +0000 (20:35 +0000)]
Forgot this :(

12 years agoAssert only if requested so :(
Roland Häder [Fri, 23 Mar 2012 20:34:23 +0000 (20:34 +0000)]
Assert only if requested so :(

12 years agoResurrected "legendary" function bigintval() from mailer 0.2.1-FINAL code with some...
Roland Häder [Wed, 21 Mar 2012 22:00:17 +0000 (22:00 +0000)]
Resurrected "legendary" function bigintval() from mailer 0.2.1-FINAL code with some modifications for the core project

12 years agoSome minor cleanups, used single-quote instead of double
Roland Häder [Wed, 21 Mar 2012 21:35:28 +0000 (21:35 +0000)]
Some minor cleanups, used single-quote instead of double

12 years agoSome hacks for missing extensions and XP:
Roland Häder [Wed, 14 Mar 2012 14:09:17 +0000 (14:09 +0000)]
Some hacks for missing extensions and XP:
- used mb_convert_encoding() as fall-back solution if extension recode is not
  found.
- At least on my XP box at work 'COMPUTERNAME' did work

12 years agoSingle quotes instead of double
Roland Häder [Sun, 4 Mar 2012 22:52:47 +0000 (22:52 +0000)]
Single quotes instead of double

12 years agoDouble->single quotes converted
Roland Häder [Tue, 28 Feb 2012 17:48:24 +0000 (17:48 +0000)]
Double->single quotes converted

12 years agoFix, opps :(
Roland Häder [Sun, 26 Feb 2012 00:28:01 +0000 (00:28 +0000)]
Fix, opps :(

12 years agoFix :(
Roland Häder [Sun, 26 Feb 2012 00:23:38 +0000 (00:23 +0000)]
Fix :(

12 years agoAdded the ability to create hashes without the fixed (extra) salt
Roland Häder [Sun, 26 Feb 2012 00:22:19 +0000 (00:22 +0000)]
Added the ability to create hashes without the fixed (extra) salt

12 years agoAdded hashString() which simply calls mhash() function with SHA256 hash function
Roland Häder [Sun, 26 Feb 2012 00:17:22 +0000 (00:17 +0000)]
Added hashString() which simply calls mhash() function with SHA256 hash function

12 years agoMultiple-line comment rewritten
Roland Häder [Sat, 25 Feb 2012 18:08:00 +0000 (18:08 +0000)]
Multiple-line comment rewritten

12 years agoChanged to generic interface Handleable to allow all types of handlers, not just...
Roland Häder [Thu, 16 Feb 2012 22:30:24 +0000 (22:30 +0000)]
Changed to generic interface Handleable to allow all types of handlers, not just network data handler

12 years agoAdded renamed exception, TODOs.txt updated
Roland Häder [Sat, 11 Feb 2012 16:03:14 +0000 (16:03 +0000)]
Added renamed exception, TODOs.txt updated

12 years agoRenamed 'seperator' to 'separator'
Roland Häder [Sat, 11 Feb 2012 16:02:26 +0000 (16:02 +0000)]
Renamed 'seperator' to 'separator'

12 years agoAdded missing exceptions
Roland Häder [Sat, 11 Feb 2012 00:08:56 +0000 (00:08 +0000)]
Added missing exceptions

12 years agoSome minor rewrites
Roland Häder [Sat, 11 Feb 2012 00:08:16 +0000 (00:08 +0000)]
Some minor rewrites

12 years agoAdded missing exceptions (opps)
Roland Häder [Tue, 7 Feb 2012 20:28:46 +0000 (20:28 +0000)]
Added missing exceptions (opps)

12 years agoMany more ore less important changes:
Roland Häder [Tue, 7 Feb 2012 20:27:34 +0000 (20:27 +0000)]
Many more ore less important changes:
- All socket-related exceptions are now extending AbstractSocketException
- New socket-related exceptions added (hub project)
- Minor improvements, comments improved

12 years agoRenamed tue to conflicts with same exception in 'hub' project
Roland Häder [Wed, 14 Dec 2011 04:47:11 +0000 (04:47 +0000)]
Renamed tue to conflicts with same exception in 'hub' project

12 years agoSome minor improvements
Roland Häder [Wed, 9 Nov 2011 01:51:30 +0000 (01:51 +0000)]
Some minor improvements

12 years ago$selfInstance is better
Roland Häder [Tue, 8 Nov 2011 07:46:19 +0000 (07:46 +0000)]
$selfInstance is better

12 years agoStatic method getInstance() conflicts with getInstance() in class BaseRegistry,
Roland Häder [Tue, 8 Nov 2011 06:35:06 +0000 (06:35 +0000)]
Static method getInstance() conflicts with getInstance() in class BaseRegistry,
better it gets renamed to something else.

12 years agoOwn implementations of magic functions always on top
Roland Häder [Tue, 8 Nov 2011 06:27:11 +0000 (06:27 +0000)]
Own implementations of magic functions always on top

12 years agoNo! More numbers! ;)
Roland Häder [Tue, 8 Nov 2011 05:05:04 +0000 (05:05 +0000)]
No! More numbers! ;)

12 years agoFor better reading
Roland Häder [Tue, 8 Nov 2011 05:04:25 +0000 (05:04 +0000)]
For better reading

12 years agoSeveral debug things (e.g. for timing) added
Roland Häder [Tue, 8 Nov 2011 05:02:00 +0000 (05:02 +0000)]
Several debug things (e.g. for timing) added
- Startup time (in miliseconds) is now being stored "genericly"
- getPrintableExecutionTime() added which will output the currently needed time
  in seconds to execute until that line
- Things like "\r", "\n" and "\t" replaced with chr(x) to (hopefully) speedup
  things

12 years agoFixed this :(
Roland Häder [Tue, 8 Nov 2011 03:00:46 +0000 (03:00 +0000)]
Fixed this :(

12 years agoRemoved duplicate getIndexKey()
Roland Häder [Tue, 8 Nov 2011 02:59:16 +0000 (02:59 +0000)]
Removed duplicate getIndexKey()

12 years agoMoved getIndexKey() from hub project because this is very generic code.
Roland Häder [Sun, 6 Nov 2011 03:19:03 +0000 (03:19 +0000)]
Moved getIndexKey() from hub project because this is very generic code.

12 years agoUse $this->debugBackTrace() instead of die()
Roland Häder [Sun, 6 Nov 2011 02:42:15 +0000 (02:42 +0000)]
Use $this->debugBackTrace() instead of die()

12 years agoSome minor improvements:
Roland Häder [Fri, 4 Nov 2011 19:30:52 +0000 (19:30 +0000)]
Some minor improvements:
- $socket renamed to $socketResource
- InvalidSocketException enhanced to accept a socket resource at index 1

12 years agoresultType is now removed (was not used anyway)
Roland Häder [Thu, 27 Oct 2011 16:26:39 +0000 (16:26 +0000)]
resultType is now removed (was not used anyway)

12 years agoMinor cleanups:
Roland Häder [Mon, 24 Oct 2011 23:23:43 +0000 (23:23 +0000)]
Minor cleanups:
- Commented out noisy debug line
- Added TODO, this method shall be more configurable

12 years agoSome 'static' array elements rewritten to constant, other cleanups
Roland Häder [Thu, 1 Sep 2011 07:42:12 +0000 (07:42 +0000)]
Some 'static' array elements rewritten to constant, other cleanups

12 years agoImplemented a fall-back if the first compressor class doesn't work
Roland Häder [Wed, 31 Aug 2011 20:43:41 +0000 (20:43 +0000)]
Implemented a fall-back if the first compressor class doesn't work

12 years agoGzipCompressor now uses the right functions
Roland Häder [Wed, 31 Aug 2011 20:30:56 +0000 (20:30 +0000)]
GzipCompressor now uses the right functions

12 years agoAdded ZlibCompressor class, GzipCompressor used zlib functions by mistake
Roland Häder [Wed, 31 Aug 2011 20:29:04 +0000 (20:29 +0000)]
Added ZlibCompressor class, GzipCompressor used zlib functions by mistake

12 years agoAll backtraces now have a small message.
Roland Häder [Wed, 31 Aug 2011 20:03:08 +0000 (20:03 +0000)]
All backtraces now have a small message.

12 years agoSome cleanups, more usage of ObjectFactory:
Roland Häder [Wed, 31 Aug 2011 19:27:22 +0000 (19:27 +0000)]
Some cleanups, more usage of ObjectFactory:
- Used more ObjectFactory to instance a new class (in local file database)
- The class LocalFileDatabase and CompressorChannel can now be instanced without
  any paramters
- Renamed 'null' to 'NULL'

12 years agoMethod getResponseTypeFromSystem() introduced
Roland Häder [Wed, 31 Aug 2011 09:10:08 +0000 (09:10 +0000)]
Method getResponseTypeFromSystem() introduced

12 years agoMinor improvements here and there:
Roland Häder [Thu, 21 Jul 2011 20:17:38 +0000 (20:17 +0000)]
Minor improvements here and there:
- Messages of socket exceptions made more clear
- $protocolInstance can be NULL

12 years agoDebug lines slightly extended
Roland Häder [Wed, 20 Jul 2011 00:50:03 +0000 (00:50 +0000)]
Debug lines slightly extended

12 years agoMore concrete exceptions added, BaseController rewritten:
Roland Häder [Wed, 20 Jul 2011 00:32:03 +0000 (00:32 +0000)]
More concrete exceptions added, BaseController rewritten:
- Exceptions added, please use these instead of InvalidSocketExceptio
- All filters in BaseController are now named in class constants

12 years agoNow two methods should never be called, the UnsupportedOperationException will
Roland Häder [Tue, 17 May 2011 21:37:08 +0000 (21:37 +0000)]
Now two methods should never be called, the UnsupportedOperationException will
be thrown if you still do so.

12 years agoClass loader instance "cached"
Roland Häder [Thu, 12 May 2011 09:24:12 +0000 (09:24 +0000)]
Class loader instance "cached"

12 years agoGetter for source instance added.
Roland Häder [Sat, 30 Apr 2011 00:13:30 +0000 (00:13 +0000)]
Getter for source instance added.

12 years agoOpps...
Roland Häder [Thu, 28 Apr 2011 14:35:21 +0000 (14:35 +0000)]
Opps...

12 years agopopNamed() does also now return the current stacker's value.
Roland Häder [Thu, 28 Apr 2011 14:34:37 +0000 (14:34 +0000)]
popNamed() does also now return the current stacker's value.

12 years agoAdded a counter for all generated objects.
Roland Häder [Mon, 25 Apr 2011 19:47:01 +0000 (19:47 +0000)]
Added a counter for all generated objects.

13 years agoBetter IP than hostname
Roland Häder [Wed, 20 Apr 2011 23:23:01 +0000 (23:23 +0000)]
Better IP than hostname

13 years agoUpdated port number for default bootstrapper
Roland Häder [Wed, 20 Apr 2011 23:20:04 +0000 (23:20 +0000)]
Updated port number for default bootstrapper

13 years agoSupport for application local configuration file 'config-local.php' added
Roland Häder [Wed, 20 Apr 2011 05:35:14 +0000 (05:35 +0000)]
Support for application local configuration file 'config-local.php' added

13 years agoReverted last commit for 3rd party libs
Roland Häder [Wed, 20 Apr 2011 04:23:48 +0000 (04:23 +0000)]
Reverted last commit for 3rd party libs

13 years agoeol-style set #3
Roland Häder [Wed, 20 Apr 2011 04:22:48 +0000 (04:22 +0000)]
eol-style set #3

13 years agoeol-style set #2
Roland Häder [Wed, 20 Apr 2011 04:08:28 +0000 (04:08 +0000)]
eol-style set #2

13 years agoeol-style set
Roland Häder [Wed, 20 Apr 2011 04:06:52 +0000 (04:06 +0000)]
eol-style set

13 years agoVisitor instances can now be stored in all objects for speeding up the code.
Roland Häder [Wed, 20 Apr 2011 01:52:56 +0000 (01:52 +0000)]
Visitor instances can now be stored in all objects for speeding up the code.

13 years agoMoved $handlerInstance from BaseHubSystem to BaseFrameworkSystem
Roland Häder [Tue, 19 Apr 2011 01:15:11 +0000 (01:15 +0000)]
Moved $handlerInstance from BaseHubSystem to BaseFrameworkSystem

13 years agoPrimeraApi improved, some code cosmetics:
Roland Häder [Tue, 19 Apr 2011 00:23:39 +0000 (00:23 +0000)]
PrimeraApi improved, some code cosmetics:
- PrimerApi improved:
  + All methods and fields are now written "lowerCamelCase"
  + Many double-quotes replaced with single to speed up things
  + POST request is now sent in one big pice (and not line-by-line)
- Code cosmetics applied

13 years agoAdded 'abstract' to the class because doExecute() is abstract, too.
Roland Häder [Mon, 18 Apr 2011 22:16:45 +0000 (22:16 +0000)]
Added 'abstract' to the class because doExecute() is abstract, too.

13 years agoErrors from time_sleep_until() are now ignored, it may sometimes happen and annoying...
Roland Häder [Mon, 18 Apr 2011 20:53:00 +0000 (20:53 +0000)]
Errors from time_sleep_until() are now ignored, it may sometimes happen and annoying in console output.

13 years agoAdded missing brace... :(
Roland Häder [Mon, 18 Apr 2011 20:48:52 +0000 (20:48 +0000)]
Added missing brace... :(

13 years agoRewritten private fields (for seperators) to public class constants.
Roland Häder [Mon, 18 Apr 2011 20:36:12 +0000 (20:36 +0000)]
Rewritten private fields (for seperators) to public class constants.

13 years agoAdded isBase64Encoded() with a simple check on Base64-encoded messages.
Roland Häder [Mon, 18 Apr 2011 16:53:56 +0000 (16:53 +0000)]
Added isBase64Encoded() with a simple check on Base64-encoded messages.

13 years agoAdded missing field wrapperInstance (thanks to __set() ).
Roland Häder [Sun, 17 Apr 2011 23:52:41 +0000 (23:52 +0000)]
Added missing field wrapperInstance (thanks to __set() ).

13 years agoAlso wrong ... :(
Roland Häder [Sun, 17 Apr 2011 18:54:27 +0000 (18:54 +0000)]
Also wrong ... :(

13 years agoWrong naming...
Roland Häder [Sun, 17 Apr 2011 18:52:48 +0000 (18:52 +0000)]
Wrong naming...

13 years agoAdded class templates for I/O classes
Roland Häder [Sun, 17 Apr 2011 18:49:10 +0000 (18:49 +0000)]
Added class templates for I/O classes

13 years agoAdded required method streamData(), maybe someday we will rewrite these classes?
Roland Häder [Sun, 17 Apr 2011 18:16:13 +0000 (18:16 +0000)]
Added required method streamData(), maybe someday we will rewrite these classes?

13 years agoThese classes won't be used because all I/O streams can easily extend BaseStream.
Roland Häder [Thu, 14 Apr 2011 21:11:21 +0000 (21:11 +0000)]
These classes won't be used because all I/O streams can easily extend BaseStream.

13 years agoAdded streamData() method to interface Streamable
Roland Häder [Thu, 14 Apr 2011 21:09:20 +0000 (21:09 +0000)]
Added streamData() method to interface Streamable

13 years agoAdded setter/getter for I/O streams
Roland Häder [Thu, 14 Apr 2011 20:52:26 +0000 (20:52 +0000)]
Added setter/getter for I/O streams

13 years agoAdded new general I/O stream classes and interfaces. Still the interfaces have no...
Roland Häder [Thu, 14 Apr 2011 20:41:26 +0000 (20:41 +0000)]
Added new general I/O stream classes and interfaces. Still the interfaces have no methods but they will be added soon

13 years agoFixed... Opps.
Roland Häder [Thu, 7 Apr 2011 22:48:29 +0000 (22:48 +0000)]
Fixed... Opps.

13 years agoCleanups, re-initialization of stackers added:
Roland Häder [Thu, 7 Apr 2011 22:45:39 +0000 (22:45 +0000)]
Cleanups, re-initialization of stackers added:
- Moved patch_i.sh to contrib
- Marked MissingMethodException as deprecated (old-lost exception)
- Stackers can be forced to re-initialize (aka. "reset")

13 years agoExtra but optional instance now supported in UnsupportedOperationException
Roland Häder [Tue, 5 Apr 2011 21:20:59 +0000 (21:20 +0000)]
Extra but optional instance now supported in UnsupportedOperationException

13 years ago- Introduced prependStringToString() which can prepend a string to an other by
Roland Häder [Mon, 4 Apr 2011 23:44:28 +0000 (23:44 +0000)]
- Introduced prependStringToString() which can prepend a string to an other by
  maintaining the total length. The prepended string will be truncated so the
  total length will not be exceeded.
- Some debug messages added/commented out