Removing Deprecated error message for PHP 7 (#764)

This commit is contained in:
MaximeBOURMAUD
2017-09-18 17:20:45 +02:00
committed by Pierrick Le Gall
parent 83dac227cf
commit b585f5bcc3
+8 -8
View File
@@ -288,7 +288,7 @@ class FeedHtmlField {
* Creates a new instance of FeedHtmlField. * Creates a new instance of FeedHtmlField.
* @param $string: if given, sets the rawFieldContent property * @param $string: if given, sets the rawFieldContent property
*/ */
function FeedHtmlField($parFieldContent) { function __construct($parFieldContent) {
if ($parFieldContent) { if ($parFieldContent) {
$this->rawFieldContent = $parFieldContent; $this->rawFieldContent = $parFieldContent;
} }
@@ -708,7 +708,7 @@ class FeedDate {
* Accepts RFC 822, ISO 8601 date formats as well as unix time stamps. * Accepts RFC 822, ISO 8601 date formats as well as unix time stamps.
* @param mixed $dateString optional the date this FeedDate will represent. If not specified, the current date and time is used. * @param mixed $dateString optional the date this FeedDate will represent. If not specified, the current date and time is used.
*/ */
function FeedDate($dateString="") { function __construct($dateString="") {
if ($dateString=="") $dateString = date("r"); if ($dateString=="") $dateString = date("r");
if (is_integer($dateString)) { if (is_integer($dateString)) {
@@ -884,7 +884,7 @@ class RSSCreator091 extends FeedCreator {
*/ */
var $RSSVersion; var $RSSVersion;
function RSSCreator091() { function __construct() {
$this->_setRSSVersion("0.91"); $this->_setRSSVersion("0.91");
$this->contentType = "application/rss+xml"; $this->contentType = "application/rss+xml";
} }
@@ -1016,7 +1016,7 @@ class RSSCreator091 extends FeedCreator {
*/ */
class RSSCreator20 extends RSSCreator091 { class RSSCreator20 extends RSSCreator091 {
function RSSCreator20() { function __construct() {
parent::_setRSSVersion("2.0"); parent::_setRSSVersion("2.0");
} }
@@ -1033,7 +1033,7 @@ class RSSCreator20 extends RSSCreator091 {
*/ */
class PIECreator01 extends FeedCreator { class PIECreator01 extends FeedCreator {
function PIECreator01() { function __construct() {
$this->encoding = "utf-8"; $this->encoding = "utf-8";
} }
@@ -1091,7 +1091,7 @@ class PIECreator01 extends FeedCreator {
*/ */
class AtomCreator03 extends FeedCreator { class AtomCreator03 extends FeedCreator {
function AtomCreator03() { function __construct() {
$this->contentType = "application/atom+xml"; $this->contentType = "application/atom+xml";
$this->encoding = "utf-8"; $this->encoding = "utf-8";
} }
@@ -1159,7 +1159,7 @@ class AtomCreator03 extends FeedCreator {
*/ */
class MBOXCreator extends FeedCreator { class MBOXCreator extends FeedCreator {
function MBOXCreator() { function __construct() {
$this->contentType = "text/plain"; $this->contentType = "text/plain";
$this->encoding = "ISO-8859-15"; $this->encoding = "ISO-8859-15";
} }
@@ -1246,7 +1246,7 @@ class MBOXCreator extends FeedCreator {
*/ */
class OPMLCreator extends FeedCreator { class OPMLCreator extends FeedCreator {
function OPMLCreator() { function __construct() {
$this->encoding = "utf-8"; $this->encoding = "utf-8";
} }