Tpt has uploaded a new change for review. https://gerrit.wikimedia.org/r/187685
Change subject: Adds autoload for all classes ...................................................................... Adds autoload for all classes Change-Id: I3fd13bcac1c5cf9e4e17a0653ff670cc32280baf --- M ProofreadPage.php A includes/index/oai/ProofreadIndexOaiError.php M includes/index/oai/SpecialProofreadIndexOai.php 3 files changed, 49 insertions(+), 17 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage refs/changes/85/187685/1 diff --git a/ProofreadPage.php b/ProofreadPage.php index 3859987..f48da51 100644 --- a/ProofreadPage.php +++ b/ProofreadPage.php @@ -52,7 +52,16 @@ $wgAutoloadClasses['EditProofreadIndexPage'] = $dir . 'includes/index/EditProofreadIndexPage.php'; $wgAutoloadClasses['ProofreadIndexEntry'] = $dir . 'includes/index/ProofreadIndexEntry.php'; -$wgAutoloadClasses['ProofreadIndexValue'] = $dir . 'includes/index/ProofreadIndexValue.php'; +$wgAutoloadClasses['ProofreadIndexValueString'] = $dir . 'includes/index/ProofreadIndexValue.php'; +$wgAutoloadClasses['ProofreadIndexValueNumber'] = $dir . 'includes/index/ProofreadIndexValue.php'; +$wgAutoloadClasses['ProofreadIndexValuePage'] = $dir . 'includes/index/ProofreadIndexValue.php'; +$wgAutoloadClasses['ProofreadIndexValueLangcode'] = $dir . 'includes/index/ProofreadIndexValue.php'; +$wgAutoloadClasses['ProofreadIndexValueIdentifier'] = $dir . 'includes/index/ProofreadIndexValue.php'; +$wgAutoloadClasses['ProofreadIndexValueIsbn'] = $dir . 'includes/index/ProofreadIndexValue.php'; +$wgAutoloadClasses['ProofreadIndexValueIssn'] = $dir . 'includes/index/ProofreadIndexValue.php'; +$wgAutoloadClasses['ProofreadIndexValueOclc'] = $dir . 'includes/index/ProofreadIndexValue.php'; +$wgAutoloadClasses['ProofreadIndexValueArc'] = $dir . 'includes/index/ProofreadIndexValue.php'; +$wgAutoloadClasses['ProofreadIndexValueArk'] = $dir . 'includes/index/ProofreadIndexValue.php'; $wgAutoloadClasses['ProofreadIndexPage'] = $dir . 'includes/index/ProofreadIndexPage.php'; $wgAutoloadClasses['ProofreadIndexDbConnector'] = $dir . 'includes/index/ProofreadIndexDbConnector.php'; @@ -94,6 +103,7 @@ $wgAutoloadClasses['SpecialProofreadIndexOai'] = $dir . 'includes/index/oai/SpecialProofreadIndexOai.php'; $wgAutoloadClasses['ProofreadIndexOaiRecord'] = $dir . 'includes/index/oai/ProofreadIndexOaiRecord.php'; $wgAutoloadClasses['ProofreadIndexOaiSets'] = $dir . 'includes/index/oai/ProofreadIndexOaiSets.php'; +$wgAutoloadClasses['ProofreadIndexOaiError'] = $dir . 'includes/index/oai/ProofreadIndexOaiError.php'; $wgSpecialPages['ProofreadIndexOai'] = 'SpecialProofreadIndexOai'; $wgAutoloadClasses['SpecialProofreadIndexOaiSchema'] = $dir . 'includes/index/oai/SpecialProofreadIndexOaiSchema.php'; $wgSpecialPages['ProofreadIndexOaiSchema'] = 'SpecialProofreadIndexOaiSchema'; diff --git a/includes/index/oai/ProofreadIndexOaiError.php b/includes/index/oai/ProofreadIndexOaiError.php new file mode 100644 index 0000000..427967d --- /dev/null +++ b/includes/index/oai/ProofreadIndexOaiError.php @@ -0,0 +1,38 @@ +<?php +/** + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * The content of this file use some code from OAIRepo Mediawiki extension. + * + * @file + * @ingroup SpecialPage + */ + + +/** + * OAI error + */ +class ProofreadIndexOaiError extends Exception { + + public function __construct( $message = '', $code = '' ) { + $this->message = $message; + $this->code = $code; + } + + public function getXML() { + return Xml::element( 'error', array( 'code' => $this->getCode() ), $this->getMessage() ) . "\n"; + } +} diff --git a/includes/index/oai/SpecialProofreadIndexOai.php b/includes/index/oai/SpecialProofreadIndexOai.php index 2f1044e..954059c 100644 --- a/includes/index/oai/SpecialProofreadIndexOai.php +++ b/includes/index/oai/SpecialProofreadIndexOai.php @@ -706,19 +706,3 @@ return $this->db->select( $tables, $fields, $conds, __METHOD__, $options ); } } - - -/** - * OAI error - */ -class ProofreadIndexOaiError extends Exception { - - public function __construct( $message = '', $code = '' ) { - $this->message = $message; - $this->code = $code; - } - - public function getXML() { - return Xml::element( 'error', array( 'code' => $this->getCode() ), $this->getMessage() ) . "\n"; - } -} -- To view, visit https://gerrit.wikimedia.org/r/187685 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3fd13bcac1c5cf9e4e17a0653ff670cc32280baf Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ProofreadPage Gerrit-Branch: master Gerrit-Owner: Tpt <thomaspe...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits