Clemens Schwaighofer 4f2ac2ed1b Change Logging class / method name and Debug Support for backtrace
Debug Support:
getCallerClass now returns level 1 class from the trace like the
getCallerMethod. There is also a new getCallerClassMethod that returns
namespace\class->method (or :: for static).

getCallerTopLevelClass works like getCallerClass did before and returns
the TOP level (first entry on the call stack that has a set class name)

Logging:
Do not use the Support getCallerClass/Method/File but call it inside
and use level 2 in trace to get the data we need For the last call
before debug call
Also update the strack trace for the debug call to use ->/:: for method
type
2023-08-22 13:28:59 +09:00
2023-05-31 17:32:00 +09:00
2023-08-22 13:04:19 +09:00
2013-12-11 15:58:37 +09:00
2023-05-29 16:21:51 +09:00
2023-08-22 13:04:19 +09:00
2018-01-10 10:58:04 +09:00
2023-03-09 15:55:57 +09:00
2023-03-09 15:55:57 +09:00
2023-03-09 15:55:57 +09:00
2023-03-09 15:55:57 +09:00

PHP Core Library

Code Standard

  • Uses PSR-12
  • tab indent instead of 4 spaces indent

General information

Base PHP class files to setup any project

  • login
  • database wrapper
  • basic helper class for debugging and other features
  • admin/frontend split
  • domain controlled database/settings split
  • dynamic layout groups

NOTE

There are three branches:

master

The active branch, which is the namespace branch. Compatible with PHP 8.1 or higher

legacy (deprecated)

The old non namepsace format layout. This is fully deprecated and will no longer be maintaned. last tested PHP 5.6 and PHP 7.0

development

Any current development is done here

Static checks

With phpstan (4dev/checking/phpstan.sh) vendor/bin/phpstan

With phan (4dev/checking/phan.sh) vendor/bin/phan --progress-bar -C --analyze-twice

pslam is setup but not configured

Unit tests

With phpunit (4dev/checking/phpunit.sh) www/vendor/bin/phpunit -c $phpunit.xml 4dev/tests/

Other Notes

Session used

The following classes use _SESSION The main one is ACL\Login, this class will fail without a session started

  • \CoreLibs\ACL\Login
  • \CoreLibs\Admin\Backend
  • \CoreLibs\Output\Form\Generate
  • \CoreLibs\Output\Form\Token
  • \CoreLibs\Template\SmartyExtend

Class extends

The following classes extend these classes

  • \CoreLibs\ACL\Login extends \CoreLibs\DB\IO
  • \CoreLibs\Admin\Backend extends \CoreLibs\DB\IO
  • \CoreLibs\DB\Extended\ArrayIO extends \CoreLibs\DB\IO
  • \CoreLibs\Output\Form\Generate extends \CoreLibs\DB\Extended\ArrayIO
  • \CoreLibs\Template\SmartyExtend extends SmartyBC

Class used

The following classes use the following classes

  • \CoreLibs\ACL\Login uses \CoreLibs\Debug\Logging, \CoreLibs\Language\L10n
  • \CoreLibs\DB\IO uses \CoreLibs\Debug\Logging, \CoreLibs\DB\SQL\PgSQL
  • \CoreLibs\Admin\Backend uses \CoreLibs\Debug\Logging, \CoreLibs\Language\L10n
  • \CoreLibs\Output\Form\Generate uses \CoreLibs\Debug\Logging, \CoreLibs\Language\L10n
  • \CoreLibs\Template\SmartyExtend uses \CoreLibs\Language\L10n
  • \CoreLibs\Language\L10n uses FileReader, GetTextReader
  • \CoreLibs\Admin\EditBase uses \CoreLibs\Debug\Logging, \CoreLibs\Language\L10n

Class internal load

Loads classes internal (not passed in, not extend)

  • \CoreLibs\Admin\EditBase loads \CoreLibs\Template\SmartyExtend, \CoreLibs\Output\Form\Generate
  • \CoreLibs\Output\From\Generate loads \CoreLibs\Debug\Logging, \CoreLibs\Language\L10n if not passed on
  • \CoreLibs\Output\From\Generate loads \CoreLibs\Output\From\TableArrays
Description
Main development folder for the CoreLibs for PHP This one is not for composer package creation, the composer base package source is in the "composer" repository
Readme GPL-3.0 34 MiB
Languages
JavaScript 51.6%
PHP 42.3%
PLpgSQL 2.2%
CSS 1.6%
Smarty 0.7%
Other 1.6%