Skip to content

Commit

Permalink
adds in namespaces for SS4
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Alpers committed May 2, 2019
1 parent 3d2ce3b commit d3a9585
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions code/DateRangeField.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace DeptInternalAffairsNZ\SilverStripe;

use CompositeField;
use DateField;
use SilverStripe\Forms\CompositeField;
use SilverStripe\Forms\DateField;

class DateRangeField extends CompositeField {

Expand Down Expand Up @@ -32,8 +32,8 @@ public function __construct($name, $title = null, $value = null) {
}

public function setConfig($key, $value) {
$this->from->setConfig($key, $value);
$this->to->setConfig($key, $value);
$this->from->set_stat($key, $value);
$this->to->set_stat($key, $value);
}

public function hasData() {
Expand Down
6 changes: 3 additions & 3 deletions code/DateRangeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace DeptInternalAffairsNZ\SilverStripe;

use Convert;
use DataQuery;
use SearchFilter;
use SilverStripe\Core\Convert;
use SilverStripe\ORM\DataQuery;
use SilverStripe\ORM\Filters\SearchFilter;

class DateRangeFilter extends SearchFilter {

Expand Down

0 comments on commit d3a9585

Please sign in to comment.