Commit Graph

97 Commits

Author SHA1 Message Date
Ingo Schommer
daca02b9a7 mlanthaler: Don't show a error message and don't quit the script when the error was expected (statement with an @ in front to suppress the error). (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41730 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 03:19:34 +00:00
Ingo Schommer
f7646412f4 fixed merging error
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41727 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 02:49:36 +00:00
Ingo Schommer
817f279cf1 pkrenn: Added methods needed for testing, namely databaseExists and selectDatabase (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41713 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:45:06 +00:00
Ingo Schommer
f912a33b63 pkrenn: Fixing database issues (wrong DB connections, logical errors) (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41712 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:44:34 +00:00
Ingo Schommer
b29cc1fbc7 pkrenn: tableList() fixed, indexList() added (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41711 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:41:13 +00:00
Ingo Schommer
c892ad24a3 pkrenn: Issues with prepared statements fixed (as they are limited to only a few positions).
fieldList() is nearly finished, only the default values are not working correctly, but that should be done rather soon  (merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41710 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:39:37 +00:00
Ingo Schommer
9a516662d0 pkrenn: tableList() has been added, three different queries necessary (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41709 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:37:48 +00:00
Ingo Schommer
08b2874a41 pkrenn: getGeneratedID added, fixed class PDOQuery (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41707 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:35:54 +00:00
Ingo Schommer
c144bf1aef pkrenn: Code cleaned up and affectedRows() are now supported (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41706 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:32:37 +00:00
Ingo Schommer
d7a4e657dc pkrenn: Methods with alter (field, table, index) rewritten - now supporting prepared statements. (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41705 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:29:09 +00:00
Ingo Schommer
f0b9103de4 pkrenn: Various database updates (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41704 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:28:16 +00:00
Ingo Schommer
713802622b pkrenn: Various database updates (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41703 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:24:30 +00:00
Ingo Schommer
f2564794bf pkrenn: Basic PDO (PHP Database Object) class, including the connection strings.
Other functions need to be ported from MySQLDatabase.php into PDO syntax. (merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41702 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:23:36 +00:00
Ingo Schommer
d9b0843281 lperera: Fixed error message - Convert::raw2html is deprecated. (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41701 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:21:37 +00:00
Ingo Schommer
0d80ed0e7b wscott: Patched the director to allow modules to register a function
that will be run on every page load. 


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41691 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 00:54:02 +00:00
Ingo Schommer
4cb5bd719a wscott: Added some additional fixes & such to sapphire
TooglePanel? can be created initially closed 
PasswordField? honors a max size passed to it 
SiteTree? / Pages can now have custom meta tags 
Sitemap can deal with pinging google on updates, plus a couple other minor changes 


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41690 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 00:47:00 +00:00
Ingo Schommer
5857c4cab6 wscott: Added base code for a working Google Sitemaps support.
Changes in Files: 
* Sitemap.php - controller for the sitemap, new 
* Sitemap.ss - template for the sitemap, new 

* main.php - added director rule 
* SiteTree?.php - added 'priority' database field, cms code to override priority 

TODO: ping google when the sitemap is updated, 

namely when pages are added / removed, or when a priority is overridden 


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41689 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 00:27:15 +00:00
Jeremy Shipman
a672aa7474 removed call by reference because it was causing a warning that it is depricated use. Refer to 41021
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41510 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-10 00:21:54 +00:00
Matt Peel
3a69b030fb Facebook doesn't like lots of nested tags, we need to close the <li> tags that we open for each database table.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41478 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-09 05:49:21 +00:00
Matt Peel
59147d10d9 Reverted previous change - null is a valid value for an argument, but not for an if statement.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41475 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-09 04:02:54 +00:00
Matt Peel
d0a256e647 $size is always 50 or something else if you set a default value for a function argument.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41473 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-09 03:30:53 +00:00
Matt Peel
aaabe7ee94 Removed junk from CVS, unnecessary newlines etc
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41462 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-08 03:18:26 +00:00
Sam Minnee
51c1e7ffec Refactored CMS page-URL accessing to use ->AbsoluteLink(), which can be overridden by defining alternateAbsoluteLink()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41283 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-05 06:42:26 +00:00
Jeremy Shipman
2cafe279a9 Included sapphire/pear in the directories to exclude from manifest builder
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41272 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-05 04:14:09 +00:00
Matt Peel
85b45924a2 When mysql_connect() fails to establish a connection, it means that it couldn't connect, not that it could. :P
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41234 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-04 09:24:55 +00:00
Romain Louis
b5c83d3513 setByIDList function update( notices and ajax problem solving )
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41165 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-03 05:08:33 +00:00
Sam Minnee
8ecb8f0d6a Added '<% if HasPerm(PERM_CODE() %>' to ViewableData for template
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41094 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-31 00:27:34 +00:00
Sam Minnee
c0660c147b Added Director::redirected_to / Controller::redirectedTo() for redirection-detection
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41093 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-31 00:26:41 +00:00
Andrew O'Neil
83020ccc03 Removed require_once - it's not needed, and for some reason it makes PHP die on some servers
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41079 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-30 22:55:37 +00:00
Sam Minnee
8b582236dd Fix lloadDescendantIDListInto - it needs the & value given on the caller, for some reason.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41019 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-29 06:05:17 +00:00
Sam Minnee
b7ec0fd4df Fix ErrorPage publication
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40998 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-28 22:27:13 +00:00
Sam Minnee
c8f38617cb #write:31 - Fixed redirection from /home/ to /./ in IE6
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40980 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-28 02:49:31 +00:00
Sam Minnee
84e01faf1e Refactored newsletter system to put recipient selection and form-fieldset generation into the NewsletterType class, to allow for subclassing NewsletterType to create special system newsletters. [see oriwave2 for an example]
Removed a number of notice-level errors.
Allowed for BOUNCE_EMAIL to not exist and bounce-handling to be disabled.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40963 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-28 01:55:45 +00:00
Andrew O'Neil
35665321b9 Rename Pad PaddedImage, to be consistant with CroppedImage
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40948 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-28 01:26:52 +00:00
Sam Minnee
f199dc6cd4 Added docblock headers and removed notice-level errors
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40912 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-27 05:13:43 +00:00
Sam Minnee
79460dadfc Added HTTPResponse::getHeader(), to aid test verification
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40911 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-27 05:09:54 +00:00
Sam Minnee
8bcff1f1d6 Added DataObjectSet::find(), for using a DOS a bit like a PHP map
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40910 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-27 05:09:13 +00:00
Andrew O'Neil
5984be1856 FIxed db/build producing bad SQL when altering indexes
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40829 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-24 04:45:21 +00:00
Andrew O'Neil
6600c92be0 Added Pad method to Image
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40818 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-24 03:53:37 +00:00
Jeremy Shipman
e386cbae57 created alteration_message method to replace all the code used to echo changes when dbbuild runs, with appropriate colouring.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40809 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-24 03:31:14 +00:00
Jeremy Shipman
46c9efaecc Changed colouring of db/build to be more appropriate for the actual meaning of the messages.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40803 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-24 02:47:37 +00:00
Jeremy Shipman
5b865997e0 Changed colouring of db/build to be more appropriate for the actual meaning of the messages.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40801 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-24 02:29:32 +00:00
Andrew O'Neil
acff378781 Fixed some php notices
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40776 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-23 23:50:53 +00:00
Normann Lou
3bc0eaafbb implement validation to tablefield,
fixed bug on validation of datefield, emailfield, numericefield.
make CMS validation enabled.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40755 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-23 05:47:54 +00:00
Andrew O'Neil
30fc2e2a50 Fix redirect back after failing login
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40630 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-21 22:05:40 +00:00
Jeremy Shipman
5fadf838c0 Missing calls to transInitTable
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40610 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-21 03:40:09 +00:00
Sam Minnee
3007fa55d5 Added return type hinting to comments
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40596 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-20 23:22:30 +00:00
Sam Minnee
734cf2ad4f Added Director::test() for unit testing
Changed From::testSubmission to use Director::test(), so that it can check whether URLs are correctly set
Made Director::is_ajax() look at the controller data

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40590 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-20 22:39:44 +00:00
Sam Minnee
b5848c9b87 Added HTTPResponse::getLinks() for unit testing
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40589 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-20 22:38:37 +00:00
Andrew O'Neil
7a150c48db Publish error page after installation is complete
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40531 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-20 05:21:39 +00:00