-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* setup for external site. * added missing sRootPath * more framework setup * added user pages * placeholders * fixed spelling * 2.0.0 RC2 * added gettext * family form created * fixed name * added error handling * passing date from family form 1 to form 2 * create a family object and store it in the seesion * Disable Self Registration / Verification by default * get Config by name * check self registration setting before offering the feature * forms are now complete * extra html * removed extra stuff for now * moving to a common file * moving to sub folders * common error handler file * reverted * "revert" * moved to new SystemService namespace * \ * added missing config * fixed path * added "sRootPath" => $_SESSION['sRootPath'] * fixed include path * moving settings.php * added settings * removed getConfig * added ConfigQuery * new button style * cleanner html and text for church = primary and button = next * moving system config to a single class * get all config not just general * renamed to $systemConfig * cleanup - added lastname by default - swtiched bithday to input mask * input-mask is now included by default * input-mask is now in all footers * /plugins/input-mask/ is in all footers * include church crm css * removed unused import * - added hide age - added phone type - added max to all fileds * Fixed Case for Family Phones * added getAddress * Now there is a final confirmation page * renamed family register * cleaner server path for registration * Confirm working * done working * Self Registration in timeline * working save person / family * Birthday and Phone are working now * Set Enterted By as Unknown * moved to ChurchCRM * fixed bath to reports * fresh install has self regestration disabled * cleanner class auto-loading * removed setting title as birthday * removed unset colummns to ensure we don't have a missmatch * added missing zip code * reverted to old way of require google Map is not a valid class * removed unsigned fro EnteredBy for Person and Family to support -1 as self regestration * self reg has EnteredBy = -1 * Note Created By Now works for Self Registration
- Loading branch information
Showing
28 changed files
with
646 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
|
||
namespace ChurchCRM\dto; | ||
|
||
use ChurchCRM\Child; | ||
use ChurchCRM\Config; | ||
|
||
class SystemConfig | ||
{ | ||
/** | ||
* @var Config[] | ||
*/ | ||
private $configs; | ||
|
||
/** | ||
* @param Config[] $configs | ||
*/ | ||
function init($configs) | ||
{ | ||
$this->configs = $configs; | ||
} | ||
|
||
function getValue($name) | ||
{ | ||
$config = $this->getRawConfig($name); | ||
if (!is_null($config)) { | ||
return $config->getValue(); | ||
} | ||
return NULL; | ||
} | ||
|
||
function setValue($name, $value) | ||
{ | ||
$config = $this->getRawConfig($name); | ||
if (!is_null($config)) { | ||
$config->setValue($value); | ||
} | ||
} | ||
|
||
/** | ||
* @param $name | ||
* @return Config | ||
* | ||
*/ | ||
function getRawConfig($name) | ||
{ | ||
foreach ($this->configs as $config) { | ||
if ($config->getName() == $name) { | ||
return $config; | ||
} | ||
} | ||
return NULL; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.