Skip to content

Commit

Permalink
Documentation 21.22.10
Browse files Browse the repository at this point in the history
  • Loading branch information
legagneur-matthieu committed Oct 5, 2022
1 parent 7e0aada commit 0aa082d
Show file tree
Hide file tree
Showing 12 changed files with 298 additions and 128 deletions.
Empty file modified html/doc/class/.htaccess
100755 → 100644
Empty file.
Empty file modified html/doc/class/config.class.php
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion html/doc/class/docMobile.class.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private function debuter() {
<em>$dwf.cordova().is_connected_web();</em> qui retourne true si l'appareil est connecté, sinon false;

</p>
<h4>les formulaires avec $dwf</h4>
<h4>Les formulaires avec $dwf</h4>
<p>Le framework permet de gérer les formulaires en toute simplicité, en 6 étapes</p>
<ol>
<li>Création de la balise form avec jquery.html()</li>
Expand Down
187 changes: 148 additions & 39 deletions html/doc/class/docPHP.class.php
100755 → 100644

Large diffs are not rendered by default.

124 changes: 92 additions & 32 deletions html/doc/class/docPHP_natives.class.php
100755 → 100644

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions html/doc/class/docPHP_natives_js.class.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function log_std() {

public function log_success() {
?>
<p>Affiche un message de log (de succes) à l'écran de l'utilisateur (utilise la librairie <a href="http://www.alertifyjs.com/">alertyfy</a>)</p>
<p>Affiche un message de log (de succès) à l'écran de l'utilisateur (utilise la librairie <a href="http://www.alertifyjs.com/">alertyfy</a>)</p>
<?php
js::syntaxhighlighter("<?php js::log_success($" . "msg); ?>", $this->_brush);
}
Expand Down Expand Up @@ -104,8 +104,8 @@ public function ckeditor() {

public function jsqr() {
?>
<p>Cette classe permet de lire un QRCode depuis une camera et afficher le resultat dans un élément HTML <br />
Si l'élément HTML est un input alors le résultat deviendra la valeur de l'input <br />
<p>Cette classe permet de lire un QRCode depuis une caméra et afficher le résultat dans un élément HTML.<br />
Si l'élément HTML est un input alors le résultat deviendra la valeur de l'input.<br />
Il est déconseillé d'utiliser cette classe plusieurs fois dans la même page</p>
<?php
js::syntaxhighlighter("<?php \n"
Expand Down
35 changes: 18 additions & 17 deletions html/doc/class/docTiers.class.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -17,44 +17,45 @@ public function __construct() {
html_structures::table(["Librairie", "Version", "Auteur", "Langage", "Licence"], [
[html_structures::a_link("https://alertifyjs.com", "Alertify", "", "", true), "1.13.1", "Fabien Doiron", "JS", $licences[0]],
[html_structures::a_link("https://animate.style", "Animate", "", "", true), "4.1.1", "Daniel Eden", "JS", $licences[0]],
[html_structures::a_link("https://getbootstrap.com", "Bootsrap", "", "", true), "5.0.2", "Twitter, Inc.", "CSS, JS", $licences[0]],
[html_structures::a_link("https://icons.getbootstrap.com", "Bootsrap Icons", "", "", true), "1.5.0", "Twitter, Inc.", "CSS", $licences[0]],
[html_structures::a_link("https://bootswatch.com", "Bootswatch", "", "", true), "5.0.2", "Thomas Park", "CSS", $licences[0]],
[html_structures::a_link("https://getbootstrap.com", "Bootsrap", "", "", true), "5.2.1", "Twitter, Inc.", "CSS, JS", $licences[0]],
[html_structures::a_link("https://icons.getbootstrap.com", "Bootsrap Icons", "", "", true), "1.9.1", "Twitter, Inc.", "CSS", $licences[0]],
[html_structures::a_link("https://bootswatch.com", "Bootswatch", "", "", true), "5.2.1", "Thomas Park", "CSS", $licences[0]],
[html_structures::a_link("https://github.com/Gregwar/Captcha", "Captcha", "", "", true), "1.1.9", "Gregwar", "PHP", $licences[0]],
[html_structures::a_link("https://ckeditor.com/ckeditor-4/", "Ckeditor", "", "", true), "4.16.1", "Frederico Knabben", "JS", $licences[1]],
[html_structures::a_link("https://github.com/Cerdic/CSSTidy", "CSSTidy", "", "", true), "1.7.3", "Cedric Morin", "PHP", $licences[2]],
[html_structures::a_link("https://js.cytoscape.org", "Cytoscape", "", "", true), "3.19.0", "The Cytoscape Consortium", "JS", $licences[10]],
[html_structures::a_link("https://www.datatables.net", "Datatable", "", "", true), "1.10.25", "SpryMedia Limited", "JS", $licences[10]],
[html_structures::a_link("https://ckeditor.com/ckeditor-4/", "Ckeditor", "", "", true), "4.19.1", "Frederico Knabben", "JS", $licences[1]],
[html_structures::a_link("https://github.com/Cerdic/CSSTidy", "CSSTidy", "", "", true), "2.0.3", "Cedric Morin", "PHP", $licences[2]],
[html_structures::a_link("https://js.cytoscape.org", "Cytoscape", "", "", true), "3.23.0", "The Cytoscape Consortium", "JS", $licences[10]],
[html_structures::a_link("https://www.datatables.net", "Datatable", "", "", true), "1.12.1", "SpryMedia Limited", "JS", $licences[10]],
[html_structures::a_link("https://github.com/trentrichardson/jQuery-Timepicker-Addon", "Datetimepicker", "", "", true), "1.6.3", "Trent Richardson", "JS", $licences[0]],
[html_structures::a_link("https://github.com/dompdf/dompdf", "Dompdf", "", "", true), "1.0.2", "Benj Carson", "PHP", $licences[2]],
[html_structures::a_link("https://github.com/dompdf/dompdf", "Dompdf", "", "", true), "2.0.1", "Benj Carson", "PHP", $licences[2]],
[html_structures::a_link("https://jdownloader.org/knowledge/wiki/linkprotection/container/dlcapi", "Dlcapi", "", "", true), "1.0.1", "JDTeam", "PHP", $licences[10]],
[html_structures::a_link("https://studio-42.github.io/elFinder", "elFinder", "", "", true), "2.1.59", "Studio 42", "JS, PHP", $licences[3]],
[html_structures::a_link("https://studio-42.github.io/elFinder", "elFinder", "", "", true), "2.1.61", "Studio 42", "JS, PHP", $licences[3]],
[html_structures::a_link("https://fancyapps.com/fancybox/3", "Fancybox", "", "", true), "3.5.7", "fancyApps", "CSS, JS", $licences[1]],
[html_structures::a_link("https://github.com/stretchr/filetypes.js", "Filetypes.js", "", "", true), "1.0", "Mat Ryer", "JS", $licences[0]],
[html_structures::a_link("http://www.raymondhill.net/finediff/viewdiff-ex.php", "Finediff", "", "", true), "0.6", "Raymond Hill", "PHP", $licences[0]],
[html_structures::a_link("http://www.flotcharts.org", "Flot", "", "", true), "4.2.2", "IOLA and Ole Laursen", "JS", $licences[0]],
[html_structures::a_link("http://www.flotcharts.org", "Flot", "", "", true), "4.2.3", "IOLA and Ole Laursen", "JS", $licences[0]],
[html_structures::a_link("https://github.com/yconst/Freetile", "Freetile", "", "", true), "0.3.1", "Ioannis (Yannis) Chatzikonstantinou", "JS", $licences[10]],
[html_structures::a_link("https://fullcalendar.io", "Fullcalendar", "", "", true), "5.8.0", "Adam Shaw", "JS", $licences[0]],
[html_structures::a_link("https://fullcalendar.io", "Fullcalendar", "", "", true), "5.11.3", "Adam Shaw", "JS", $licences[0]],
[html_structures::a_link("https://github.com/googleapis/google-api-php-client", "Google OAuth SDK", "", "", true), "2.12.6", "Google", "PHP", $licences[4]],
[html_structures::a_link("https://jquery.com", "JQuery, JQuery-UI", "", "", true), "1.12.1", "jQuery Foundation", "JS", $licences[0]],
[html_structures::a_link("https://willowsystems.github.io/jSignature", "JSignature", "", "", true), "2.0", "Willowsystems", "JS", $licences[0]],
[html_structures::a_link("https://github.com/cozmo/jsQR", "jsQR", "", "", true), "2021.04", "Cozmo", "JS", $licences[4]],
[html_structures::a_link("https://leafletjs.com", "Leaflet", "", "", true), "1.7.1", "Vladimir Agafonkin, CloudMade", "JS", $licences[10] . ", OSMF"],
[html_structures::a_link("https://github.com/cozmo/jsQR", "jsQR", "", "", true), "2021.08", "Cozmo", "JS", $licences[4]],
[html_structures::a_link("https://leafletjs.com", "Leaflet", "", "", true), "1.9.1", "Vladimir Agafonkin, CloudMade", "JS", $licences[10] . ", OSMF"],
[html_structures::a_link("#", "Modal", "", "", true), "1.0", "<em>Inconnu</em>", "JS", $licences[10]],
[html_structures::a_link("http://paypal.github.io/PayPal-PHP-SDK/", "PayPal-PHP-SDK", "", "", true), "1.14.0", "PAYPAL INC.", "PHP", $licences[10]],
[html_structures::a_link("https://phpjs.hertzen.com/", "Php.js", "", "", true), "1.2", "Niklas von Hertzen", "JS", $licences[0]],
[html_structures::a_link("https://locutus.io/php/", "Phpjs", "", "", true), "1.3.2", "Kevin van Zonneveld, Locutus", "JS", $licences[0]],
[html_structures::a_link("https://github.com/facebookarchive/php-graph-sdk", "Php-graph-sdk", "", "", true), "5.7.0", "Facebook INC.", "PHP", $licences[10]],
[html_structures::a_link("https://github.com/PHPMailer/PHPMailer", "Phpmailer", "", "", true), "6.5.0", "Marcus Bointon, Jim Jagielski, Andy Prevost, Brent R. Matzelle", "PHP", $licences[2]],
[html_structures::a_link("https://github.com/PHPMailer/PHPMailer", "Phpmailer", "", "", true), "6.6.4", "Marcus Bointon, Jim Jagielski, Andy Prevost, Brent R. Matzelle", "PHP", $licences[2]],
[html_structures::a_link("http://phpqrcode.sourceforge.net/", "Phpqrcode", "", "", true), "1.1.4", "Dominik Dzienia", "PHP", $licences[2]],
[html_structures::a_link("https://github.com/scottjehl/Respond", "Respond", "", "", true), "1.4.2", "Scott Jehl", "JS", $licences[0]],
[html_structures::a_link("https://revealjs.com/", "Reveal", "", "", true), "4.2.1", "Hakim El Hattab", "JS", $licences[0]],
[html_structures::a_link("https://revealjs.com/", "Reveal", "", "", true), "4.3.1", "Hakim El Hattab", "JS", $licences[0]],
[html_structures::a_link("#", "ReversoLib", "", "", true), "1.0", "Dyrk", "PHP", "<em>Aucune</em>"],
[html_structures::a_link("https://tutorialzine.com/2011/09/shuffle-letters-effect-jquery", "Shuffleletters", "", "", true), "1.0", "Martin Angelov", "JS", $licences[0]],
[html_structures::a_link("https://github.com/christopherwk210/SimpleParallax", "SimpleParallax", "", "", true), "0.1", "Chris Anselmo (christopherwk210)", "JS", $licences[0]],
[html_structures::a_link("https://www.smarty.net", "Smarty", "", "", true), "3.1.39", "Uwe Tews, Rodney Rehm", "PHP", $licences[2]],
[html_structures::a_link("https://www.smarty.net", "Smarty", "", "", true), "4.2.1", "Uwe Tews, Rodney Rehm", "PHP", $licences[2]],
[html_structures::a_link("https://jonobr1.com/stalactite/", "Stalactite", "", "", true), "0.1", "Jono Brandel", "JS", $licences[4]],
[html_structures::a_link("https://github.com/syntaxhighlighter/syntaxhighlighter", "syntaxhighlighter", "", "", true), "3.0.83", "Alex Gorbatchev", "JS", $licences[0] . ', ' . $licences[1]],
[html_structures::a_link("https://videojs.com/", "Videojs", "", "", true), "7.13.3", "Brightcove, Inc.", "JS", $licences[4]],
[html_structures::a_link("https://videojs.com/", "Videojs", "", "", true), "7.20.3", "Brightcove, Inc.", "JS", $licences[4]],
[html_structures::a_link("http://richhollis.github.io/vticker/", "Vticker", "", "", true), "1.21", "Richard Hollis", "JS", $licences[0] . ", " . $licences[3]],
[html_structures::a_link("https://github.com/Machy8/xhtml-formatter", "Xhtml-formatter", "", "", true), "1.0", "Vladimír Macháček", "PHP", $licences[3]],
], "", "datatable") . html_structures::hr() .
Expand Down
Empty file modified html/doc/class/docform.php
100755 → 100644
Empty file.
24 changes: 12 additions & 12 deletions html/doc/class/entity/fullcalendar_event.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public static function ajout( $calendar, $title, $start, $end, $url) {
public static function get_structure() {
return json_decode('[["id","int",true],["calendar","string",false],["title","string",false],["start","string",false],["end","string",false],["url","string",false]]', true);
}
/** Retourne le contenu de la table sout forme d'une collection
*ATTENTION PENSEZ A UTILISER application::$_bdd->protect_var(); */
/** Retourne le contenu de la table sous forme d'une collection
*ATTENTION, PENSEZ A UTILISER application::$_bdd->protect_var(); */
public static function get_collection($where = "" ) {
$col=[];
foreach (fullcalendar_event::get_table_array($where) as $entity) {
Expand All @@ -65,8 +65,8 @@ public static function get_collection($where = "" ) {
}
return $col;
}
/** Retourne le contenu de la table sout forme d'un tableau a 2 dimentions
* ATTENTION PENSEZ A UTILISER application::$_bdd->protect_var(); */
/** Retourne le contenu de la table sous forme d'un tableau à deux dimensions
* ATTENTION, PENSEZ A UTILISER application::$_bdd->protect_var(); */
public static function get_table_array($where = "") {
$data = application::$_bdd->fetch("select * from fullcalendar_event" . (!empty($where) ? " where " . $where : "") . ";");
$tuples_array = [];
Expand All @@ -82,8 +82,8 @@ public static function get_table_array($where = "") {
}
return $data;
}
/** Retourne le contenu de la table sout forme d'un tableau a 2 dimentions dont la clé est l'identifiant de l'entité
* ATTENTION PENSEZ A UTILISER application::$_bdd->protect_var(); */
/** Retourne le contenu de la table sous forme d'un tableau à deux dimensions dont la clé est l'identifiant de l'entité
* ATTENTION, PENSEZ A UTILISER application::$_bdd->protect_var(); */
public static function get_table_ordored_array($where = "") {
$data = [];
foreach (fullcalendar_event::get_table_array($where) as $value) {
Expand All @@ -92,13 +92,13 @@ public static function get_table_ordored_array($where = "") {
}
return $data;
}
/** Retourne le nombre d'entré
* ATTENTION PENSEZ A UTILISER application::$_bdd->protect_var(); */
/** Retourne le nombre d'entrée
* ATTENTION, PENSEZ A UTILISER application::$_bdd->protect_var(); */
public static function get_count($where = "" ) {
$data = application::$_bdd->fetch("select count(*) as count from fullcalendar_event".(!empty($where)?" where " . $where:"").";");
return $data[0]['count'];
}
/** Retourne une entité sous forme d'objet a partir de son identifiant
/** Retourne une entité sous forme d'objet à partir de son identifiant
* @return fullcalendar_event|boolean */
public static function get_from_id($id) {
if (isset(self::$_entity_memento[$id])) {
Expand All @@ -108,8 +108,8 @@ public static function get_from_id($id) {
return ((isset($data[0]) and $data[0] != FALSE) ? self::$_entity_memento[$id]=new fullcalendar_event($data[0]) : false);
}
}
/** Retourne le contenu de la table sout forme d'un objet json (utile pour les services)
* ATTENTION PENSEZ A UTILISER application::$_bdd->protect_var();
/** Retourne le contenu de la table sous forme d'un objet json (utile pour les services)
* ATTENTION, PENSEZ A UTILISER application::$_bdd->protect_var();
* @return string Objet json */
public static function get_json_object($where = "") {
return json_encode(fullcalendar_event::get_table_ordored_array($where));
Expand All @@ -118,7 +118,7 @@ public static function get_json_object($where = "") {
public static function delete_by_id($id) {
application::$_bdd->query("delete from fullcalendar_event where id='" . application::$_bdd->protect_var((int)$id) . "';");
}
/** Supprime l'entité a la fin du script*/
/** Supprime l'entité à la fin du script*/
public function delete() {
$this->_this_was_delete=true;
}
Expand Down
22 changes: 11 additions & 11 deletions html/doc/class/entity/rang.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct($data) {
$this->_this_was_modified = false;
}

/** Ajoute une entrée en base de donnée */
/** Ajoute une entrée en base de données */
public static function ajout($nom) {
$nom = application::$_bdd->protect_var($nom);
application::$_bdd->query("INSERT INTO rang(nom) VALUES('" . $nom . "');");
Expand All @@ -38,8 +38,8 @@ public static function get_structure() {
return json_decode('[["id","int",true],["nom","string",false]]', true);
}

/** Retourne le contenu de la table sout forme d'une collection
* ATTENTION PENSEZ A UTILISER application::$_bdd->protect_var(); */
/** Retourne le contenu de la table sous forme d'une collection
* ATTENTION, PENSEZ A UTILISER application::$_bdd->protect_var(); */
public static function get_collection($where = "") {
$col = false;
foreach (rang::get_table_array($where) as $entity) {
Expand All @@ -50,8 +50,8 @@ public static function get_collection($where = "") {
return $col;
}

/** Retourne le contenu de la table sout forme d'un tableau a 2 dimentions
* ATTENTION PENSEZ A UTILISER application::$_bdd->protect_var(); */
/** Retourne le contenu de la table sous forme d'un tableau à deux dimensions
* ATTENTION, PENSEZ A UTILISER application::$_bdd->protect_var(); */
public static function get_table_array($where = "") {
$data = application::$_bdd->fetch("select * from rang" . (!empty($where) ? " where " . $where : "") . ";");
$tuples_array = [];
Expand All @@ -68,8 +68,8 @@ public static function get_table_array($where = "") {
return $data;
}

/** Retourne le contenu de la table sout forme d'un tableau a 2 dimentions dont la clé est l'identifiant de l'entité
* ATTENTION PENSEZ A UTILISER application::$_bdd->protect_var(); */
/** Retourne le contenu de la table sous forme d'un tableau à deux dimensions dont la clé est l'identifiant de l'entité
* ATTENTION, PENSEZ A UTILISER application::$_bdd->protect_var(); */
public static function get_table_ordored_array($where = "") {
$data = [];
foreach (rang::get_table_array($where) as $value) {
Expand All @@ -79,14 +79,14 @@ public static function get_table_ordored_array($where = "") {
return $data;
}

/** Retourne le nombre d'entré
* ATTENTION PENSEZ A UTILISER application::$_bdd->protect_var(); */
/** Retourne le nombre d'entrée
* ATTENTION, PENSEZ A UTILISER application::$_bdd->protect_var(); */
public static function get_count($where = "") {
$data = application::$_bdd->fetch("select count(*) as count from rang" . (!empty($where) ? " where " . $where : "") . ";");
return $data[0]['count'];
}

/** Retourne une entité sous forme d'objet a partir de son identifiant
/** Retourne une entité sous forme d'objet à partir de son identifiant
* @return rang|boolean */
public static function get_from_id($id) {
$data = self::get_table_array("id='" . application::$_bdd->protect_var($id) . "'");
Expand All @@ -105,7 +105,7 @@ public static function delete_by_id($id) {
application::$_bdd->query("delete from rang where id='" . application::$_bdd->protect_var((int) $id) . "';");
}

/** Supprime l'entité a la fin du script */
/** Supprime l'entité à la fin du script */
public function delete() {
$this->_this_was_delete = true;
}
Expand Down
Loading

0 comments on commit 0aa082d

Please sign in to comment.