class Provision_Config_Certificate_SelfSigned in Aegir HTTPS 7.3
A configuration file class.
Just a file containing the value passed to us.
Hierarchy
- class \Provision_Config_Certificate extends \Provision_Config
Expanded class hierarchy of Provision_Config_Certificate_SelfSigned
File
- submodules/
self_signed/ drush/ Provision/ Config/ Certificate/ SelfSigned.php, line 8
View source
class Provision_Config_Certificate_SelfSigned extends Provision_Config_Certificate {
/**
* Template file to load. In the same directory as this class definition.
*/
public $template = 'self_signed.tpl.php';
/**
* Where the file generated will end up.
*
* It is extremely important that this path is only made up of information
* relative to this class, and does not use drush_get_option or the d() accessor.
*/
function filename() {
return $this->self_signed_config_path . '/self_signed.conf';
}
/**
* Override the write method.
*/
function write() {
parent::write();
// Sync the config to a remote server if necessary.
$this->data['server']
->sync($this
->filename());
}
/**
* Override the unlink method.
*/
function unlink() {
parent::unlink();
// Remove the config from a remote server if necessary.
$this->data['server']
->sync($this
->filename());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Provision_Config_Certificate_SelfSigned:: |
public | property |
Template file to load. In the same directory as this class definition. Overrides Provision_Config_Certificate:: |
|
Provision_Config_Certificate_SelfSigned:: |
function |
Where the file generated will end up. Overrides Provision_Config_Certificate:: |
||
Provision_Config_Certificate_SelfSigned:: |
function |
Override the unlink method. Overrides Provision_Config_Certificate:: |
||
Provision_Config_Certificate_SelfSigned:: |
function |
Override the write method. Overrides Provision_Config_Certificate:: |