PHP utility collection with hybrid and fluent APIs.

⌈⌋ branch:  hybrid7 libraries


Check-in [b453cef6ba]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove debugging examples.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b453cef6ba2a444e76cd948aec81a5dac87f886c
User & Date: mario 2015-01-06 17:29:39
Context
2015-01-07
15:32
Silently return NULL for absent ->column data from first result row. check-in: 1cfd351bc9 user: mario tags: trunk
2015-01-06
17:29
Remove debugging examples. check-in: b453cef6ba user: mario tags: trunk
14:04
Cleaned up intro documentation, externalized and detailed in Wiki now. Prepare tree grouping via `:p`, order injector calls last, fix :version meta extractor. check-in: e71d6c53c0 user: mario tags: trunk
Changes

Changes to logstruck.php.

    97     97    * Database keys are also used as internal dict names. Anything that doesn't
    98     98    * map will be merged into `context`.
    99     99    * 
   100    100    * 
   101    101    */
   102    102   
   103    103   
   104         -#ł(':info', ':test', "Just testing if anything works", ':backtrace', ':server');
   105         -#ł(':debug', ':test', "Second entry", "errno: 5", ':vars', "random: 2", "file: t.php", "line: 20");
   106         -#ł(':crit', ':logging', "Debug :vars = _ENV", ':vars', $_ENV);
   107         -
   108    104   
   109    105   /**
   110    106    * Automatically declare PHP handlers for Errors, Assertions, Exceptions.
   111    107    *
   112    108    */
   113    109   set_error_handler("ł::error_handler");
   114    110   set_exception_handler("ł::exception_handler");
   115    111   assert_options(ASSERT_CALLBACK, "ł::assert_handler");
   116    112   
   117         -#test
   118         -function run() {
   119         -    assert(" 1 == 2;  // never true");
   120         -    UNDEFINED_THINGY;
   121         -    throw new Exception("Yikes", 0x200);
   122         -}
   123         -run(1,2,3);
   124    113   
   125    114   
   126    115   /**
   127         - * Hybrid invocation as plain function.
   128         - *
          116  + * Hybrid logger invocation.
          117  + *               ‾‾‾‾‾‾‾‾‾‾
          118  + * Accepts message, :prio, :section, [array], and :injector params
          119  + * in any order. Instantiates a main logging group on first call.
   129    120    *
   130    121    */
   131    122   function ł(/*...*/) {
   132    123   
   133    124       // keep one logger object around, which retains event parent/group id
   134    125       static $logger;
   135    126       if (!isset($logger)) {   // set default values and interpolators here