Skip to content
This repository has been archived by the owner on Jun 26, 2018. It is now read-only.

Commit

Permalink
#2 add search fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Georg Duemmler committed May 15, 2016
1 parent 3ce574b commit 6015d4a
Show file tree
Hide file tree
Showing 5 changed files with 322 additions and 121 deletions.
4 changes: 2 additions & 2 deletions Classes/Utility/Tca/AbstractTca.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function getShowItems()
*/
public function getRecordsFieldList()
{
return implode(',', array_keys($this->removeTabs($this->fields)));
return implode(',', array_keys($this->getColumns()));
}

/**
Expand Down Expand Up @@ -156,7 +156,7 @@ public function getColumns()
*/
public function addConfigSearchField($string)
{
array_push($this->conf->getSearchFields(), $string);
array_push($this->conf->ctrl->getSearchFields(), $string);
}


Expand Down
13 changes: 10 additions & 3 deletions Classes/Utility/Tca/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,26 @@

namespace BERGWERK\BwrkUtility\Utility\Tca;

use BERGWERK\BwrkUtility\Utility\Tca\Configuration\Ctrl;
use BERGWERK\BwrkUtility\Utility\Tca\Configuration\CtrlClass;
use BERGWERK\BwrkUtility\Utility\Tca\Configuration\InterfaceClass;

class Configuration
{

/**
* @var \BERGWERK\BwrkUtility\Utility\Tca\Configuration\Ctrl
* @var \BERGWERK\BwrkUtility\Utility\Tca\Configuration\CtrlClass
*/
public $ctrl;

/**
* @var \BERGWERK\BwrkUtility\Utility\Tca\Configuration\InterfaceClass
*/
public $interface;

function __construct()
{
$this->ctrl = new Ctrl();
$this->ctrl = new CtrlClass();
$this->interface = new InterfaceClass();
}

/**
Expand Down
Loading

0 comments on commit 6015d4a

Please sign in to comment.