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; namespace Domframework;
/** User authentication (abstract class) */ /** User authentication (abstract class) */
class auth class Auth
{ {
/** The application name */ /** The application name */
public $appName = null; public $appName = null;

View File

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

View File

@@ -11,7 +11,7 @@ namespace Domframework;
A .htpasswd can be created by the 'htpasswd' command for Apache, and contain A .htpasswd can be created by the 'htpasswd' command for Apache, and contain
toto@toto.com:$2y$05$uHCUNqicE7Pku3MK1qZaDuJxP/pocqCcEAnacZBjsfWgW9EcuG5y2 toto@toto.com:$2y$05$uHCUNqicE7Pku3MK1qZaDuJxP/pocqCcEAnacZBjsfWgW9EcuG5y2
*/ */
class authhtpasswd extends auth class Authhtpasswd extends Auth
{ {
/** The .htpasswd file to use for authentication */ /** The .htpasswd file to use for authentication */
public $htpasswdFile; public $htpasswdFile;

View File

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

View File

@@ -7,11 +7,11 @@
namespace Domframework; namespace Domframework;
/bin/bash: n : commande introuvable /*
* To use it, the $serverKey must be defined. It can be created by example, * To use it, the $serverKey must be defined. It can be created by example,
* by using $serverKey = sha1 (microtime (true)); * by using $serverKey = sha1 (microtime (true));
*/ */
class authjwt extends auth class Authjwt extends Auth
{ {
// PROPERTIES SET BY AUTH // PROPERTIES SET BY AUTH
/** The JSON Web Token Server key if used /** The JSON Web Token Server key if used

View File

@@ -8,7 +8,7 @@
namespace Domframework; namespace Domframework;
/** User authentication against LDAP server */ /** User authentication against LDAP server */
class authldap extends auth class Authldap extends Auth
{ {
/** LDAP server : can be ldaps://server.domain.tld if LDAPS */ /** LDAP server : can be ldaps://server.domain.tld if LDAPS */
public $ldapserver="localhost"; public $ldapserver="localhost";

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** All the needed functions to authorize or deny access to an authenticated /** All the needed functions to authorize or deny access to an authenticated
user */ user */
class authorization class Authorization
{ {
/** Separator between differents modules/objects */ /** Separator between differents modules/objects */
private $separator = "/"; private $separator = "/";

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** All the needed functions to authorize or deny access to an authenticated /** All the needed functions to authorize or deny access to an authenticated
user */ user */
class authorizationdb extends authorization class Authorizationdb extends Authorization
{ {
/** Separator between differents modules/objects */ /** Separator between differents modules/objects */
private $separator = "/"; private $separator = "/";

View File

@@ -8,7 +8,7 @@
namespace Domframework; namespace Domframework;
/** Takes the email and the password of the user */ /** Takes the email and the password of the user */
class authparams class Authparams
{ {
/** The email of the user when provided */ /** The email of the user when provided */
public $email = null; public $email = null;

View File

@@ -8,7 +8,7 @@
namespace Domframework; namespace Domframework;
/** User authentication against SESSION */ /** 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 /** Check if there is already a session or the user can not be authenticated
*/ */

View File

@@ -8,7 +8,7 @@
namespace Domframework; namespace Domframework;
/** User authentication against Shibboleth */ /** User authentication against Shibboleth */
class authshibboleth extends auth class Authshibboleth extends Auth
{ {
/** The Lastname parameter returned by Shibboleth server */ /** The Lastname parameter returned by Shibboleth server */
public $lastnameParam = "sn"; public $lastnameParam = "sn";

View File

@@ -8,7 +8,7 @@
namespace Domframework; namespace Domframework;
/** User authentication against SQL database */ /** User authentication against SQL database */
class authsql extends auth class Authsql extends Auth
{ {
/** The DSN to use to connect to SQL database */ /** The DSN to use to connect to SQL database */

View File

@@ -23,7 +23,7 @@ $auth->list = "listtest@lists.domain.tld";
$auth->connect (); $auth->connect ();
var_dump ($auth->authentication ("user@domain.tld", "Pa$$word!")); var_dump ($auth->authentication ("user@domain.tld", "Pa$$word!"));
*/ */
class authsympa extends auth class Authsympa extends Auth
{ {
/** URL of the WSDL Sympa server */ /** URL of the WSDL Sympa server */
public $wsdl = null; public $wsdl = null;

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** All the needed functions to authorize or deny access to an authenticated /** All the needed functions to authorize or deny access to an authenticated
user by its groups membership */ user by its groups membership */
class authzgroups class Authzgroups
{ {
/** The table prefix to use */ /** The table prefix to use */
public $tableprefix = ""; public $tableprefix = "";

View File

@@ -11,7 +11,7 @@ namespace Domframework;
* user by its groups membership * user by its groups membership
* Based on dblayeroo * Based on dblayeroo
*/ */
class authzgroupsoo class Authzgroupsoo
{ {
/** The table prefix to use */ /** The table prefix to use */
public $tableprefix = ""; public $tableprefix = "";

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Display the backtrace in HTML with clicks to display the content /** Display the backtrace in HTML with clicks to display the content
*/ */
class backtrace class Backtrace
{ {
/** Display the backtrace in the browser /** Display the backtrace in the browser
* use: \backtrace::show (debug_backtrace ()); * use: \backtrace::show (debug_backtrace ());

View File

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

View File

@@ -14,7 +14,7 @@ namespace Domframework;
* $c = new cacheoutput ("URL"); * $c = new cacheoutput ("URL");
* Don't forget to define a variable or the cache saved is always empty * 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 */ /** Record if the saving of pages is on going */
private $saving = false; private $saving = false;

View File

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

View File

@@ -8,7 +8,7 @@
namespace Domframework; namespace Domframework;
/** Allow to interract with controllers and models from the CLI */ /** Allow to interract with controllers and models from the CLI */
class cli class Cli
{ {
/** Run in CLI mode with parameters /** Run in CLI mode with parameters
* Example of cli code : * Example of cli code :

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Convert the name of colors to RGB /** Convert the name of colors to RGB
*/ */
class color class Color
{ {
/** The color list /** The color list
* From http://www.rapidtables.com/web/color/index.htm * From http://www.rapidtables.com/web/color/index.htm

View File

@@ -25,7 +25,7 @@ namespace Domframework;
* "param3"=>null); * "param3"=>null);
* $var = $config->get ("param"); * $var = $config->get ("param");
*/ */
class config class Config
{ {
/** All the parameters allowed with their default value */ /** All the parameters allowed with their default value */
public $default = array (); public $default = array ();

View File

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

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Convert a format to another one /** Convert a format to another one
*/ */
class convert class Convert
{ {
/** Convert Date received in one format to another. /** Convert Date received in one format to another.
* If the provided string is not corresponding to the format, generate an * 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 * It can be disabled if needed. An Exception is raised if the form is send
* back without the token * back without the token
*/ */
class csrf class Csrf
{ {
/** Allow to disable the csrf protection /** Allow to disable the csrf protection
*/ */

View File

@@ -10,7 +10,7 @@ namespace Domframework;
/** Manage a daemon. /** Manage a daemon.
* Allow to start, stop, get status of a callable method * Allow to start, stop, get status of a callable method
*/ */
class daemon class Daemon
{ {
/** Set the directory to store the PID of the 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 * - The field named _id is the document key
*/ */
class dbjson class Dbjson
{ {
/** The DSN of the connection */ /** The DSN of the connection */
private $dsn = ""; private $dsn = "";

View File

@@ -38,7 +38,7 @@ Optionnaly, you can add the
*/ */
/** Permit abstraction on the differents SQL databases available */ /** Permit abstraction on the differents SQL databases available */
class dblayer class Dblayer
{ {
/** The table name to use */ /** The table name to use */
public $table = null; public $table = null;
@@ -1629,7 +1629,7 @@ class dblayer
/** POC : /** POC :
error_reporting (E_ALL); error_reporting (E_ALL);
class zone extends dbLayer class Zone extends DbLayer
{ {
// The database must be initialized with // The database must be initialized with
// CREATE TABLE `dns_zones` (id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, // CREATE TABLE `dns_zones` (id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,

View File

@@ -10,7 +10,7 @@ namespace Domframework;
/** DBLayer with authorization /** DBLayer with authorization
* All the actions in database are conditionned to the rights in authzgroups * 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 */ /** The authzgroups object, connected to the database */
public $authzgroups = null; public $authzgroups = null;

View File

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

View File

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

View File

@@ -15,7 +15,7 @@ namespace Domframework;
* must extends the class and overload checkExternalPathRO and * must extends the class and overload checkExternalPathRO and
* checkExternalPathRW. * checkExternalPathRW.
*/ */
class file class File
{ {
/** The virtual current working directory */ /** The virtual current working directory */
private $cwd = "."; private $cwd = ".";

View File

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

View File

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

View File

@@ -16,7 +16,7 @@ namespace Domframework;
* Do not search if the word is smaller than a parameter. * Do not search if the word is smaller than a parameter.
* Each sentence or word can be modified by external methods separately * Each sentence or word can be modified by external methods separately
*/ */
class fts class Fts
{ {
/////////////////////////// ///////////////////////////
//// PROPERTIES //// //// PROPERTIES ////

View File

@@ -16,7 +16,7 @@ namespace Domframework;
* can only be one letter * can only be one letter
* If the token is "--", the following value can start by dash * If the token is "--", the following value can start by dash
*/ */
class getopts class Getopts
{ {
/** The list of options to check /** The list of options to check
*/ */

View File

@@ -12,7 +12,7 @@ namespace Domframework;
* graph methods are : * graph methods are :
* ->height ($height) or ->width ($width) The heigh/width of the graph * ->height ($height) or ->width ($width) The heigh/width of the graph
*/ */
class graph class Graph
/* {{{ */ /* {{{ */
{ {
/** The X axis object /** The X axis object
@@ -388,7 +388,7 @@ class graph
/* }}} */ /* }}} */
/** The series objects */ /** The series objects */
class graphSeries class GraphSeries
/* {{{ */ /* {{{ */
{ {
/** The series stored */ /** The series stored */
@@ -434,7 +434,7 @@ class graphSeries
/* }}} */ /* }}} */
/** The serie object */ /** The serie object */
class graphSerie class GraphSerie
/* {{{ */ /* {{{ */
{ {
/** The name of the serie /** The name of the serie
@@ -669,7 +669,7 @@ class graphSerie
/* }}} */ /* }}} */
/** Read the data */ /** Read the data */
class graphData class GraphData
/* {{{ */ /* {{{ */
{ {
/** Store the data when the user provided them. Store them in array form /** Store the data when the user provided them. Store them in array form
@@ -938,7 +938,7 @@ class graphData
/* }}} */ /* }}} */
/** The graphTitle object */ /** The graphTitle object */
class graphTitle class GraphTitle
/* {{{ */ /* {{{ */
{ {
/** The title text /** The title text
@@ -1066,7 +1066,7 @@ class graphTitle
/* }}} */ /* }}} */
/** The graphLegend object */ /** The graphLegend object */
class graphLegend class GraphLegend
/* {{{ */ /* {{{ */
{ {
/** Show the legend (no legend by default) /** Show the legend (no legend by default)
@@ -1272,7 +1272,7 @@ class graphLegend
/* }}} */ /* }}} */
/** The general axis management */ /** 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 /** 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 */ /** The graph Axis Horizontal class */
class graphAxisHorizontal extends graphAxisGeneral class GraphAxisHorizontal extends GraphAxisGeneral
/* {{{ */ /* {{{ */
{ {
/** Calculate the position in pixels for a value /** Calculate the position in pixels for a value
@@ -1750,7 +1750,7 @@ class graphAxisHorizontal extends graphAxisGeneral
/* }}} */ /* }}} */
/** The X axis management */ /** The X axis management */
class graphAxisX extends graphAxisHorizontal class GraphAxisX extends GraphAxisHorizontal
/* {{{ */ /* {{{ */
{ {
/** The angle choosed to draw the graph /** The angle choosed to draw the graph
@@ -1922,7 +1922,7 @@ class graphAxisX extends graphAxisHorizontal
/* }}} */ /* }}} */
/** Manage the vertical axis */ /** Manage the vertical axis */
class graphAxisVertical extends graphAxisGeneral class GraphAxisVertical extends GraphAxisGeneral
/* {{{ */ /* {{{ */
{ {
/** The angle choosed to draw the graph /** The angle choosed to draw the graph
@@ -2102,7 +2102,7 @@ class graphAxisVertical extends graphAxisGeneral
/* }}} */ /* }}} */
/** The Y1 axis management */ /** The Y1 axis management */
class graphAxisY1 extends graphAxisVertical class GraphAxisY1 extends GraphAxisVertical
/* {{{ */ /* {{{ */
{ {
/** Draw one value on the axis /** Draw one value on the axis
@@ -2180,7 +2180,7 @@ die ("graphAxisY1:: drawGrid NOT numerical line ".__LINE__."\n");
/* }}} */ /* }}} */
/** The Y2 axis management */ /** The Y2 axis management */
class graphAxisY2 extends graphAxisVertical class GraphAxisY2 extends GraphAxisVertical
/* {{{ */ /* {{{ */
{ {
/** Draw one value on the axis /** 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 */ /** The graphStyleLine : draw a graph with lines */
class graphStyleLinePoints class GraphStyleLinePoints
/* {{{ */ /* {{{ */
{ {
/** The line color. To hide the lines, choose "transparent" /** The line color. To hide the lines, choose "transparent"
@@ -2541,7 +2541,7 @@ class graphStyleLinePoints
/* }}} */ /* }}} */
/** The graphStylePoints : draw a graph with points */ /** The graphStylePoints : draw a graph with points */
class graphStylePoints extends graphStyleLinePoints class GraphStylePoints extends GraphStyleLinePoints
/* {{{ */ /* {{{ */
{ {
/** The line color : transparent /** The line color : transparent
@@ -2557,7 +2557,7 @@ class graphStylePoints extends graphStyleLinePoints
/* }}} */ /* }}} */
/** The graphStyleLine : draw a graph with line */ /** 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" /** The point color background. To hide the points, choose "transparent"
@@ -2577,7 +2577,7 @@ class graphStyleLine extends graphStyleLinePoints
/* }}} */ /* }}} */
/** The graphPalette class */ /** The graphPalette class */
class graphPalette class GraphPalette
/* {{{ */ /* {{{ */
{ {
/** Get the complete palette /** Get the complete palette

View File

@@ -10,7 +10,7 @@ namespace Domframework;
/** HTTP Helper : understand the best choices provided by browser, the HTTP /** HTTP Helper : understand the best choices provided by browser, the HTTP
* codes * codes
*/ */
class http class Http
{ {
/** Choose the best choice from user choices. /** Choose the best choice from user choices.
* Can be used for languages (HTTP_ACCEPT_LANGUAGE), type of pages * Can be used for languages (HTTP_ACCEPT_LANGUAGE), type of pages

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** IMAP connection abstraction /** IMAP connection abstraction
In the IMAP terminology, "mailbox" is a folder in the mailbox of the user */ In the IMAP terminology, "mailbox" is a folder in the mailbox of the user */
class imap class Imap
{ {
/** The mailbox string */ /** The mailbox string */
private $mailbox = null; private $mailbox = null;

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Manage .ini files like in php.ini /** Manage .ini files like in php.ini
Support the sections (or not) */ Support the sections (or not) */
class inifile class Inifile
{ {
/** Return an array with the .ini file content /** Return an array with the .ini file content
* If the sections are true, the sections are analyzed too * If the sections are true, the sections are analyzed too

View File

@@ -8,7 +8,7 @@
namespace Domframework; namespace Domframework;
/** Manage the IP addresses conversions */ /** Manage the IP addresses conversions */
class ipaddresses class Ipaddresses
{ {
/** Return true if the provided IP address is valid (IPv4 or IPv6) /** Return true if the provided IP address is valid (IPv4 or IPv6)
* @param string $ip The IP Address to validate * @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 * Do not put confidential data in payload without encrypt it, as the result
* is only a Base64 format of JSON... * is only a Base64 format of JSON...
*/ */
class jwt class Jwt
{ {
// PROPERTIES // PROPERTIES
// {{{ // {{{

View File

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

View File

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

View File

@@ -10,7 +10,7 @@ namespace Domframework;
/** The logger class permit to log the information from the soft /** The logger class permit to log the information from the soft
* It allow to debug too * It allow to debug too
*/ */
class logger class Logger
{ {
/* The logger class can be used with : /* The logger class can be used with :
$d=new logger; $d=new logger;

View File

@@ -16,7 +16,7 @@ namespace Domframework;
* - 0005.313B.9080 * - 0005.313B.9080
* - 0005313B9080 * - 0005313B9080
*/ */
class macaddresses class Macaddresses
{ {
/** This method return true if the provided MAC address is valid /** This method return true if the provided MAC address is valid
* return false if the mac is not 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 /** The class to create a complete email. Can read an email from a content
*/ */
class mail class Mail
{ {
/** The complete of the mail /** The complete of the mail

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Convert the Markdown text to html format /** Convert the Markdown text to html format
*/ */
class markdown class Markdown
{ {
/** To debug the markdown analyzer, activate the option */ /** To debug the markdown analyzer, activate the option */
public $debug = false; public $debug = false;

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Module management /** Module management
*/ */
class module class Module
{ {
/** The modules are not allowed if $toplevel=0 /** The modules are not allowed if $toplevel=0
* The modules can be in a module directory if $toplevel=1 * 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 used to display data
*/ */
class output class Output
{ {
/** Class used to display data /** Class used to display data
@param mixed $data The data to be displayed */ @param mixed $data The data to be displayed */

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Display in CSV the data provided /** 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 */ /** Don't allow to output in CSV if the functions are not available in PHP */
function __construct () function __construct ()

View File

@@ -11,7 +11,7 @@ namespace Domframework;
* without using too much memory. In also allow to manage the resuming of a * without using too much memory. In also allow to manage the resuming of a
* paused transfert by getting the range of download. * paused transfert by getting the range of download.
*/ */
class outputdl class Outputdl
{ {
/** Allow or deny the resuming of the HTTP transferts /** 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 /** 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 /** Data is printed by viewClass->viewmethod, in the middle of $layout
* title is put in the title of the HTML page * title is put in the title of the HTML page

View File

@@ -10,7 +10,7 @@ namespace Domframework;
/** Display in JSON the data provided /** Display in JSON the data provided
* The data must NOT be binary ! * 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 */ /** Don't allow to output in JSON if the functions are not available in PHP */
function __construct () function __construct ()

View File

@@ -10,7 +10,7 @@ namespace Domframework;
/** Display in REST the data provided. /** Display in REST the data provided.
* Allow all the output types : JSON, XML, TXT... * 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 /** Data is printed by viewClass->viewmethod, in the middle of $layout
* title is put in the title of the HTML page * title is put in the title of the HTML page

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Display in Text the data provided /** 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) */ /** Display an array on table format (TRUE) or tree format (FALSE) */
public $table = TRUE; public $table = TRUE;

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Display in XML the data provided /** Display in XML the data provided
*/ */
class outputxml extends output class Outputxml extends Output
{ {
/** Display in XML the data provided /** Display in XML the data provided
@param mixed $data The data to be displayed */ @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 /** A class to manage the password hashing, password generation
*/ */
class password class Password
{ {
//////////////////// ////////////////////
// PROPERTIES // // PROPERTIES //

View File

@@ -17,7 +17,7 @@ namespace Domframework;
* removing of the entry * removing of the entry
* A process can get X entries starting at position Y * A process can get X entries starting at position Y
*/ */
class queue class Queue
{ {
/** The queue connected object /** The queue connected object
*/ */

View File

@@ -17,7 +17,7 @@ namespace Domframework;
* removing of the entry * removing of the entry
* A process can get X entries starting at position Y * A process can get X entries starting at position Y
*/ */
class queuefile extends queue class Queuefile extends Queue
{ {
/** The queue connected object /** The queue connected object

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** The rate limit abstract class /** The rate limit abstract class
*/ */
class ratelimit class Ratelimit
{ {
/** The maximum number of entries by specified unit time */ /** The maximum number of entries by specified unit time */
public $maxEntries = 10; public $maxEntries = 10;

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** The rate limit with file storage /** The rate limit with file storage
*/ */
class ratelimitfile extends ratelimit class Ratelimitfile extends Ratelimit
{ {
/** The storage directory */ /** The storage directory */
public $storageDir = "data/ratelimit/"; 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 /** Display the data in HTML with a FLASH method to display the errors
*/ */
class renderer class Renderer
{ {
/** The result in construction */ /** The result in construction */
public $result = NULL; public $result = NULL;

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Allow to manage the REST protocol by using the users output types /** Allow to manage the REST protocol by using the users output types
*/ */
class rest class Rest
{ {
/** Allowed types by default /** Allowed types by default
*/ */

View File

@@ -15,7 +15,7 @@ namespace Domframework;
* http://www.robotstxt.org/norobots-rfc.txt * http://www.robotstxt.org/norobots-rfc.txt
* https://en.wikipedia.org/wiki/Robots_exclusion_standard * https://en.wikipedia.org/wiki/Robots_exclusion_standard
*/ */
class robotstxt class Robotstxt
{ {
// PROPERTIES // PROPERTIES
// {{{ // {{{

View File

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

View File

@@ -10,7 +10,7 @@ namespace Domframework;
/** Automatic Routing for SQL database /** Automatic Routing for SQL database
* Allow to do CRUD on data with only one line in index.php * Allow to do CRUD on data with only one line in index.php
*/ */
class routeSQL class RouteSQL
{ {
/** Activate the debug */ /** Activate the debug */
public $debug=0; public $debug=0;

View File

@@ -10,7 +10,7 @@ namespace Domframework;
/** Create the RSS pages for the websites /** Create the RSS pages for the websites
* Specification http://www.rssboard.org/rss-specification * Specification http://www.rssboard.org/rss-specification
*/ */
class rss class Rss
{ {
/** The title of the site (MANDATORY) /** The title of the site (MANDATORY)
*/ */
@@ -142,9 +142,9 @@ class rss
*/ */
public function addItem () public function addItem ()
{ {
$rss_item = new \rss_item (); $rssitem = new Rssitem ();
$this->items[] = $rss_item; $this->items[] = $rssitem;
return $rss_item; return $rssitem;
} }
/** Return the complete RSS in XML format /** Return the complete RSS in XML format
@@ -204,7 +204,7 @@ class rss
/** Define one item in the RSS /** Define one item in the RSS
*/ */
class rss_item class Rssitem
{ {
/** The title of the item /** 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 /** This class allow to read the sitemaps files available in websites, and give
* the available URL and parameters * the available URL and parameters
*/ */
class sitemap class Sitemap
{ {
/** Return an array containing the URL in sitemap associated with the /** Return an array containing the URL in sitemap associated with the
* information of priority and changefreq (in seconds) * information of priority and changefreq (in seconds)

View File

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

View File

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

View File

@@ -17,7 +17,7 @@ namespace Domframework;
* The developper can use a handler to read/modify each event before it is * The developper can use a handler to read/modify each event before it is
* send to the user. * send to the user.
*/ */
class sse class Sse
{ {
////////////////////////// //////////////////////////
//// PROPERTIES //// //// PROPERTIES ////

View File

@@ -18,7 +18,7 @@ namespace Domframework;
* Manage the timeout, send a command, receive a max number of bytes, * Manage the timeout, send a command, receive a max number of bytes,
* allow SSL trafic with CA verification * allow SSL trafic with CA verification
*/ */
class tcpclient class Tcpclient
{ {
// PROPERTIES // // PROPERTIES //
// {{{ // {{{

View File

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

View File

@@ -11,7 +11,7 @@ namespace Domframework;
* Allow to manage the users in multiple storages (SQL, HTPasswd, passwd file). * Allow to manage the users in multiple storages (SQL, HTPasswd, passwd file).
* CRUD the users and allow to modify the password * CRUD the users and allow to modify the password
*/ */
class users class Users
{ {
/** Connect to the storage /** Connect to the storage
*/ */

View File

@@ -10,7 +10,7 @@ namespace Domframework;
/** Store the users in SQL database. Manage the creation of the users, /** Store the users in SQL database. Manage the creation of the users,
* modification, delete, password management * modification, delete, password management
*/ */
class userssql extends users class Userssql extends Users
{ {
/** The database connector */ /** The database connector */
private $dsn; private $dsn;

View File

@@ -9,7 +9,7 @@ namespace Domframework;
/** Generate a UUID v4 /** Generate a UUID v4
*/ */
class uuid class Uuid
{ {
/** Create a UUID /** Create a UUID
* Based on http://php.net/manual/fr/function.uniqid.php#94959 * 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 /** Permit to check the validity of fields
*/ */
class verify class Verify
{ {
///////////////// /////////////////
// NETWORK // // NETWORK //

View File

@@ -10,7 +10,7 @@ namespace Domframework;
/** Create a diff from two strings, array or files /** Create a diff from two strings, array or files
* The output is compatible with "patch" command. * The output is compatible with "patch" command.
*/ */
class xdiff class Xdiff
{ {
/** The name of file1 /** The name of file1
*/ */

View File

@@ -10,7 +10,7 @@ namespace Domframework;
/** This class allow to send XMPP messages to a server. /** This class allow to send XMPP messages to a server.
* If the server supports it, crypt the connection by StartTLS before auth * If the server supports it, crypt the connection by StartTLS before auth
*/ */
class xmppclient class Xmppclient
{ {
// CLASS CONSTANT // // CLASS CONSTANT //
// {{{ // {{{