Commit Graph

185 Commits

Author SHA1 Message Date
05e817fa44 Add the language in $GLOBALS variable to be easily use in views
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1666 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-06 14:16:05 +00:00
37317a1cca Version 0.7 in development
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1665 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-06 13:55:55 +00:00
e0b87e6670 Update the language.php file to support domframework domain.
Temporaly remove the link cache support (use clearstatcache instead)


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1663 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-06 13:49:20 +00:00
d214119fbf Add the .mo files
Correct a fr_FR translation


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1662 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-06 13:19:15 +00:00
b8a3e1aa23 Update domframework to be gettext package compliant
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1661 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-06 13:16:43 +00:00
ab7f76d0bb Add the translations of domframework strings
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1660 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-06 09:17:27 +00:00
c6587aeb11 Test of cachefile should be done in /tmp
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1654 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-01 12:52:43 +00:00
45b70602a7 Add Unit Tests
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1653 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-01 12:48:37 +00:00
086e2d1bcf Correct the autoload for Unit Tests
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1652 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-01 12:47:21 +00:00
355a8f6111 Add comments to phpdoc
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1651 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-01 12:33:27 +00:00
39bfbad1e9 The params function of config don't display the default param, but return it in array
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1650 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-01 11:42:17 +00:00
40ad90502c dblayer : Add dropTable support
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1644 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-01 08:04:54 +00:00
9fef934b71 Cosmetics : remove spaces at the end of lines and correct lines with more than 80 chars
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1643 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-01 07:11:14 +00:00
e823248ff7 Removing unused dirs debian file
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1635 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-31 17:46:14 +00:00
8e18c869e5 Remove unnecessary directory in debian
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1634 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-31 17:44:57 +00:00
66509af77f Correct typo : thanks Lintian
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1633 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-31 17:43:00 +00:00
ff12d10954 Prepare version 0.6
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1632 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-31 17:42:09 +00:00
1e8c4cfef6 Rename domframeworkversion.php to version.php
Update how the version is returned to the caller


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1630 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-31 14:26:56 +00:00
83fae5f05b Add support to domframeworkversion support
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1629 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-31 14:21:30 +00:00
dea292339a dblayer : don't check the non provided field in update
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1623 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-31 12:54:04 +00:00
33f15aff33 dblayer: Add the verification of the types of fields in update
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1622 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-31 12:47:19 +00:00
49fbe8b16e dblayer : Add verification of format in insert selected by field type
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1621 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-31 12:42:21 +00:00
cf51241f34 BUG dblayer : if the foreign keys are not modified, we don't check if they are correct
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1617 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-31 12:00:56 +00:00
b15d90ce0b dblayer : add date support
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1602 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-30 12:07:55 +00:00
7afa8bfc54 dblayer : Add better error messages (gettext, Exception code, field name)
dblayer : Add support to date type 


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1601 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-30 11:49:36 +00:00
725356dda0 Allow the configuration file to be defined by a PHP constant for phpunit
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1599 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-30 11:28:56 +00:00
09e7559086 dblayer/authorizationdb : tableprefix is updated
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1595 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-30 09:10:41 +00:00
8f9e540a4a dblayer : Simplify the prefix table code (all the calls are the same)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1592 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-30 08:24:12 +00:00
7c935b49ef dblayer : Add the prefix support in tables name
dblayer : Add $table public attribute in the definition


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1591 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-30 06:31:04 +00:00
8e5824a503 cacheoutput : If the TTL is 0, disable the cache in file correctely
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1588 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-28 18:18:13 +00:00
b20c47c884 Version 0.5
* dblayer : Add a check before using unique/foreign to be sure that the field
  to be linked is in the fields array
  * dblayer : rename the function create to insert. Keep the create temporaly to
    be compliant with old soft
  * Create the phpunit tests : just run "phpunit" from the root directory
  * route : baseURL/requestURL : missing port when using not standard port
  * PHP Strict Standards:  Only variables should be passed by reference in
    cli.php on line 151 (on debian, whith ./cli/cli.php records)
  * Add support to variables in the renderer. They will be availabe to the view
    to be trated as needed
  * Add support to cache in file (anything can be cached)
  * Add support to easy cache HTML pages
  * Route : remove port in baseURL if it is the standard port (http->80,
    https->443)
  * cachefile : run the garbage collector each request (it will be skipped if
    it is run too early, before 24h)


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1586 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-28 11:46:13 +00:00
c5f4f745b0 cachefile : Run the garbage each 24h automatically
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1585 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-28 11:44:18 +00:00
7631d8cb71 Docs : Add dblayer example
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1584 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-28 10:27:26 +00:00
d09e4ad4c1 Add the database abstraction layer in the USAGE
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1583 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-28 10:22:03 +00:00
414610db41 dblayer : Add test of foreign keys before INSERT or UPDATE. Reject with an exception if the foreign key doesn't exists
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1582 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-28 10:13:51 +00:00
2f1c06a53a The routeTest was incorrect : the SERVER_PORT is a string, not an integer
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1578 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-27 09:37:08 +00:00
3a35351199 Remove the ports in baseURL if it is the standard port (80 for http, 443 for https)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1577 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-27 09:29:02 +00:00
af990df2f3 Correct typo consistancy -> consistency
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1571 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-27 06:59:41 +00:00
e93aacecbc The cache doc is inconsistent : the cache ttl is 60s, not 3600s
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1568 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-27 06:38:58 +00:00
9d3e7c987f Cacheoutput : first version : easy method to cache the HTML pages
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1567 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-27 06:12:42 +00:00
e52cda1216 The cache dir must be with 0777, not 0666 !
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1566 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-27 05:50:23 +00:00
34b0dfe095 Add the cas study for routing with ending slash in docs
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1565 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-27 05:19:45 +00:00
0e0fa5942e Put the informations to chmod in the right sense
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1558 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-25 16:26:28 +00:00
2b41be35ff The caches can be read or write by anybody to be usable in CLI in plus of Apache
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1557 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-25 16:24:38 +00:00
f08221a9cd Update the tests for cachefile
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1555 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-25 16:12:15 +00:00
0d36aa7b47 Rename cacheFileTest in cachefileTest
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1554 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-25 16:11:18 +00:00
18d9f3f73f Update name of class in cachefile
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1553 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-25 16:10:13 +00:00
eededab422 Rename cacheFile in cachefile to be consistent with all domframework
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1552 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-25 16:09:53 +00:00
92fbf288f7 Rework of blog example to be compliant with version of domframework
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1551 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-25 12:40:19 +00:00
11624f512b First version of cacheFile with associated tests
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1550 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-25 09:59:33 +00:00