Commit Graph

163 Commits

Author SHA1 Message Date
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
7d90d6fba8 Renderer : Update docs to add the variable support to view
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1532 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-20 20:39:30 +00:00
8612a760ba Add the variables support to the renderer : we can send datas variable to the view and the view can manage them. The Search/Replacement feature continue to be available
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1531 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-20 20:37:44 +00:00
09e5365124 cli : BUG : Removing Strict Standard warning
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1513 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-01 16:26:37 +00:00
87cb2d4fcf markdown allow a good indentation in ul/li.
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1511 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-01 12:27:50 +00:00
386f490481 Add the code coverage to phpunit. Need to be launch with phpunit --coverage-text or phpunit --coverage-html=/tmp/cover
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1510 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-01 11:26:50 +00:00
0b8eede15c markdown : BUG : in code, don't allow to have list. Just code !
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1509 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-30 14:33:09 +00:00
18fe0913ae markdown : BUG : Correct the "code" section : don't allow ul/li in codes, print */- normally
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1508 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-30 12:11:52 +00:00
9ef7095303 markdown : BUG in Sharp Titles (if not ending by #, the title is not discovered)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1507 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-30 11:24:57 +00:00
980d68d2f1 Add markdown phpunit tests
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1506 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-30 10:40:15 +00:00
4191996006 markdown : BUG : Errors in \n in return
markdown : BUG : Error if code section starting at the top of text
markdown : All the actual phpunit tests are good


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1505 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-30 10:39:47 +00:00
0823d36cd6 markdown : correct partial testTitleSharp : removing unwanted ending space
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1504 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-30 07:46:03 +00:00
a404db66d8 Tests : don't remove $_SERVER variable
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1502 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-27 12:59:28 +00:00
052a8a8d1a Add PHPUnit tests
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1501 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-27 11:57:45 +00:00
884da19d71 route : Correct support of SERVER_PORT
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1500 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-27 11:56:27 +00:00
fef26c83a6 Add ports in routing module
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1499 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-27 09:21:04 +00:00
40b9ac1015 Add port in URL to the routing module
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1498 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-27 09:18:17 +00:00
136790a988 route : BUG : Add server port in routing to be used in VPN
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1497 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-27 08:52:29 +00:00
2ad181d97b Preparing the 0.4 version
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1494 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-27 08:02:12 +00:00
7e4102d103 Allow characters with # in the titles
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1493 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-25 20:24:36 +00:00
2c4e69f62e Markdown : be compatible with ul or li
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1492 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-25 19:45:21 +00:00
284a4e2c5e BUG : the ### TITLEx doesn't work caused by the search empty line at the ned and at the start of the regex
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1491 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-25 19:35:29 +00:00
3116a1f5c3 Correct the code when it finished the file : no blank line
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1490 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-25 19:19:19 +00:00