From: Brion Vibber Date: Wed, 2 Jul 2008 02:02:26 +0000 (+0000) Subject: Cleanup for r36660: use PHP 5 __construct() name for constructors to make things... X-Git-Tag: 1.31.0-rc.0~46815 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=e38a69fd4e10d02ce1461ca9c806f17bbb5da493;p=lhc%2Fweb%2Fwiklou.git Cleanup for r36660: use PHP 5 __construct() name for constructors to make things a little clearer when calling parent constructors and such --- diff --git a/includes/SearchPostgres.php b/includes/SearchPostgres.php index 974e05857f..88e4a0daf8 100644 --- a/includes/SearchPostgres.php +++ b/includes/SearchPostgres.php @@ -28,7 +28,7 @@ */ class SearchPostgres extends SearchEngine { - function SearchPostgres( $db ) { + function __construct( $db ) { $this->db = $db; } @@ -218,8 +218,8 @@ class SearchPostgres extends SearchEngine { * @ingroup Search */ class PostgresSearchResult extends SearchResult { - function PostgresSearchResult( $row ) { - parent::SearchResult($row); + function __construct( $row ) { + parent::__construct($row); $this->score = $row->score; } function getScore() { @@ -231,7 +231,7 @@ class PostgresSearchResult extends SearchResult { * @ingroup Search */ class PostgresSearchResultSet extends SearchResultSet { - function PostgresSearchResultSet( $resultSet, $terms ) { + function __construct( $resultSet, $terms ) { $this->mResultSet = $resultSet; $this->mTerms = $terms; }