...
 
Commits (1)
......@@ -10,14 +10,22 @@ class ProcessRockFinder extends Process {
}
/**
* list all projects
* execute the tester interface
*/
public function ___execute() {
$form = $this->modules->get('InputfieldForm');
// if reset parameter is set, add comments to tester.txt file
$file = $this->config->paths->assets . 'RockGrid/tester.txt';
if($this->input->get->reset) {
$str = file_get_contents($file);
file_put_contents($file, str_replace("\n", "\n// ", $str));
$this->session->redirect('./');
}
// if tester.txt does not exist create it from sample file
if(!is_file($this->config->paths->assets . 'RockGrid/tester.txt')) {
$this->files->copy(__DIR__ . '/exampleTester.php', $this->config->paths->assets . 'RockGrid/tester.txt');
if(!is_file($file)) {
$this->files->copy(__DIR__ . '/exampleTester.php', $file);
}
$f = $this->modules->get('InputfieldTextarea');
......
......@@ -218,7 +218,6 @@ class RockFinder extends WireData implements Module {
*/
private function joinedFinderJoins() {
if(!count($this->joinedFinders)) return;
bd($this->joinedFinders);
$sql = "\n\n/* joinedFinderJoins */";
foreach($this->joinedFinders as $finder) {
......@@ -361,8 +360,6 @@ class RockFinder extends WireData implements Module {
* join another finder
*/
public function join($finder, $prefix, $fields) {
bd('join');
// parameter checks
if(!$finder instanceof RockFinder) {
throw new WireException('First parameter needs to be a RockFinder instance');
......