Rename all the files to camelCase and update the class name in the files

This commit is contained in:
2021-05-07 12:19:08 +02:00
parent 276a5c4cbd
commit c8d275be31
82 changed files with 101 additions and 101 deletions

View File

@@ -8,7 +8,7 @@
namespace Domframework;
/** User authentication (abstract class) */
class auth
class Auth
{
/** The application name */
public $appName = null;

View File

@@ -8,7 +8,7 @@
namespace Domframework;
/** All the authentication protocol */
class authentication
class Authentication
{
/** The email of the authenticated/nonauthenticated user */
//private $email = "anonymous";

View File

@@ -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;

View File

@@ -8,7 +8,7 @@
namespace Domframework;
/** User authentication against IMAP server */
class authimap extends auth
class Authimap extends Auth
{
/** IMAP server */
public $imapServer = "localhost";

View File

@@ -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

View File

@@ -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";

View File

@@ -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 = "/";

View File

@@ -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 = "/";

View File

@@ -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;

View File

@@ -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
*/

View File

@@ -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";

View File

@@ -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 */

View File

@@ -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;

View File

@@ -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 = "";

View File

@@ -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 = "";

View File

@@ -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 ());

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** A cache manager in file
*/
class cachefile
class Cachefile
{
/** Where to store the cached information
*/

View File

@@ -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;

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** An certificate authority
*/
class certificationauthority
class Certificationauthority
{
// PROPERTIES
// {{{

View File

@@ -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 :

View File

@@ -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

View File

@@ -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 ();

View File

@@ -23,7 +23,7 @@ namespace Domframework;
* $console->updateTerminalSize ();
* });
*/
class console
class Console
{
// PROPERTIES
// {{{

View File

@@ -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

View File

@@ -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
*/

View File

@@ -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
*/

View File

@@ -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 = "";

View File

@@ -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,

View File

@@ -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;

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Permit abstraction on the differents SQL databases available
*/
class dblayeroo
class Dblayeroo
{
/** The table name to use
*/

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Allow to encrypt/decrypt data
*/
class encrypt
class Encrypt
{
/** Check if openssl library is enabled
*/

View File

@@ -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 = ".";

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Manage the fork of children in Posix mode
*/
class fork
class Fork
{
/** The PID list of childs
*/

View File

@@ -11,7 +11,7 @@ namespace Domframework;
* future).
* Each field can be checked in AJAX or HTML.
*/
class form
class Form
{
/** All the fields

View File

@@ -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 ////

View File

@@ -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
*/

View File

@@ -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

View File

@@ -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

View File

@@ -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;

View File

@@ -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

View File

@@ -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

View File

@@ -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
// {{{

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Language class : change the messages
*/
class language
class Language
{
// Language.php

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** The lock management of files
*/
class lockfile
class Lockfile
{
/** The Exclusive lock file */
public $storagelock = "./data/lockfile.lock";

View File

@@ -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;

View File

@@ -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

View File

@@ -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

View File

@@ -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;

View File

@@ -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

View File

@@ -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 */

View File

@@ -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 ()

View File

@@ -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
*/

View File

@@ -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

View File

@@ -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 ()

View File

@@ -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

View File

@@ -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;

View File

@@ -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 */

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** A class to manage the password hashing, password generation
*/
class password
class Password
{
////////////////////
// PROPERTIES //

View File

@@ -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
*/

View File

@@ -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

View File

@@ -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;

View File

@@ -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/";

View File

@@ -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;

View File

@@ -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
*/

View File

@@ -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
// {{{

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** The routing module, base of the DomFramework
*/
class route
class Route
{
/** The baseURL of the site */
private $baseURL = "";

View File

@@ -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;

View File

@@ -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
*/

View File

@@ -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)

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Allow to send mails by smtp
*/
class smtp
class Smtp
{
/** Debug mode
*/

View File

@@ -16,7 +16,7 @@ namespace Domframework;
* a(:\S+)|
* redirect=\S+|include:\S+)
*/
class spfcheck
class Spfcheck
{
////////////////////
// PROPERTIES //

View File

@@ -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 ////

View File

@@ -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 //
// {{{

View File

@@ -19,7 +19,7 @@ namespace Domframework;
*
* The server has a child limit set to 500 connections by default
*/
class tcpserver
class Tcpserver
{
////////////////////
// PROPERTIES //

View File

@@ -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
*/

View File

@@ -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;

View File

@@ -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

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Permit to check the validity of fields
*/
class verify
class Verify
{
/////////////////
// NETWORK //

View File

@@ -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
*/

View File

@@ -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 //
// {{{