From c8d275be3191b49b137999f1ab15bf963c7673ee Mon Sep 17 00:00:00 2001 From: Dominique FOURNIER Date: Fri, 7 May 2021 12:19:08 +0200 Subject: [PATCH] Rename all the files to camelCase and update the class name in the files --- src/{auth.php => Auth.php} | 2 +- ...{authentication.php => Authentication.php} | 2 +- src/{authhtpasswd.php => Authhtpasswd.php} | 2 +- src/{authimap.php => Authimap.php} | 2 +- src/{authjwt.php => Authjwt.php} | 4 +-- src/{authldap.php => Authldap.php} | 2 +- src/{authorization.php => Authorization.php} | 2 +- ...uthorizationdb.php => Authorizationdb.php} | 2 +- src/{authparams.php => Authparams.php} | 2 +- src/{authsession.php => Authsession.php} | 2 +- ...{authshibboleth.php => Authshibboleth.php} | 2 +- src/{authsql.php => Authsql.php} | 2 +- src/{authsympa.php => Authsympa.php} | 2 +- src/{authzgroups.php => Authzgroups.php} | 2 +- src/{authzgroupsoo.php => Authzgroupsoo.php} | 2 +- src/{backtrace.php => Backtrace.php} | 2 +- src/{cachefile.php => Cachefile.php} | 2 +- src/{cacheoutput.php => Cacheoutput.php} | 2 +- ...thority.php => Certificationauthority.php} | 2 +- src/{cli.php => Cli.php} | 2 +- src/{color.php => Color.php} | 2 +- src/{config.php => Config.php} | 2 +- src/{console.php => Console.php} | 2 +- src/{convert.php => Convert.php} | 2 +- src/{csrf.php => Csrf.php} | 2 +- src/{daemon.php => Daemon.php} | 2 +- src/{dbjson.php => Dbjson.php} | 2 +- src/{dblayer.php => Dblayer.php} | 4 +-- ...authzgroups.php => Dblayerauthzgroups.php} | 2 +- src/{dblayeroo.php => Dblayeroo.php} | 2 +- src/{encrypt.php => Encrypt.php} | 2 +- src/{file.php => File.php} | 2 +- src/{fork.php => Fork.php} | 2 +- src/{form.php => Form.php} | 2 +- src/{fts.php => Fts.php} | 2 +- src/{getopts.php => Getopts.php} | 2 +- src/{graph.php => Graph.php} | 32 +++++++++---------- src/{http.php => Http.php} | 2 +- src/{httpclient.php => Httpclient.php} | 0 src/{imap.php => Imap.php} | 2 +- src/{inifile.php => Inifile.php} | 2 +- src/{ipaddresses.php => Ipaddresses.php} | 2 +- src/{jwt.php => Jwt.php} | 2 +- src/{language.php => Language.php} | 2 +- src/{lockfile.php => Lockfile.php} | 2 +- src/{logger.php => Logger.php} | 2 +- src/{macaddresses.php => Macaddresses.php} | 2 +- src/{mail.php => Mail.php} | 2 +- src/{markdown.php => Markdown.php} | 2 +- src/{module.php => Module.php} | 2 +- src/{output.php => Output.php} | 2 +- src/{outputcsv.php => Outputcsv.php} | 2 +- src/{outputdl.php => Outputdl.php} | 2 +- src/{outputhtml.php => Outputhtml.php} | 2 +- src/{outputjson.php => Outputjson.php} | 2 +- src/{outputrest.php => Outputrest.php} | 2 +- src/{outputtxt.php => Outputtxt.php} | 2 +- src/{outputxml.php => Outputxml.php} | 2 +- src/{password.php => Password.php} | 2 +- src/{queue.php => Queue.php} | 2 +- src/{queuefile.php => Queuefile.php} | 2 +- src/{ratelimit.php => Ratelimit.php} | 2 +- src/{ratelimitfile.php => Ratelimitfile.php} | 2 +- src/{renderer.php => Renderer.php} | 2 +- src/{rest.php => Rest.php} | 2 +- src/{robotstxt.php => Robotstxt.php} | 2 +- src/{route.php => Route.php} | 2 +- src/{routeSQL.php => RouteSQL.php} | 2 +- src/{rss.php => Rss.php} | 10 +++--- src/{sitemap.php => Sitemap.php} | 2 +- src/{smtp.php => Smtp.php} | 2 +- src/{spfcheck.php => Spfcheck.php} | 2 +- src/{sse.php => Sse.php} | 2 +- src/{tcpclient.php => Tcpclient.php} | 2 +- src/{tcpserver.php => Tcpserver.php} | 2 +- src/{users.php => Users.php} | 2 +- src/{userssql.php => Userssql.php} | 2 +- src/{uuid.php => Uuid.php} | 2 +- src/{verify.php => Verify.php} | 2 +- src/{version.php => Version.php} | 0 src/{xdiff.php => Xdiff.php} | 2 +- src/{xmppclient.php => Xmppclient.php} | 2 +- 82 files changed, 101 insertions(+), 101 deletions(-) rename src/{auth.php => Auth.php} (99%) rename src/{authentication.php => Authentication.php} (99%) rename src/{authhtpasswd.php => Authhtpasswd.php} (99%) rename src/{authimap.php => Authimap.php} (99%) rename src/{authjwt.php => Authjwt.php} (98%) rename src/{authldap.php => Authldap.php} (99%) rename src/{authorization.php => Authorization.php} (99%) rename src/{authorizationdb.php => Authorizationdb.php} (99%) rename src/{authparams.php => Authparams.php} (99%) rename src/{authsession.php => Authsession.php} (99%) rename src/{authshibboleth.php => Authshibboleth.php} (99%) rename src/{authsql.php => Authsql.php} (99%) rename src/{authsympa.php => Authsympa.php} (99%) rename src/{authzgroups.php => Authzgroups.php} (99%) rename src/{authzgroupsoo.php => Authzgroupsoo.php} (99%) rename src/{backtrace.php => Backtrace.php} (99%) rename src/{cachefile.php => Cachefile.php} (99%) rename src/{cacheoutput.php => Cacheoutput.php} (99%) rename src/{certificationauthority.php => Certificationauthority.php} (99%) rename src/{cli.php => Cli.php} (99%) rename src/{color.php => Color.php} (99%) rename src/{config.php => Config.php} (99%) rename src/{console.php => Console.php} (99%) rename src/{convert.php => Convert.php} (99%) rename src/{csrf.php => Csrf.php} (99%) rename src/{daemon.php => Daemon.php} (99%) rename src/{dbjson.php => Dbjson.php} (99%) rename src/{dblayer.php => Dblayer.php} (99%) rename src/{dblayerauthzgroups.php => Dblayerauthzgroups.php} (99%) rename src/{dblayeroo.php => Dblayeroo.php} (99%) rename src/{encrypt.php => Encrypt.php} (99%) rename src/{file.php => File.php} (99%) rename src/{fork.php => Fork.php} (99%) rename src/{form.php => Form.php} (99%) rename src/{fts.php => Fts.php} (99%) rename src/{getopts.php => Getopts.php} (99%) rename src/{graph.php => Graph.php} (99%) rename src/{http.php => Http.php} (99%) rename src/{httpclient.php => Httpclient.php} (100%) rename src/{imap.php => Imap.php} (99%) rename src/{inifile.php => Inifile.php} (99%) rename src/{ipaddresses.php => Ipaddresses.php} (99%) rename src/{jwt.php => Jwt.php} (99%) rename src/{language.php => Language.php} (99%) rename src/{lockfile.php => Lockfile.php} (99%) rename src/{logger.php => Logger.php} (99%) rename src/{macaddresses.php => Macaddresses.php} (99%) rename src/{mail.php => Mail.php} (99%) rename src/{markdown.php => Markdown.php} (99%) rename src/{module.php => Module.php} (99%) rename src/{output.php => Output.php} (96%) rename src/{outputcsv.php => Outputcsv.php} (97%) rename src/{outputdl.php => Outputdl.php} (99%) rename src/{outputhtml.php => Outputhtml.php} (99%) rename src/{outputjson.php => Outputjson.php} (97%) rename src/{outputrest.php => Outputrest.php} (97%) rename src/{outputtxt.php => Outputtxt.php} (99%) rename src/{outputxml.php => Outputxml.php} (98%) rename src/{password.php => Password.php} (99%) rename src/{queue.php => Queue.php} (99%) rename src/{queuefile.php => Queuefile.php} (99%) rename src/{ratelimit.php => Ratelimit.php} (98%) rename src/{ratelimitfile.php => Ratelimitfile.php} (99%) rename src/{renderer.php => Renderer.php} (99%) rename src/{rest.php => Rest.php} (99%) rename src/{robotstxt.php => Robotstxt.php} (99%) rename src/{route.php => Route.php} (99%) rename src/{routeSQL.php => RouteSQL.php} (99%) rename src/{rss.php => Rss.php} (98%) rename src/{sitemap.php => Sitemap.php} (99%) rename src/{smtp.php => Smtp.php} (99%) rename src/{spfcheck.php => Spfcheck.php} (99%) rename src/{sse.php => Sse.php} (99%) rename src/{tcpclient.php => Tcpclient.php} (99%) rename src/{tcpserver.php => Tcpserver.php} (99%) rename src/{users.php => Users.php} (99%) rename src/{userssql.php => Userssql.php} (99%) rename src/{uuid.php => Uuid.php} (98%) rename src/{verify.php => Verify.php} (99%) rename src/{version.php => Version.php} (100%) rename src/{xdiff.php => Xdiff.php} (99%) rename src/{xmppclient.php => Xmppclient.php} (99%) diff --git a/src/auth.php b/src/Auth.php similarity index 99% rename from src/auth.php rename to src/Auth.php index 6352ec8..d8afc84 100644 --- a/src/auth.php +++ b/src/Auth.php @@ -8,7 +8,7 @@ namespace Domframework; /** User authentication (abstract class) */ -class auth +class Auth { /** The application name */ public $appName = null; diff --git a/src/authentication.php b/src/Authentication.php similarity index 99% rename from src/authentication.php rename to src/Authentication.php index 672f28c..17ee793 100644 --- a/src/authentication.php +++ b/src/Authentication.php @@ -8,7 +8,7 @@ namespace Domframework; /** All the authentication protocol */ -class authentication +class Authentication { /** The email of the authenticated/nonauthenticated user */ //private $email = "anonymous"; diff --git a/src/authhtpasswd.php b/src/Authhtpasswd.php similarity index 99% rename from src/authhtpasswd.php rename to src/Authhtpasswd.php index 4d49209..d71342b 100644 --- a/src/authhtpasswd.php +++ b/src/Authhtpasswd.php @@ -11,7 +11,7 @@ namespace Domframework; A .htpasswd can be created by the 'htpasswd' command for Apache, and contain toto@toto.com:$2y$05$uHCUNqicE7Pku3MK1qZaDuJxP/pocqCcEAnacZBjsfWgW9EcuG5y2 */ -class authhtpasswd extends auth +class Authhtpasswd extends Auth { /** The .htpasswd file to use for authentication */ public $htpasswdFile; diff --git a/src/authimap.php b/src/Authimap.php similarity index 99% rename from src/authimap.php rename to src/Authimap.php index d5a7d7a..b49e4ed 100644 --- a/src/authimap.php +++ b/src/Authimap.php @@ -8,7 +8,7 @@ namespace Domframework; /** User authentication against IMAP server */ -class authimap extends auth +class Authimap extends Auth { /** IMAP server */ public $imapServer = "localhost"; diff --git a/src/authjwt.php b/src/Authjwt.php similarity index 98% rename from src/authjwt.php rename to src/Authjwt.php index 8ad8cc4..332daa0 100644 --- a/src/authjwt.php +++ b/src/Authjwt.php @@ -7,11 +7,11 @@ namespace Domframework; -/bin/bash: n : commande introuvable + /* * To use it, the $serverKey must be defined. It can be created by example, * by using $serverKey = sha1 (microtime (true)); */ -class authjwt extends auth +class Authjwt extends Auth { // PROPERTIES SET BY AUTH /** The JSON Web Token Server key if used diff --git a/src/authldap.php b/src/Authldap.php similarity index 99% rename from src/authldap.php rename to src/Authldap.php index f93dc4b..b37ba41 100644 --- a/src/authldap.php +++ b/src/Authldap.php @@ -8,7 +8,7 @@ namespace Domframework; /** User authentication against LDAP server */ -class authldap extends auth +class Authldap extends Auth { /** LDAP server : can be ldaps://server.domain.tld if LDAPS */ public $ldapserver="localhost"; diff --git a/src/authorization.php b/src/Authorization.php similarity index 99% rename from src/authorization.php rename to src/Authorization.php index 992fce8..2fa035c 100644 --- a/src/authorization.php +++ b/src/Authorization.php @@ -9,7 +9,7 @@ namespace Domframework; /** All the needed functions to authorize or deny access to an authenticated user */ -class authorization +class Authorization { /** Separator between differents modules/objects */ private $separator = "/"; diff --git a/src/authorizationdb.php b/src/Authorizationdb.php similarity index 99% rename from src/authorizationdb.php rename to src/Authorizationdb.php index 6179d57..9659843 100644 --- a/src/authorizationdb.php +++ b/src/Authorizationdb.php @@ -9,7 +9,7 @@ namespace Domframework; /** All the needed functions to authorize or deny access to an authenticated user */ -class authorizationdb extends authorization +class Authorizationdb extends Authorization { /** Separator between differents modules/objects */ private $separator = "/"; diff --git a/src/authparams.php b/src/Authparams.php similarity index 99% rename from src/authparams.php rename to src/Authparams.php index 45952af..8c3701c 100644 --- a/src/authparams.php +++ b/src/Authparams.php @@ -8,7 +8,7 @@ namespace Domframework; /** Takes the email and the password of the user */ -class authparams +class Authparams { /** The email of the user when provided */ public $email = null; diff --git a/src/authsession.php b/src/Authsession.php similarity index 99% rename from src/authsession.php rename to src/Authsession.php index 746b727..9dd08ec 100644 --- a/src/authsession.php +++ b/src/Authsession.php @@ -8,7 +8,7 @@ namespace Domframework; /** User authentication against SESSION */ -class authsession extends auth +class Authsession extends Auth { /** Check if there is already a session or the user can not be authenticated */ diff --git a/src/authshibboleth.php b/src/Authshibboleth.php similarity index 99% rename from src/authshibboleth.php rename to src/Authshibboleth.php index 9238bd6..ee65718 100644 --- a/src/authshibboleth.php +++ b/src/Authshibboleth.php @@ -8,7 +8,7 @@ namespace Domframework; /** User authentication against Shibboleth */ -class authshibboleth extends auth +class Authshibboleth extends Auth { /** The Lastname parameter returned by Shibboleth server */ public $lastnameParam = "sn"; diff --git a/src/authsql.php b/src/Authsql.php similarity index 99% rename from src/authsql.php rename to src/Authsql.php index 87a4756..a17e8c1 100644 --- a/src/authsql.php +++ b/src/Authsql.php @@ -8,7 +8,7 @@ namespace Domframework; /** User authentication against SQL database */ -class authsql extends auth +class Authsql extends Auth { /** The DSN to use to connect to SQL database */ diff --git a/src/authsympa.php b/src/Authsympa.php similarity index 99% rename from src/authsympa.php rename to src/Authsympa.php index f5782d9..69efcd9 100644 --- a/src/authsympa.php +++ b/src/Authsympa.php @@ -23,7 +23,7 @@ $auth->list = "listtest@lists.domain.tld"; $auth->connect (); var_dump ($auth->authentication ("user@domain.tld", "Pa$$word!")); */ -class authsympa extends auth +class Authsympa extends Auth { /** URL of the WSDL Sympa server */ public $wsdl = null; diff --git a/src/authzgroups.php b/src/Authzgroups.php similarity index 99% rename from src/authzgroups.php rename to src/Authzgroups.php index b64c362..96e065b 100644 --- a/src/authzgroups.php +++ b/src/Authzgroups.php @@ -9,7 +9,7 @@ namespace Domframework; /** All the needed functions to authorize or deny access to an authenticated user by its groups membership */ -class authzgroups +class Authzgroups { /** The table prefix to use */ public $tableprefix = ""; diff --git a/src/authzgroupsoo.php b/src/Authzgroupsoo.php similarity index 99% rename from src/authzgroupsoo.php rename to src/Authzgroupsoo.php index 64366a3..f300c32 100644 --- a/src/authzgroupsoo.php +++ b/src/Authzgroupsoo.php @@ -11,7 +11,7 @@ namespace Domframework; * user by its groups membership * Based on dblayeroo */ -class authzgroupsoo +class Authzgroupsoo { /** The table prefix to use */ public $tableprefix = ""; diff --git a/src/backtrace.php b/src/Backtrace.php similarity index 99% rename from src/backtrace.php rename to src/Backtrace.php index 111d0b9..e062dc6 100644 --- a/src/backtrace.php +++ b/src/Backtrace.php @@ -9,7 +9,7 @@ namespace Domframework; /** Display the backtrace in HTML with clicks to display the content */ -class backtrace +class Backtrace { /** Display the backtrace in the browser * use: \backtrace::show (debug_backtrace ()); diff --git a/src/cachefile.php b/src/Cachefile.php similarity index 99% rename from src/cachefile.php rename to src/Cachefile.php index bb70bf9..36d95a4 100644 --- a/src/cachefile.php +++ b/src/Cachefile.php @@ -9,7 +9,7 @@ namespace Domframework; /** A cache manager in file */ -class cachefile +class Cachefile { /** Where to store the cached information */ diff --git a/src/cacheoutput.php b/src/Cacheoutput.php similarity index 99% rename from src/cacheoutput.php rename to src/Cacheoutput.php index a0cf4db..d77251b 100644 --- a/src/cacheoutput.php +++ b/src/Cacheoutput.php @@ -14,7 +14,7 @@ namespace Domframework; * $c = new cacheoutput ("URL"); * Don't forget to define a variable or the cache saved is always empty */ -class cacheoutput +class Cacheoutput { /** Record if the saving of pages is on going */ private $saving = false; diff --git a/src/certificationauthority.php b/src/Certificationauthority.php similarity index 99% rename from src/certificationauthority.php rename to src/Certificationauthority.php index 2fb03e3..e4e2819 100644 --- a/src/certificationauthority.php +++ b/src/Certificationauthority.php @@ -9,7 +9,7 @@ namespace Domframework; /** An certificate authority */ -class certificationauthority +class Certificationauthority { // PROPERTIES // {{{ diff --git a/src/cli.php b/src/Cli.php similarity index 99% rename from src/cli.php rename to src/Cli.php index 89d3506..cf7615e 100644 --- a/src/cli.php +++ b/src/Cli.php @@ -8,7 +8,7 @@ namespace Domframework; /** Allow to interract with controllers and models from the CLI */ -class cli +class Cli { /** Run in CLI mode with parameters * Example of cli code : diff --git a/src/color.php b/src/Color.php similarity index 99% rename from src/color.php rename to src/Color.php index 3bdfc1b..e6d7127 100644 --- a/src/color.php +++ b/src/Color.php @@ -9,7 +9,7 @@ namespace Domframework; /** Convert the name of colors to RGB */ -class color +class Color { /** The color list * From http://www.rapidtables.com/web/color/index.htm diff --git a/src/config.php b/src/Config.php similarity index 99% rename from src/config.php rename to src/Config.php index 3cfd04d..b383c06 100644 --- a/src/config.php +++ b/src/Config.php @@ -25,7 +25,7 @@ namespace Domframework; * "param3"=>null); * $var = $config->get ("param"); */ -class config +class Config { /** All the parameters allowed with their default value */ public $default = array (); diff --git a/src/console.php b/src/Console.php similarity index 99% rename from src/console.php rename to src/Console.php index afc7ee1..bc01ead 100644 --- a/src/console.php +++ b/src/Console.php @@ -23,7 +23,7 @@ namespace Domframework; * $console->updateTerminalSize (); * }); */ -class console +class Console { // PROPERTIES // {{{ diff --git a/src/convert.php b/src/Convert.php similarity index 99% rename from src/convert.php rename to src/Convert.php index 7950d59..c6c41f8 100644 --- a/src/convert.php +++ b/src/Convert.php @@ -9,7 +9,7 @@ namespace Domframework; /** Convert a format to another one */ -class convert +class Convert { /** Convert Date received in one format to another. * If the provided string is not corresponding to the format, generate an diff --git a/src/csrf.php b/src/Csrf.php similarity index 99% rename from src/csrf.php rename to src/Csrf.php index b0f9df0..f130ed4 100644 --- a/src/csrf.php +++ b/src/Csrf.php @@ -12,7 +12,7 @@ namespace Domframework; * It can be disabled if needed. An Exception is raised if the form is send * back without the token */ -class csrf +class Csrf { /** Allow to disable the csrf protection */ diff --git a/src/daemon.php b/src/Daemon.php similarity index 99% rename from src/daemon.php rename to src/Daemon.php index 8618393..e7d5918 100644 --- a/src/daemon.php +++ b/src/Daemon.php @@ -10,7 +10,7 @@ namespace Domframework; /** Manage a daemon. * Allow to start, stop, get status of a callable method */ -class daemon +class Daemon { /** Set the directory to store the PID of the daemon */ diff --git a/src/dbjson.php b/src/Dbjson.php similarity index 99% rename from src/dbjson.php rename to src/Dbjson.php index 0f6e624..b7bfa06 100644 --- a/src/dbjson.php +++ b/src/Dbjson.php @@ -21,7 +21,7 @@ namespace Domframework; * * - The field named _id is the document key */ -class dbjson +class Dbjson { /** The DSN of the connection */ private $dsn = ""; diff --git a/src/dblayer.php b/src/Dblayer.php similarity index 99% rename from src/dblayer.php rename to src/Dblayer.php index 84135a1..9ddd51d 100644 --- a/src/dblayer.php +++ b/src/Dblayer.php @@ -38,7 +38,7 @@ Optionnaly, you can add the */ /** Permit abstraction on the differents SQL databases available */ -class dblayer +class Dblayer { /** The table name to use */ public $table = null; @@ -1629,7 +1629,7 @@ class dblayer /** POC : error_reporting (E_ALL); -class zone extends dbLayer +class Zone extends DbLayer { // The database must be initialized with // CREATE TABLE `dns_zones` (id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, diff --git a/src/dblayerauthzgroups.php b/src/Dblayerauthzgroups.php similarity index 99% rename from src/dblayerauthzgroups.php rename to src/Dblayerauthzgroups.php index dd01cf0..fd7c912 100644 --- a/src/dblayerauthzgroups.php +++ b/src/Dblayerauthzgroups.php @@ -10,7 +10,7 @@ namespace Domframework; /** DBLayer with authorization * All the actions in database are conditionned to the rights in authzgroups */ -class dblayerauthzgroups extends dblayer +class Dblayerauthzgroups extends Dblayer { /** The authzgroups object, connected to the database */ public $authzgroups = null; diff --git a/src/dblayeroo.php b/src/Dblayeroo.php similarity index 99% rename from src/dblayeroo.php rename to src/Dblayeroo.php index 6d0c32c..d4a20fe 100644 --- a/src/dblayeroo.php +++ b/src/Dblayeroo.php @@ -9,7 +9,7 @@ namespace Domframework; /** Permit abstraction on the differents SQL databases available */ -class dblayeroo +class Dblayeroo { /** The table name to use */ diff --git a/src/encrypt.php b/src/Encrypt.php similarity index 99% rename from src/encrypt.php rename to src/Encrypt.php index 60e6d35..e883bfa 100644 --- a/src/encrypt.php +++ b/src/Encrypt.php @@ -9,7 +9,7 @@ namespace Domframework; /** Allow to encrypt/decrypt data */ -class encrypt +class Encrypt { /** Check if openssl library is enabled */ diff --git a/src/file.php b/src/File.php similarity index 99% rename from src/file.php rename to src/File.php index 09a39c5..8515f20 100644 --- a/src/file.php +++ b/src/File.php @@ -15,7 +15,7 @@ namespace Domframework; * must extends the class and overload checkExternalPathRO and * checkExternalPathRW. */ -class file +class File { /** The virtual current working directory */ private $cwd = "."; diff --git a/src/fork.php b/src/Fork.php similarity index 99% rename from src/fork.php rename to src/Fork.php index 866e10f..eaec33a 100644 --- a/src/fork.php +++ b/src/Fork.php @@ -9,7 +9,7 @@ namespace Domframework; /** Manage the fork of children in Posix mode */ -class fork +class Fork { /** The PID list of childs */ diff --git a/src/form.php b/src/Form.php similarity index 99% rename from src/form.php rename to src/Form.php index 70324d9..8eef4df 100644 --- a/src/form.php +++ b/src/Form.php @@ -11,7 +11,7 @@ namespace Domframework; * future). * Each field can be checked in AJAX or HTML. */ -class form +class Form { /** All the fields diff --git a/src/fts.php b/src/Fts.php similarity index 99% rename from src/fts.php rename to src/Fts.php index 78a0f3b..661ecb7 100644 --- a/src/fts.php +++ b/src/Fts.php @@ -16,7 +16,7 @@ namespace Domframework; * Do not search if the word is smaller than a parameter. * Each sentence or word can be modified by external methods separately */ -class fts +class Fts { /////////////////////////// //// PROPERTIES //// diff --git a/src/getopts.php b/src/Getopts.php similarity index 99% rename from src/getopts.php rename to src/Getopts.php index 064fdac..5a61633 100644 --- a/src/getopts.php +++ b/src/Getopts.php @@ -16,7 +16,7 @@ namespace Domframework; * can only be one letter * If the token is "--", the following value can start by dash */ -class getopts +class Getopts { /** The list of options to check */ diff --git a/src/graph.php b/src/Graph.php similarity index 99% rename from src/graph.php rename to src/Graph.php index ce4a5cc..9d030ae 100644 --- a/src/graph.php +++ b/src/Graph.php @@ -12,7 +12,7 @@ namespace Domframework; * graph methods are : * ->height ($height) or ->width ($width) The heigh/width of the graph */ -class graph +class Graph /* {{{ */ { /** The X axis object @@ -388,7 +388,7 @@ class graph /* }}} */ /** The series objects */ -class graphSeries +class GraphSeries /* {{{ */ { /** The series stored */ @@ -434,7 +434,7 @@ class graphSeries /* }}} */ /** The serie object */ -class graphSerie +class GraphSerie /* {{{ */ { /** The name of the serie @@ -669,7 +669,7 @@ class graphSerie /* }}} */ /** Read the data */ -class graphData +class GraphData /* {{{ */ { /** Store the data when the user provided them. Store them in array form @@ -938,7 +938,7 @@ class graphData /* }}} */ /** The graphTitle object */ -class graphTitle +class GraphTitle /* {{{ */ { /** The title text @@ -1066,7 +1066,7 @@ class graphTitle /* }}} */ /** The graphLegend object */ -class graphLegend +class GraphLegend /* {{{ */ { /** Show the legend (no legend by default) @@ -1272,7 +1272,7 @@ class graphLegend /* }}} */ /** The general axis management */ -class graphAxisGeneral +class GraphAxisGeneral /* {{{ */ { /** The min value of the axis. Do not use it if the axis is composed of labels @@ -1666,7 +1666,7 @@ class graphAxisGeneral /* }}} */ /** The graph Axis Horizontal class */ -class graphAxisHorizontal extends graphAxisGeneral +class GraphAxisHorizontal extends GraphAxisGeneral /* {{{ */ { /** Calculate the position in pixels for a value @@ -1750,7 +1750,7 @@ class graphAxisHorizontal extends graphAxisGeneral /* }}} */ /** The X axis management */ -class graphAxisX extends graphAxisHorizontal +class GraphAxisX extends GraphAxisHorizontal /* {{{ */ { /** The angle choosed to draw the graph @@ -1922,7 +1922,7 @@ class graphAxisX extends graphAxisHorizontal /* }}} */ /** Manage the vertical axis */ -class graphAxisVertical extends graphAxisGeneral +class GraphAxisVertical extends GraphAxisGeneral /* {{{ */ { /** The angle choosed to draw the graph @@ -2102,7 +2102,7 @@ class graphAxisVertical extends graphAxisGeneral /* }}} */ /** The Y1 axis management */ -class graphAxisY1 extends graphAxisVertical +class GraphAxisY1 extends GraphAxisVertical /* {{{ */ { /** Draw one value on the axis @@ -2180,7 +2180,7 @@ die ("graphAxisY1:: drawGrid NOT numerical line ".__LINE__."\n"); /* }}} */ /** The Y2 axis management */ -class graphAxisY2 extends graphAxisVertical +class GraphAxisY2 extends GraphAxisVertical /* {{{ */ { /** Draw one value on the axis @@ -2247,7 +2247,7 @@ die ("graphAxisY2:: drawOne NOT numerical line ".__LINE__."\n"); /* }}} */ /** The graphStyleLine : draw a graph with lines */ -class graphStyleLinePoints +class GraphStyleLinePoints /* {{{ */ { /** The line color. To hide the lines, choose "transparent" @@ -2541,7 +2541,7 @@ class graphStyleLinePoints /* }}} */ /** The graphStylePoints : draw a graph with points */ -class graphStylePoints extends graphStyleLinePoints +class GraphStylePoints extends GraphStyleLinePoints /* {{{ */ { /** The line color : transparent @@ -2557,7 +2557,7 @@ class graphStylePoints extends graphStyleLinePoints /* }}} */ /** The graphStyleLine : draw a graph with line */ -class graphStyleLine extends graphStyleLinePoints +class GraphStyleLine extends GraphStyleLinePoints /* {{{ */ { /** The point color background. To hide the points, choose "transparent" @@ -2577,7 +2577,7 @@ class graphStyleLine extends graphStyleLinePoints /* }}} */ /** The graphPalette class */ -class graphPalette +class GraphPalette /* {{{ */ { /** Get the complete palette diff --git a/src/http.php b/src/Http.php similarity index 99% rename from src/http.php rename to src/Http.php index 5f5f29c..b0f8afe 100644 --- a/src/http.php +++ b/src/Http.php @@ -10,7 +10,7 @@ namespace Domframework; /** HTTP Helper : understand the best choices provided by browser, the HTTP * codes */ -class http +class Http { /** Choose the best choice from user choices. * Can be used for languages (HTTP_ACCEPT_LANGUAGE), type of pages diff --git a/src/httpclient.php b/src/Httpclient.php similarity index 100% rename from src/httpclient.php rename to src/Httpclient.php diff --git a/src/imap.php b/src/Imap.php similarity index 99% rename from src/imap.php rename to src/Imap.php index 67fd0cf..e2e8515 100644 --- a/src/imap.php +++ b/src/Imap.php @@ -9,7 +9,7 @@ namespace Domframework; /** IMAP connection abstraction In the IMAP terminology, "mailbox" is a folder in the mailbox of the user */ -class imap +class Imap { /** The mailbox string */ private $mailbox = null; diff --git a/src/inifile.php b/src/Inifile.php similarity index 99% rename from src/inifile.php rename to src/Inifile.php index 7099045..3a74f3a 100644 --- a/src/inifile.php +++ b/src/Inifile.php @@ -9,7 +9,7 @@ namespace Domframework; /** Manage .ini files like in php.ini Support the sections (or not) */ -class inifile +class Inifile { /** Return an array with the .ini file content * If the sections are true, the sections are analyzed too diff --git a/src/ipaddresses.php b/src/Ipaddresses.php similarity index 99% rename from src/ipaddresses.php rename to src/Ipaddresses.php index 98a59c7..90bcef4 100644 --- a/src/ipaddresses.php +++ b/src/Ipaddresses.php @@ -8,7 +8,7 @@ namespace Domframework; /** Manage the IP addresses conversions */ -class ipaddresses +class Ipaddresses { /** Return true if the provided IP address is valid (IPv4 or IPv6) * @param string $ip The IP Address to validate diff --git a/src/jwt.php b/src/Jwt.php similarity index 99% rename from src/jwt.php rename to src/Jwt.php index efe4aca..1f65031 100644 --- a/src/jwt.php +++ b/src/Jwt.php @@ -13,7 +13,7 @@ namespace Domframework; * Do not put confidential data in payload without encrypt it, as the result * is only a Base64 format of JSON... */ -class jwt +class Jwt { // PROPERTIES // {{{ diff --git a/src/language.php b/src/Language.php similarity index 99% rename from src/language.php rename to src/Language.php index 308ebad..cfdf44a 100644 --- a/src/language.php +++ b/src/Language.php @@ -9,7 +9,7 @@ namespace Domframework; /** Language class : change the messages */ -class language +class Language { // Language.php diff --git a/src/lockfile.php b/src/Lockfile.php similarity index 99% rename from src/lockfile.php rename to src/Lockfile.php index 6e985ea..00a96c2 100644 --- a/src/lockfile.php +++ b/src/Lockfile.php @@ -9,7 +9,7 @@ namespace Domframework; /** The lock management of files */ -class lockfile +class Lockfile { /** The Exclusive lock file */ public $storagelock = "./data/lockfile.lock"; diff --git a/src/logger.php b/src/Logger.php similarity index 99% rename from src/logger.php rename to src/Logger.php index 2bedb83..3a98eab 100644 --- a/src/logger.php +++ b/src/Logger.php @@ -10,7 +10,7 @@ namespace Domframework; /** The logger class permit to log the information from the soft * It allow to debug too */ -class logger +class Logger { /* The logger class can be used with : $d=new logger; diff --git a/src/macaddresses.php b/src/Macaddresses.php similarity index 99% rename from src/macaddresses.php rename to src/Macaddresses.php index 2fc2245..c65bbc7 100644 --- a/src/macaddresses.php +++ b/src/Macaddresses.php @@ -16,7 +16,7 @@ namespace Domframework; * - 0005.313B.9080 * - 0005313B9080 */ -class macaddresses +class Macaddresses { /** This method return true if the provided MAC address is valid * return false if the mac is not valid diff --git a/src/mail.php b/src/Mail.php similarity index 99% rename from src/mail.php rename to src/Mail.php index 678c287..61351e0 100644 --- a/src/mail.php +++ b/src/Mail.php @@ -9,7 +9,7 @@ namespace Domframework; /** The class to create a complete email. Can read an email from a content */ -class mail +class Mail { /** The complete of the mail diff --git a/src/markdown.php b/src/Markdown.php similarity index 99% rename from src/markdown.php rename to src/Markdown.php index de97345..4e8ed93 100644 --- a/src/markdown.php +++ b/src/Markdown.php @@ -9,7 +9,7 @@ namespace Domframework; /** Convert the Markdown text to html format */ -class markdown +class Markdown { /** To debug the markdown analyzer, activate the option */ public $debug = false; diff --git a/src/module.php b/src/Module.php similarity index 99% rename from src/module.php rename to src/Module.php index e26ba18..e9ea0e2 100644 --- a/src/module.php +++ b/src/Module.php @@ -9,7 +9,7 @@ namespace Domframework; /** Module management */ -class module +class Module { /** The modules are not allowed if $toplevel=0 * The modules can be in a module directory if $toplevel=1 diff --git a/src/output.php b/src/Output.php similarity index 96% rename from src/output.php rename to src/Output.php index 50d39fc..33ffb16 100644 --- a/src/output.php +++ b/src/Output.php @@ -9,7 +9,7 @@ namespace Domframework; /** Class used to display data */ -class output +class Output { /** Class used to display data @param mixed $data The data to be displayed */ diff --git a/src/outputcsv.php b/src/Outputcsv.php similarity index 97% rename from src/outputcsv.php rename to src/Outputcsv.php index 0df9afb..4f78851 100644 --- a/src/outputcsv.php +++ b/src/Outputcsv.php @@ -9,7 +9,7 @@ namespace Domframework; /** Display in CSV the data provided */ -class outputcsv extends output +class Outputcsv extends Output { /** Don't allow to output in CSV if the functions are not available in PHP */ function __construct () diff --git a/src/outputdl.php b/src/Outputdl.php similarity index 99% rename from src/outputdl.php rename to src/Outputdl.php index 9169b06..38fc870 100644 --- a/src/outputdl.php +++ b/src/Outputdl.php @@ -11,7 +11,7 @@ namespace Domframework; * without using too much memory. In also allow to manage the resuming of a * paused transfert by getting the range of download. */ -class outputdl +class Outputdl { /** Allow or deny the resuming of the HTTP transferts */ diff --git a/src/outputhtml.php b/src/Outputhtml.php similarity index 99% rename from src/outputhtml.php rename to src/Outputhtml.php index df25319..3db0795 100644 --- a/src/outputhtml.php +++ b/src/Outputhtml.php @@ -9,7 +9,7 @@ namespace Domframework; /** Display in HTML the data provided, with the layout support */ -class outputhtml extends output +class Outputhtml extends Output { /** Data is printed by viewClass->viewmethod, in the middle of $layout * title is put in the title of the HTML page diff --git a/src/outputjson.php b/src/Outputjson.php similarity index 97% rename from src/outputjson.php rename to src/Outputjson.php index 54dccf1..c38d861 100644 --- a/src/outputjson.php +++ b/src/Outputjson.php @@ -10,7 +10,7 @@ namespace Domframework; /** Display in JSON the data provided * The data must NOT be binary ! */ -class outputjson extends output +class Outputjson extends Output { /** Don't allow to output in JSON if the functions are not available in PHP */ function __construct () diff --git a/src/outputrest.php b/src/Outputrest.php similarity index 97% rename from src/outputrest.php rename to src/Outputrest.php index 5acff3e..dfa38ab 100644 --- a/src/outputrest.php +++ b/src/Outputrest.php @@ -10,7 +10,7 @@ namespace Domframework; /** Display in REST the data provided. * Allow all the output types : JSON, XML, TXT... */ -class outputrest extends output +class Outputrest extends Output { /** Data is printed by viewClass->viewmethod, in the middle of $layout * title is put in the title of the HTML page diff --git a/src/outputtxt.php b/src/Outputtxt.php similarity index 99% rename from src/outputtxt.php rename to src/Outputtxt.php index d9d3397..fb80696 100644 --- a/src/outputtxt.php +++ b/src/Outputtxt.php @@ -9,7 +9,7 @@ namespace Domframework; /** Display in Text the data provided */ -class outputtxt extends output +class Outputtxt extends Output { /** Display an array on table format (TRUE) or tree format (FALSE) */ public $table = TRUE; diff --git a/src/outputxml.php b/src/Outputxml.php similarity index 98% rename from src/outputxml.php rename to src/Outputxml.php index 6ac1187..312bccd 100644 --- a/src/outputxml.php +++ b/src/Outputxml.php @@ -9,7 +9,7 @@ namespace Domframework; /** Display in XML the data provided */ -class outputxml extends output +class Outputxml extends Output { /** Display in XML the data provided @param mixed $data The data to be displayed */ diff --git a/src/password.php b/src/Password.php similarity index 99% rename from src/password.php rename to src/Password.php index 525e4d5..bc211b5 100644 --- a/src/password.php +++ b/src/Password.php @@ -9,7 +9,7 @@ namespace Domframework; /** A class to manage the password hashing, password generation */ -class password +class Password { //////////////////// // PROPERTIES // diff --git a/src/queue.php b/src/Queue.php similarity index 99% rename from src/queue.php rename to src/Queue.php index bdb18a3..ab5d967 100644 --- a/src/queue.php +++ b/src/Queue.php @@ -17,7 +17,7 @@ namespace Domframework; * removing of the entry * A process can get X entries starting at position Y */ -class queue +class Queue { /** The queue connected object */ diff --git a/src/queuefile.php b/src/Queuefile.php similarity index 99% rename from src/queuefile.php rename to src/Queuefile.php index 6692dec..0f9c37b 100644 --- a/src/queuefile.php +++ b/src/Queuefile.php @@ -17,7 +17,7 @@ namespace Domframework; * removing of the entry * A process can get X entries starting at position Y */ -class queuefile extends queue +class Queuefile extends Queue { /** The queue connected object diff --git a/src/ratelimit.php b/src/Ratelimit.php similarity index 98% rename from src/ratelimit.php rename to src/Ratelimit.php index b4b176d..931371a 100644 --- a/src/ratelimit.php +++ b/src/Ratelimit.php @@ -9,7 +9,7 @@ namespace Domframework; /** The rate limit abstract class */ -class ratelimit +class Ratelimit { /** The maximum number of entries by specified unit time */ public $maxEntries = 10; diff --git a/src/ratelimitfile.php b/src/Ratelimitfile.php similarity index 99% rename from src/ratelimitfile.php rename to src/Ratelimitfile.php index 66e9701..29baa69 100644 --- a/src/ratelimitfile.php +++ b/src/Ratelimitfile.php @@ -9,7 +9,7 @@ namespace Domframework; /** The rate limit with file storage */ -class ratelimitfile extends ratelimit +class Ratelimitfile extends Ratelimit { /** The storage directory */ public $storageDir = "data/ratelimit/"; diff --git a/src/renderer.php b/src/Renderer.php similarity index 99% rename from src/renderer.php rename to src/Renderer.php index 6442dee..00492d1 100644 --- a/src/renderer.php +++ b/src/Renderer.php @@ -9,7 +9,7 @@ namespace Domframework; /** Display the data in HTML with a FLASH method to display the errors */ -class renderer +class Renderer { /** The result in construction */ public $result = NULL; diff --git a/src/rest.php b/src/Rest.php similarity index 99% rename from src/rest.php rename to src/Rest.php index becbbb8..0d2f482 100644 --- a/src/rest.php +++ b/src/Rest.php @@ -9,7 +9,7 @@ namespace Domframework; /** Allow to manage the REST protocol by using the users output types */ -class rest +class Rest { /** Allowed types by default */ diff --git a/src/robotstxt.php b/src/Robotstxt.php similarity index 99% rename from src/robotstxt.php rename to src/Robotstxt.php index fe45f0b..ad697fe 100644 --- a/src/robotstxt.php +++ b/src/Robotstxt.php @@ -15,7 +15,7 @@ namespace Domframework; * http://www.robotstxt.org/norobots-rfc.txt * https://en.wikipedia.org/wiki/Robots_exclusion_standard */ -class robotstxt +class Robotstxt { // PROPERTIES // {{{ diff --git a/src/route.php b/src/Route.php similarity index 99% rename from src/route.php rename to src/Route.php index 092c21d..d426e18 100644 --- a/src/route.php +++ b/src/Route.php @@ -9,7 +9,7 @@ namespace Domframework; /** The routing module, base of the DomFramework */ -class route +class Route { /** The baseURL of the site */ private $baseURL = ""; diff --git a/src/routeSQL.php b/src/RouteSQL.php similarity index 99% rename from src/routeSQL.php rename to src/RouteSQL.php index 97778af..13b305f 100644 --- a/src/routeSQL.php +++ b/src/RouteSQL.php @@ -10,7 +10,7 @@ namespace Domframework; /** Automatic Routing for SQL database * Allow to do CRUD on data with only one line in index.php */ -class routeSQL +class RouteSQL { /** Activate the debug */ public $debug=0; diff --git a/src/rss.php b/src/Rss.php similarity index 98% rename from src/rss.php rename to src/Rss.php index 4a153c3..1c99bf3 100644 --- a/src/rss.php +++ b/src/Rss.php @@ -10,7 +10,7 @@ namespace Domframework; /** Create the RSS pages for the websites * Specification http://www.rssboard.org/rss-specification */ -class rss +class Rss { /** The title of the site (MANDATORY) */ @@ -142,9 +142,9 @@ class rss */ public function addItem () { - $rss_item = new \rss_item (); - $this->items[] = $rss_item; - return $rss_item; + $rssitem = new Rssitem (); + $this->items[] = $rssitem; + return $rssitem; } /** Return the complete RSS in XML format @@ -204,7 +204,7 @@ class rss /** Define one item in the RSS */ -class rss_item +class Rssitem { /** The title of the item */ diff --git a/src/sitemap.php b/src/Sitemap.php similarity index 99% rename from src/sitemap.php rename to src/Sitemap.php index 0ce4742..8c1c041 100644 --- a/src/sitemap.php +++ b/src/Sitemap.php @@ -10,7 +10,7 @@ namespace Domframework; /** This class allow to read the sitemaps files available in websites, and give * the available URL and parameters */ -class sitemap +class Sitemap { /** Return an array containing the URL in sitemap associated with the * information of priority and changefreq (in seconds) diff --git a/src/smtp.php b/src/Smtp.php similarity index 99% rename from src/smtp.php rename to src/Smtp.php index 62d4734..8025a47 100644 --- a/src/smtp.php +++ b/src/Smtp.php @@ -9,7 +9,7 @@ namespace Domframework; /** Allow to send mails by smtp */ -class smtp +class Smtp { /** Debug mode */ diff --git a/src/spfcheck.php b/src/Spfcheck.php similarity index 99% rename from src/spfcheck.php rename to src/Spfcheck.php index b89229c..9422fb6 100644 --- a/src/spfcheck.php +++ b/src/Spfcheck.php @@ -16,7 +16,7 @@ namespace Domframework; * a(:\S+)| * redirect=\S+|include:\S+) */ -class spfcheck +class Spfcheck { //////////////////// // PROPERTIES // diff --git a/src/sse.php b/src/Sse.php similarity index 99% rename from src/sse.php rename to src/Sse.php index f419965..4153948 100644 --- a/src/sse.php +++ b/src/Sse.php @@ -17,7 +17,7 @@ namespace Domframework; * The developper can use a handler to read/modify each event before it is * send to the user. */ -class sse +class Sse { ////////////////////////// //// PROPERTIES //// diff --git a/src/tcpclient.php b/src/Tcpclient.php similarity index 99% rename from src/tcpclient.php rename to src/Tcpclient.php index bc8b6ba..69199ad 100644 --- a/src/tcpclient.php +++ b/src/Tcpclient.php @@ -18,7 +18,7 @@ namespace Domframework; * Manage the timeout, send a command, receive a max number of bytes, * allow SSL trafic with CA verification */ -class tcpclient +class Tcpclient { // PROPERTIES // // {{{ diff --git a/src/tcpserver.php b/src/Tcpserver.php similarity index 99% rename from src/tcpserver.php rename to src/Tcpserver.php index 0ac6f45..144c090 100644 --- a/src/tcpserver.php +++ b/src/Tcpserver.php @@ -19,7 +19,7 @@ namespace Domframework; * * The server has a child limit set to 500 connections by default */ -class tcpserver +class Tcpserver { //////////////////// // PROPERTIES // diff --git a/src/users.php b/src/Users.php similarity index 99% rename from src/users.php rename to src/Users.php index 5aef8ce..efa636d 100644 --- a/src/users.php +++ b/src/Users.php @@ -11,7 +11,7 @@ namespace Domframework; * Allow to manage the users in multiple storages (SQL, HTPasswd, passwd file). * CRUD the users and allow to modify the password */ -class users +class Users { /** Connect to the storage */ diff --git a/src/userssql.php b/src/Userssql.php similarity index 99% rename from src/userssql.php rename to src/Userssql.php index 1e680c4..4ea6e4a 100644 --- a/src/userssql.php +++ b/src/Userssql.php @@ -10,7 +10,7 @@ namespace Domframework; /** Store the users in SQL database. Manage the creation of the users, * modification, delete, password management */ -class userssql extends users +class Userssql extends Users { /** The database connector */ private $dsn; diff --git a/src/uuid.php b/src/Uuid.php similarity index 98% rename from src/uuid.php rename to src/Uuid.php index abe3302..d36bda1 100644 --- a/src/uuid.php +++ b/src/Uuid.php @@ -9,7 +9,7 @@ namespace Domframework; /** Generate a UUID v4 */ -class uuid +class Uuid { /** Create a UUID * Based on http://php.net/manual/fr/function.uniqid.php#94959 diff --git a/src/verify.php b/src/Verify.php similarity index 99% rename from src/verify.php rename to src/Verify.php index 0f5ba9a..42f9138 100644 --- a/src/verify.php +++ b/src/Verify.php @@ -9,7 +9,7 @@ namespace Domframework; /** Permit to check the validity of fields */ -class verify +class Verify { ///////////////// // NETWORK // diff --git a/src/version.php b/src/Version.php similarity index 100% rename from src/version.php rename to src/Version.php diff --git a/src/xdiff.php b/src/Xdiff.php similarity index 99% rename from src/xdiff.php rename to src/Xdiff.php index 9d5c8ac..4805e90 100644 --- a/src/xdiff.php +++ b/src/Xdiff.php @@ -10,7 +10,7 @@ namespace Domframework; /** Create a diff from two strings, array or files * The output is compatible with "patch" command. */ -class xdiff +class Xdiff { /** The name of file1 */ diff --git a/src/xmppclient.php b/src/Xmppclient.php similarity index 99% rename from src/xmppclient.php rename to src/Xmppclient.php index eff9875..9635768 100644 --- a/src/xmppclient.php +++ b/src/Xmppclient.php @@ -10,7 +10,7 @@ namespace Domframework; /** This class allow to send XMPP messages to a server. * If the server supports it, crypt the connection by StartTLS before auth */ -class xmppclient +class Xmppclient { // CLASS CONSTANT // // {{{