Index: trunk/extensions/Deployment/includes/PackageDescriptiorProcessor.php |
— | — | @@ -1,22 +0,0 @@ |
2 | | -<?php
|
3 | | -
|
4 | | -/**
|
5 | | - * File holding the PackageDescriptorProcessor class.
|
6 | | - * Partly based on DeployDescriptorProcessor from Ontoprises Deployment Framework.
|
7 | | - *
|
8 | | - * @file PackageDescriptorProcessor.php
|
9 | | - * @ingroup Deployment
|
10 | | - *
|
11 | | - * @author Jeroen De Dauw
|
12 | | - * @author Kai Kühn
|
13 | | - */
|
14 | | -
|
15 | | -/**
|
16 | | - * Package description processing class.
|
17 | | - *
|
18 | | - * @author Jeroen De Dauw
|
19 | | - * @author Kai Kühn
|
20 | | - */
|
21 | | -class PackageDescriptorProcessor {
|
22 | | -
|
23 | | -} |
\ No newline at end of file |
Index: trunk/extensions/Deployment/includes/ExtensionInstaller.php |
— | — | @@ -20,9 +20,11 @@ |
21 | 21 | |
22 | 22 | |
23 | 23 | /** |
24 | | - * Constructor |
| 24 | + * Constructor. |
25 | 25 | */ |
26 | 26 | public function __construct() { |
| 27 | + parent::__construct(); |
| 28 | + |
27 | 29 | // TODO |
28 | 30 | } |
29 | 31 | |
Index: trunk/extensions/Deployment/includes/PackageDescriptorProcessor.php |
— | — | @@ -0,0 +1,22 @@ |
| 2 | +<?php
|
| 3 | +
|
| 4 | +/**
|
| 5 | + * File holding the PackageDescriptorProcessor class.
|
| 6 | + * Partly based on DeployDescriptorProcessor from Ontoprises Deployment Framework.
|
| 7 | + *
|
| 8 | + * @file PackageDescriptorProcessor.php
|
| 9 | + * @ingroup Deployment
|
| 10 | + *
|
| 11 | + * @author Jeroen De Dauw
|
| 12 | + * @author Kai Kühn
|
| 13 | + */
|
| 14 | +
|
| 15 | +/**
|
| 16 | + * Package description processing class.
|
| 17 | + *
|
| 18 | + * @author Jeroen De Dauw
|
| 19 | + * @author Kai Kühn
|
| 20 | + */
|
| 21 | +class PackageDescriptorProcessor {
|
| 22 | +
|
| 23 | +} |
\ No newline at end of file |
Index: trunk/extensions/Deployment/includes/PackageRepository.php |
— | — | @@ -10,10 +10,42 @@ |
11 | 11 | */
|
12 | 12 |
|
13 | 13 | /**
|
14 | | - * Package description processing class.
|
| 14 | + * Base repository class. Deriving classes handle interaction with
|
| 15 | + * package repositories of the type they support.
|
15 | 16 | *
|
16 | 17 | * @author Jeroen De Dauw
|
17 | 18 | */
|
18 | | -class PackageRepository {
|
| 19 | +abstract class PackageRepository {
|
19 | 20 |
|
20 | | -} |
\ No newline at end of file |
| 21 | + /**
|
| 22 | + * Constructor.
|
| 23 | + */
|
| 24 | + public function __construct() {
|
| 25 | + // TODO
|
| 26 | + }
|
| 27 | +
|
| 28 | +}
|
| 29 | +
|
| 30 | +/**
|
| 31 | + * Class for interaction with the Ontoprise repository.
|
| 32 | + * @see PackageRepository
|
| 33 | + *
|
| 34 | + * @author Jeroen De Dauw
|
| 35 | + *
|
| 36 | + * TODO: move to it's own file
|
| 37 | + */
|
| 38 | +class OntopriseRepository extends PackageRepository {
|
| 39 | +
|
| 40 | + /**
|
| 41 | + * Constructor.
|
| 42 | + */
|
| 43 | + public function __construct() {
|
| 44 | + parent::__construct();
|
| 45 | +
|
| 46 | + // TODO
|
| 47 | + }
|
| 48 | +
|
| 49 | +}
|
| 50 | +
|
| 51 | +// TODO: if the ontoprise repository structure is acceptable for general use, rename the class,
|
| 52 | +// if it's not, design a more general repository structure and create a new PackageRepository class to handle. |
\ No newline at end of file |
Index: trunk/extensions/Deployment/includes/filesystems/FtpFilesystem.php |
— | — | @@ -37,6 +37,8 @@ |
38 | 38 | * @param array $options |
39 | 39 | */ |
40 | 40 | public function __construct( array $options ) { |
| 41 | + parent::__construct(); |
| 42 | + |
41 | 43 | // Check if possible to use ftp functions. |
42 | 44 | if ( !extension_loaded( 'ftp' ) ) { |
43 | 45 | $this->addError( 'deploy-ftp-not-loaded' ); |
Index: trunk/extensions/Deployment/includes/filesystems/DirectFilesystem.php |
— | — | @@ -21,7 +21,9 @@ |
22 | 22 | * Constructor. |
23 | 23 | */ |
24 | 24 | public function __construct() { |
| 25 | + parent::__construct(); |
25 | 26 | |
| 27 | + // TODO |
26 | 28 | } |
27 | 29 | |
28 | 30 | /** |
Index: trunk/extensions/Deployment/includes/filesystems/Ssh2Filesystem.php |
— | — | @@ -51,6 +51,8 @@ |
52 | 52 | * @param array $options |
53 | 53 | */ |
54 | 54 | public function __construct( array $options ) { |
| 55 | + parent::__construct(); |
| 56 | + |
55 | 57 | // Check if possible to use ssh2 functions. |
56 | 58 | if ( !extension_loaded( 'ssh2' ) ) { |
57 | 59 | $this->addError( 'deploy-ssh2-not-loaded' ); |
Index: trunk/extensions/Deployment/includes/PackageDescriptorParser.php |
— | — | @@ -0,0 +1,74 @@ |
| 2 | +<?php
|
| 3 | +
|
| 4 | +/**
|
| 5 | + * File holding the PackageDescriptorParser class.
|
| 6 | + * Partly based on DeployDescriptor from Ontoprises Deployment Framework.
|
| 7 | + *
|
| 8 | + * @file PackageDescriptor.php
|
| 9 | + * @ingroup Deployment
|
| 10 | + *
|
| 11 | + * @author Jeroen De Dauw
|
| 12 | + * @author Kai Kühn
|
| 13 | + */
|
| 14 | +
|
| 15 | +/**
|
| 16 | + * Base package description parsing class. Deriving classes
|
| 17 | + * can parse a package description in a certain format to a
|
| 18 | + * PackageDescriptor object.
|
| 19 | + *
|
| 20 | + * @author Jeroen De Dauw
|
| 21 | + * @author Kai Kühn
|
| 22 | + */
|
| 23 | +abstract class PackageDescriptorParser {
|
| 24 | +
|
| 25 | + /**
|
| 26 | + * Constructor.
|
| 27 | + */
|
| 28 | + public function __construct() {
|
| 29 | + // TODO
|
| 30 | + }
|
| 31 | +
|
| 32 | +}
|
| 33 | +
|
| 34 | +/**
|
| 35 | + * Parsing class for package desciprtions in XML.
|
| 36 | + * @see PackageDescriptorParser
|
| 37 | + *
|
| 38 | + * @author Jeroen De Dauw
|
| 39 | + * @author Kai Kühn
|
| 40 | + *
|
| 41 | + * TODO: move to it's own file
|
| 42 | + */
|
| 43 | +class XMLDescriptorParser extends PackageDescriptorParser {
|
| 44 | +
|
| 45 | + /**
|
| 46 | + * Constructor.
|
| 47 | + */
|
| 48 | + public function __construct() {
|
| 49 | + parent::__construct();
|
| 50 | +
|
| 51 | + // TODO
|
| 52 | + }
|
| 53 | +
|
| 54 | +}
|
| 55 | +
|
| 56 | +/**
|
| 57 | + * Parsing class for package desciprtions in CPAN.
|
| 58 | + * @see PackageDescriptorParser
|
| 59 | + *
|
| 60 | + * @author Jeroen De Dauw
|
| 61 | + *
|
| 62 | + * TODO: move to it's own file
|
| 63 | + */
|
| 64 | +class CPANDescriptorParser extends PackageDescriptorParser {
|
| 65 | +
|
| 66 | + /**
|
| 67 | + * Constructor.
|
| 68 | + */
|
| 69 | + public function __construct() {
|
| 70 | + parent::__construct();
|
| 71 | +
|
| 72 | + // TODO
|
| 73 | + }
|
| 74 | +
|
| 75 | +} |
\ No newline at end of file |