http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70141
Revision: 70141
Author: jeroendedauw
Date: 2010-07-29 15:22:16 +0000 (Thu, 29 Jul 2010)
Log Message:
-----------
Work on repository and package definitions
Modified Paths:
--------------
trunk/extensions/Deployment/includes/ExtensionInstaller.php
trunk/extensions/Deployment/includes/PackageDescriptorProcessor.php
Modified: trunk/extensions/Deployment/includes/ExtensionInstaller.php
===================================================================
--- trunk/extensions/Deployment/includes/ExtensionInstaller.php 2010-07-29
15:20:04 UTC (rev 70140)
+++ trunk/extensions/Deployment/includes/ExtensionInstaller.php 2010-07-29
15:22:16 UTC (rev 70141)
@@ -18,7 +18,6 @@
*/
class ExtensionInstaller extends Installer {
-
/**
* Constructor.
*/
@@ -32,42 +31,45 @@
* Initiates the installation procedure.
*/
public function doInstallation() {
+ $this->downloadPackage();
+ // TODO: only call when needed
+ $this->unpackPackage();
+
+ $this->installPackage();
}
/**
* Downloads a package needed for the installation.
*/
protected function downloadPackage() {
-
+ // TODO: create a PackageRepository instance and download
}
/**
* Unpacks a package needed for the installation.
*/
protected function unpackPackage() {
-
+ // TODO
}
/**
* Installs a package.
*/
protected function installPackage() {
+ $packageParser = new PackageDescriptorParser();
+ // TODO: do parsing
+ $packageDescriptor = new PackageDescriptor();
+
+ $packageProcessor = new PackageDescriptorProcessor(
$packageDescriptor );
}
/**
- * @param unknown_type $msg
+ * @param string $msg
*/
- public function showMessage($msg) {
+ public function showMessage( $msg ) {
}
-
- /**
- * @param unknown_type $status
- */
- public function showStatusMessage($status) {
-
- }
}
\ No newline at end of file
Modified: trunk/extensions/Deployment/includes/PackageDescriptorProcessor.php
===================================================================
--- trunk/extensions/Deployment/includes/PackageDescriptorProcessor.php
2010-07-29 15:20:04 UTC (rev 70140)
+++ trunk/extensions/Deployment/includes/PackageDescriptorProcessor.php
2010-07-29 15:22:16 UTC (rev 70141)
@@ -19,4 +19,11 @@
*/
class PackageDescriptorProcessor {
+ /**
+ * Constructor.
+ */
+ public function __construct() {
+ // TODO
+ }
+
}
\ No newline at end of file
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs