Commit Graph

15 Commits

Author SHA1 Message Date
Bharat Mediratta
f3ba69c1d6 Make sure that helper functions are all static. Add new
File_Structure_Test to make sure we don't regress.

According to the PHP docs, the "public" keyword is implied on static
functions, so remove it.  Also, require private static functions to
start with an _.

http://php.net/manual/en/language.oop5.visibility.php
2009-01-14 04:12:02 +00:00
Andy Staudacher
a631fe29f3 i18n refactoring: Rename all _() (reserved by gettext) calls to t().
- And refactor printf to our string interpolation / pluralization syntax
- Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-08 17:13:06 +00:00
Bharat Mediratta
17f77b8de4 Remove module.info from infrastructure modules that are effectively
libraries that would ship with the core.

Refactor welcome.php to use the newly refactored module::available()
2008-12-22 04:49:30 +00:00
Bharat Mediratta
fe27bd1eb3 Change the way that we track modules.
Each module now has a "module.info" file that has information about
the module, including the core.  We can display the installed version,
and the version in the code.

Also take a first shot at a modules admin page.
2008-12-22 03:41:33 +00:00
Bharat Mediratta
0e752790a3 Removed per jozefs 2008-12-02 21:41:07 +00:00
Tim Almdal
38a260b1d7 Rename get_absolute_url to abs_current 2008-11-25 16:50:29 +00:00
Tim Almdal
102f0f566b Normalize atom url generation 2008-11-25 15:54:45 +00:00
Tim Almdal
52206148a8 Fix tests 2008-11-25 06:41:11 +00:00
Tim Almdal
75d9a829d7 Add @todo to look at normalizing the url functions to the ones already in MY_url.php 2008-11-24 22:20:22 +00:00
Jozef Selesi
55fc5993f0 Fix double-escaping in the item comments feed. 2008-11-23 20:43:47 +00:00
Jozef Selesi
7485740d97 Changed and extended the Atom library a little so that the code for creating entries and feeds has been considerably simplified and reduced. 2008-11-23 12:41:41 +00:00
Jozef Selesi
d14d312d06 * Individual comment views now output valid Atom 1.0 entries:
http://example.gallery.com/index.php/comments/{comment_id}?_format=atom
* Changed Content-Type of Atom feeds and entries to XML for easier debugging.
* Added an Atom helper class with some common functions and cleaned up entry and feed generation code a bit in the comment helper.
* Style fixes.
2008-11-23 00:24:56 +00:00
Jozef Selesi
d93d37a10c * Fixed a bug in the Atom library where child elements were not added to their proper parents.
* Added valid Atom 1.0 feeds for comments. They can be seen at:
  http://gallery.example.com/index.php/comments?item_id={photo_id}&_format=atom
2008-11-22 22:46:17 +00:00
Jozef Selesi
47442f9dd2 Make the generated XML nicely formatted. 2008-11-22 20:00:40 +00:00
Jozef Selesi
6028447993 An Atom library prototype. Its purpose is to explore the cost of us supporting Atom as the default input and output format of RESTful controllers. Only the constructs necessary for representing comment feeds and entries have been implemented. Its output are valid Atom 1.0 documents. The test contains examples of how to make feeds and entries. 2008-11-22 18:22:53 +00:00