diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-02-13 18:00:39 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-02-13 18:00:39 +0100 |
| commit | cbf951471e3a3bb3f7ddd0f9ca2d07241aba756d (patch) | |
| tree | e1dae08c061883d971bec09f1af25fbcd43d6103 | |
| parent | c2bc33952060ea4caffbe0a2edffea4a5361a9d5 (diff) | |
| download | bdrem-cbf951471e3a3bb3f7ddd0f9ca2d07241aba756d.tar.gz bdrem-cbf951471e3a3bb3f7ddd0f9ca2d07241aba756d.zip | |
update configuration example file, fix variable names
| -rw-r--r-- | data/bdrem.config.php.dist | 15 | ||||
| -rw-r--r-- | src/bdrem/Config.php | 4 | ||||
| -rw-r--r-- | src/bdrem/UserInterface.php | 4 |
3 files changed, 14 insertions, 9 deletions
diff --git a/data/bdrem.config.php.dist b/data/bdrem.config.php.dist index 7af4ed0..076533f 100644 --- a/data/bdrem.config.php.dist +++ b/data/bdrem.config.php.dist @@ -15,14 +15,19 @@ $source = array( //column name => event title 'c_birthday' => 'Birthday' ), - //column with name - 'name' => 'c_name' + //column with name, or array with column names + 'name' => array('c_name'), + //sprintf-compatible name formatting instruction + 'nameFormat' => '%s', ) ) ); - -$daysBefore = 3; -$daysAfter = 14; +$daysPrev = 3; +$daysNext = 14; $locale = 'de_DE.UTF-8'; + +//email settings +$mail_from = 'birthday@example.org'; +$mail_to = array('a@example.org', 'b@example.org'); ?> diff --git a/src/bdrem/Config.php b/src/bdrem/Config.php index 7a0fd68..04cf888 100644 --- a/src/bdrem/Config.php +++ b/src/bdrem/Config.php @@ -5,8 +5,8 @@ class Config { public $source; public $date; - public $daysBefore; - public $daysAfter; + public $daysPrev; + public $daysNext; public $locale; public function load() diff --git a/src/bdrem/UserInterface.php b/src/bdrem/UserInterface.php index e4f7168..5fb028b 100644 --- a/src/bdrem/UserInterface.php +++ b/src/bdrem/UserInterface.php @@ -38,7 +38,7 @@ abstract class UserInterface 'description' => 'Show NUM days after date', 'help_name' => 'NUM', 'action' => 'StoreInt', - 'default' => $this->config->daysAfter, + 'default' => $this->config->daysNext, ) ); $parser->addOption( @@ -49,7 +49,7 @@ abstract class UserInterface 'description' => 'Show NUM days before date', 'help_name' => 'NUM', 'action' => 'StoreInt', - 'default' => $this->config->daysBefore, + 'default' => $this->config->daysPrev, ) ); $parser->addOption( |
