|
From: <var...@us...> - 2016-10-14 08:24:20
|
Revision: 9964
http://sourceforge.net/p/phpwiki/code/9964
Author: vargenau
Date: 2016-10-14 08:24:17 +0000 (Fri, 14 Oct 2016)
Log Message:
-----------
Use __construct
Modified Paths:
--------------
trunk/lib/Google.php
trunk/lib/SemanticWeb.php
trunk/lib/XmlParser.php
trunk/lib/plugin/RecentComments.php
trunk/lib/plugin/RelatedChanges.php
Modified: trunk/lib/Google.php
===================================================================
--- trunk/lib/Google.php 2016-10-13 13:15:43 UTC (rev 9963)
+++ trunk/lib/Google.php 2016-10-14 08:24:17 UTC (rev 9964)
@@ -94,7 +94,7 @@
public $_fields = "documentFiltering,searchComments,estimatedTotalResultsCount,estimateIsExact,searchQuery,startIndex,endIndex,searchTips,directoryCategories,searchTime,resultElements";
public $resultElements, $results;
- function GoogleSearchResults($result)
+ function __construct($result)
{
$this->fields = explode(',', $this->_fields);
foreach ($this->fields as $f) {
@@ -150,7 +150,7 @@
{
public $_fields = "summary,URL,snippet,title,cachedSize,relatedInformationPresent,hostName,directoryCategory,directoryTitle";
- function GoogleSearchResult($result)
+ function __construct($result)
{
$this->fields = explode(',', $this->_fields);
foreach ($this->fields as $f) {
@@ -162,8 +162,7 @@
class Google
{
-
- function Google($maxResults = 10, $license_key = false)
+ function __construct($maxResults = 10, $license_key = false)
{
if ($license_key)
$this->license_key = $license_key;
Modified: trunk/lib/SemanticWeb.php
===================================================================
--- trunk/lib/SemanticWeb.php 2016-10-13 13:15:43 UTC (rev 9963)
+++ trunk/lib/SemanticWeb.php 2016-10-14 08:24:17 UTC (rev 9964)
@@ -371,7 +371,7 @@
*/
class ReasonerBackend
{
- function ReasonerBackend()
+ function __construct()
{
;
}
Modified: trunk/lib/XmlParser.php
===================================================================
--- trunk/lib/XmlParser.php 2016-10-13 13:15:43 UTC (rev 9963)
+++ trunk/lib/XmlParser.php 2016-10-14 08:24:17 UTC (rev 9964)
@@ -53,8 +53,8 @@
{
public $_parser, $root, $current, $previous, $parent;
- function XmlParser($encoding = '')
- { // "ISO-8859-1"
+ function __construct($encoding = '')
+ {
if ($encoding)
$this->_parser = xml_parser_create($encoding);
else
Modified: trunk/lib/plugin/RecentComments.php
===================================================================
--- trunk/lib/plugin/RecentComments.php 2016-10-13 13:15:43 UTC (rev 9963)
+++ trunk/lib/plugin/RecentComments.php 2016-10-14 08:24:17 UTC (rev 9964)
@@ -133,7 +133,7 @@
*/
class RecentCommentsRevisionIterator extends WikiDB_PageRevisionIterator
{
- function RecentCommentsRevisionIterator($revisions, &$dbi)
+ function __construct($revisions, &$dbi)
{
$this->_revisions = $revisions;
$this->_wikidb = $dbi;
Modified: trunk/lib/plugin/RelatedChanges.php
===================================================================
--- trunk/lib/plugin/RelatedChanges.php 2016-10-13 13:15:43 UTC (rev 9963)
+++ trunk/lib/plugin/RelatedChanges.php 2016-10-14 08:24:17 UTC (rev 9964)
@@ -126,7 +126,7 @@
*/
class RelatedChangesRevisionIterator extends WikiDB_PageRevisionIterator
{
- function RelatedChangesRevisionIterator($revisions, &$dbi, $pagename)
+ function __construct($revisions, &$dbi, $pagename)
{
$this->_revisions = $revisions;
$this->_wikidb = $dbi;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|