Michael Bemmerl
063023134e
Implemented usage of the new classes, which were introduced in 4926cd6a1b
.
12 years ago
Michael Bemmerl
4926cd6a1b
Added wrapper classes for each feed type. Fixes #2 .
The FeedWriter class is now abstract, which means it is not possible to directly create an instance of it. Use the new wrapper classes in FeedTypes.php instead. This also obsoletes the constructor's version parameter for end-users.
12 years ago
Michael Bemmerl
f6356d2484
Removed __DIR__ constant for compatibility with PHP < 5.3
13 years ago
Michael Bemmerl
a45095963f
Some data integrity checks on public method addItem():
* Only accept instances of FeedItem
* Only accept instances of FeedItem with the same feed type
13 years ago
Michael Bemmerl
7d1ddfee53
Some small changes:
* Fixed spelling mistakes
* All \n's were replaced by PHP_EOL's
13 years ago
Michael Bemmerl
901b713f81
Merge pull request #1 from quizlet/master
require_once -> require due to APC issues
14 years ago
Phil Freo
a9bbe20a94
making feeditem require path absolute
14 years ago
Phil Freo
26918c7707
Using class_exists and require instead of require_once because of performance improvements in relationship to APC.
APC shouldn't have to open files more than once, but it does if you use require_once instead of require. More details here:
http://www.techyouruniverse.com/software/php-performance-tip-require-versus-require_once
14 years ago
Michael Bemmerl
e4f7aad8b7
Encode special chars in XML attributes, which would otherwise break the XML.
14 years ago
Michael Bemmerl
57fc7997d2
Removed the PHP closing braket in FeedItem.php. Otherwise the line ending would be printed when require'ing the FeedItem.php.
14 years ago
Michael Bemmerl
b0cfed933b
Removed superfluous whitespaces.
14 years ago
Michael Bemmerl
18c19ebc2a
Removed duplicated code
14 years ago
Michael Bemmerl
ec32294a3d
Don't use a (actually not working) database for retrieving item information.
The minimal example should have minimal requirements...
14 years ago
Michael Bemmerl
4499232da8
Fixed image URL in the examples.
14 years ago
Michael Bemmerl
6210aac244
Some cosmetic fixes
14 years ago
Michael Bemmerl
635b6da956
Fixed error message formatting.
14 years ago
Michael Bemmerl
a49324e1d2
Sanitize user input which contains <![CDATA[ ... ]]>, which would otherwise break the XML.
14 years ago
Michael Bemmerl
9e5411ffb4
Reactivated conversion of special chars in non-CDATA tags.
This time using htmlspecialchars instead of htmlentities, because we need a encoding for XML, not for HTML.
14 years ago
Michael Bemmerl
6aa594ad6e
Included FeedItem.php in FeedWriter.php.
So this has now not to be done by the user. Another benefit of this change: The examples do work now. ;-)
14 years ago
Michael Bemmerl
edb8321bd9
* Implemented function name change introduced in 3b49744b2f
14 years ago
Michael Bemmerl
c6805868fe
* Fixed include path in the examples.
14 years ago
Michael Bemmerl
fccb684ba9
Added basic README
14 years ago
Michael Bemmerl
6ebd01341e
Added copyright and license notices (GPL) to all files
14 years ago
Michael Bemmerl
294179725b
Fixed 'Content-Type' header field spelling.
14 years ago
Michael Bemmerl
e850856abc
Fixed some typo's and added comments.
14 years ago
Michael Bemmerl
81452997b7
Set the feed update date for ATOM validity.
(SVN import from repo. "www" @ revision 615, made by "Michi" on Oktober 31, 2010 (02:39:15))
14 years ago
Michael Bemmerl
49e86cdee7
Removed the autoload feature of class FeedWriter.
(SVN import from repo. "www" @ revision 614, made by "Michi" on Oktober 21, 2010 (23:49:49))
14 years ago
Michael Bemmerl
76ac509386
Some fixes for ATOM validity:
* Set the author element of the feed item
* Set a unique identifier (for RSS2 & ATOM)
(SVN import from repo. "www" @ revision 612, made by "Michi" on Oktober 17, 2010 (04:56:08))
14 years ago
Michael Bemmerl
6cfa70371a
Some minor improvements:
* Removed and added some whitespace
* The uuid() function is now static
(SVN import from repo. "www" @ revision 608, made by "Michi" on Oktober 34, 2010 (00:35:59))
14 years ago
Michael Bemmerl
3b49744b2f
Some fixes and improvements:
* Passing of DateTime instances did not work
* The correct Content-Type header (depending on the feed type) is send to the browser.
* Fixed indentation
* Fixed node generation if no attributes available
* Remove last whitespace on attribute generation
(SVN import from repo. "www" @ revision 607, made by "Michi" on Oktober 4, 2010 (00:22:46))
14 years ago
Michael Bemmerl
39db0f4ed0
The item date can now be passed as instance of DateTime
(SVN import from repo. "www" @ revision 606, made by "Michi" on Oktober 3, 2010 (03:14:17))
14 years ago
Michael Bemmerl
97fee48fdb
Initial import of the changes made in the version from phpclasses.org.
14 years ago
Michael Bemmerl
7dde9536fc
Initial Import of "PHP Universal Feed Generator" made by Anis Ahmad.
The files are taken from the zip file available at Anis' website.
14 years ago