Add changelog
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2711 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
61
debian/changelog
vendored
61
debian/changelog
vendored
@@ -1,3 +1,64 @@
|
|||||||
|
domframework (0.25-1) testing; urgency=low
|
||||||
|
* Update Unit tests to not depend of configuration
|
||||||
|
* Update Unit tests to have a distinct database file by test file
|
||||||
|
* file : all the management of the files, with integrated filesystem checks,
|
||||||
|
and virtual chroot support
|
||||||
|
* form : fieldwidth is now functionnal
|
||||||
|
* form : add the methods getOldValues, getOldErrors, saveValuesErrors and
|
||||||
|
saveValuesErrorsReset to simplify the codes.
|
||||||
|
In views :
|
||||||
|
$form = new \form ();
|
||||||
|
$values = array ();
|
||||||
|
$errors = array ();
|
||||||
|
// If there is saved values, use them, else return the provided $values
|
||||||
|
$values = $form->getOldValues ($values);
|
||||||
|
$errors = $form->getOldErrors ($errors);
|
||||||
|
In index.php :
|
||||||
|
$form = new \form ();
|
||||||
|
$values = $form->values ();
|
||||||
|
$errors = $ipsetsObj->verify ($values);
|
||||||
|
$form->saveValuesErrors ($values, $errors);
|
||||||
|
if (count ($errors)) $route->redirect ("/ipsets/add");
|
||||||
|
$ipsetsObj->createSet ($values["setname"], $values["typename"]);
|
||||||
|
// If there is no error (catched by exception), clear the form for next
|
||||||
|
// time
|
||||||
|
$form->saveValuesErrorsReset ();
|
||||||
|
$route->redirect ("/ipsets", "");
|
||||||
|
* route : redirect without module : default = "";
|
||||||
|
* route : allow to define a viewErrorClass and viewErrorMethod to catch the
|
||||||
|
exceptions raised by the code. Simplfy th e index.php :
|
||||||
|
$route->viewClass = '\views\ipsets';
|
||||||
|
$route->viewErrorMethod = 'error';
|
||||||
|
$ipsetsObj = new \controllers\ipsets ();
|
||||||
|
$form = new \form ();
|
||||||
|
$values = $form->values ();
|
||||||
|
$errors = $ipsetsObj->verify ($values);
|
||||||
|
$form->redirectIfErrors ($values, $errors, "/ipsets/add");
|
||||||
|
$ipsetsObj->createSet ($values["setname"], $values["typename"]);
|
||||||
|
$route->redirect ("/ipsets", "");
|
||||||
|
* form : if the provided error for a field is not an array, use the default
|
||||||
|
error class and use the value as message
|
||||||
|
* route : if there is an error with the ratelimiter (directory not
|
||||||
|
writeable...), overload the exception by the ratelimiter exception
|
||||||
|
* auth : Add Shibboleth support
|
||||||
|
* route : store in session the last valid get page to allow to return with
|
||||||
|
small method : $route->lastValidGetPageRedirect ();
|
||||||
|
* form : add the verify of forms. Actually check only the mandatory part
|
||||||
|
* form : add maxlength support
|
||||||
|
* mail : the mail creator. Allow to create complete mails easily
|
||||||
|
$mail = new mail ();
|
||||||
|
$mail->setFrom ("sender@example.com","Sender Example Com");
|
||||||
|
$mail->addTo ("recipient1@example.com","Recipient1 Example Com");
|
||||||
|
$mail->addTo ("recipient2@example.com","Recipient2 Example Com");
|
||||||
|
$mail->setBodyText ("Content of TextBody part");
|
||||||
|
$mail->addAttachment ("file0.text", "File content");
|
||||||
|
$contentID1 = $mail->addAttachmentInline ("file2.jpg",
|
||||||
|
file_get_contents ("file2.jpg"));
|
||||||
|
$mail->setBodyHTML ("<p>Content of HTMLBody part with inline
|
||||||
|
<img src='cid:$contentID1'></p>");
|
||||||
|
echo $mail->getMail ();
|
||||||
|
-- Dominique Fournier <dominique@fournier38.fr> Mon, 02 May 2016 15:44:57 +0100
|
||||||
|
|
||||||
domframework (0.24-1) testing; urgency=low
|
domframework (0.24-1) testing; urgency=low
|
||||||
* Add DBJSON support. DBJSON is a NoSQL database, writing the data in one
|
* Add DBJSON support. DBJSON is a NoSQL database, writing the data in one
|
||||||
file. There is no optimizations, so it is not fast, but it works on all
|
file. There is no optimizations, so it is not fast, but it works on all
|
||||||
|
|||||||
Reference in New Issue
Block a user