Skip to content

Commit

Permalink
FIX: silverstripe 4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
adrexia committed Sep 2, 2017
1 parent 6417875 commit 82269f9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
5 changes: 5 additions & 0 deletions _config.php
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
<?php

namespace DNA\AdvancedDropdowns;



12 changes: 11 additions & 1 deletion code/AdvancedDropdownField.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<?php

class AdvancedDropdownField extends DropDownField {
namespace DNA\AdvancedDropdowns;


use SilverStripe\Forms\DropdownField;
use SilverStripe\View\ArrayData;
use SilverStripe\ORM\ArrayList;
use SilverStripe\Forms\FormField;



class AdvancedDropdownField extends DropdownField {

protected $extraClasses = array('dropdown advanceddropdown');

Expand Down
11 changes: 10 additions & 1 deletion code/AdvancedGroupedDropdownField.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<?php

class AdvancedGroupedDropdownField extends GroupedDropDownField {
namespace DNA\AdvancedDropdowns;

use SilverStripe\Forms\FormField;
use SilverStripe\Forms\GroupedDropdownField;
use SilverStripe\ORM\ArrayList;
use SilverStripe\View\ArrayData;



class AdvancedGroupedDropdownField extends GroupedDropdownField {

public function Field($properties = array()) {
$options = '';
Expand Down
File renamed without changes.

0 comments on commit 82269f9

Please sign in to comment.