-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from kschroeder/develop
Updated several internal workings, including better handling of sources
- Loading branch information
Showing
23 changed files
with
581 additions
and
51 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,5 @@ public function getValueFlag($path) | |
} | ||
return false; | ||
} | ||
|
||
} |
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,8 @@ | ||
<?php | ||
|
||
namespace Magium\Configuration\Config; | ||
|
||
class MergedStructure extends \SimpleXMLElement | ||
{ | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Magium\Configuration\Source\Datetime; | ||
|
||
use Magium\Configuration\Source\SourceInterface; | ||
|
||
class MonthNumbers implements SourceInterface | ||
{ | ||
|
||
public function getSourceData() | ||
{ | ||
return [ | ||
'01' => '01', | ||
'02' => '02', | ||
'03' => '03', | ||
'04' => '04', | ||
'05' => '05', | ||
'06' => '06', | ||
'07' => '07', | ||
'08' => '08', | ||
'09' => '09', | ||
'10' => '10', | ||
'11' => '11', | ||
'12' => '12', | ||
]; | ||
} | ||
|
||
} |
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,28 @@ | ||
<?php | ||
|
||
namespace Magium\Configuration\Source\Datetime; | ||
|
||
use Magium\Configuration\Source\SourceInterface; | ||
|
||
class Months implements SourceInterface | ||
{ | ||
|
||
public function getSourceData() | ||
{ | ||
return [ | ||
'January', | ||
'February', | ||
'March', | ||
'April', | ||
'May', | ||
'June', | ||
'July', | ||
'August', | ||
'September', | ||
'October', | ||
'November', | ||
'December', | ||
]; | ||
} | ||
|
||
} |
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,21 @@ | ||
<?php | ||
|
||
namespace Magium\Configuration\Source\Datetime; | ||
|
||
use Magium\Configuration\Source\SourceInterface; | ||
|
||
class NextTenYears implements SourceInterface | ||
{ | ||
|
||
public function getSourceData() | ||
{ | ||
$now = date('Y'); | ||
$return = []; | ||
do { | ||
$return[] = $now++; | ||
} while (count($return) < 10); | ||
return $return; | ||
|
||
} | ||
|
||
} |
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,29 @@ | ||
<?php | ||
|
||
namespace Magium\Configuration\Source\Political; | ||
|
||
use Magium\Configuration\Source\SourceInterface; | ||
|
||
class CanadianProvinces implements SourceInterface | ||
{ | ||
|
||
public function getSourceData() | ||
{ | ||
return [ | ||
'AB' => 'Alberta', | ||
'BC' => 'British Columbia', | ||
'MB' => 'Manitoba', | ||
'NB' => 'New Brunswick', | ||
'NL' => 'Newfoundland and Labrador', | ||
'NT' => 'Northwest Territories', | ||
'NS' => 'Nova Scotia', | ||
'NU' => 'Nunavut', | ||
'ON' => 'Ontario', | ||
'PE' => 'Prince Edward Island', | ||
'QC' => 'Quebec', | ||
'SK' => 'Saskatchewan', | ||
'YT' => 'Yukon' | ||
]; | ||
} | ||
|
||
} |
Oops, something went wrong.