public function __construct($container) { parent::__construct($container); //All this screens are using this custom filters $this->buildFilters(array('bench' => array('default' => array('terasort'), 'type' => 'selectOne', 'label' => 'Benchmark:'))); $this->whereClause = $this->filters->getWhereClause(); $this->clusterCosts = Utils::generateCostsFilters($this->container->getDBUtils()); }
public function __construct($container) { parent::__construct($container); $this->addOverrideFilters(array('upred' => array('type' => 'checkbox', 'default' => 0, 'label' => 'Use predictions', 'parseFunction' => function () { $choice = !isset($_GET['upred']) ? 0 : 1; return array('whereClause' => '', 'currentChoice' => $choice); }, 'filterGroup' => 'MLearning'), 'uobsr' => array('type' => 'checkbox', 'default' => 1, 'label' => 'Use observations', 'parseFunction' => function () { $choice = !isset($_GET['uobsr']) ? 0 : 1; return array('whereClause' => '', 'currentChoice' => $choice); }, 'filterGroup' => 'MLearning'))); $this->filters->overrideFilterGroups(array('MLearning' => array('filters' => array('prediction_model', 'upred', 'uobsr', 'warning', 'outlier')))); }
public function __construct($container) { parent::__construct($container); //All this screens are using this custom filters $this->removeFilters(array('prediction_model', 'upred', 'uobsr', 'warning', 'outlier')); }
public function __construct($container) { parent::__construct($container); $this->removeFilters(array('upred', 'uobsr')); }