Skip to content

Commit

Permalink
[TASK] Finish check for powermail
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed May 2, 2018
1 parent dbb8bb6 commit 3dcc667
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Classes/Domain/Repository/FormRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,27 @@ public function getAllForms()
$data = [
'ext-form' => $this->getFormForms(),
'ext-powermail' => $this->getPowermailForms(),
'ext-formhandler' => $this->getFormhandlerForms()
// 'ext-formhandler' => $this->getFormhandlerForms()
];

return $data;
}

protected function getPowermailForms()
{
return [];
$queryBuilder = $this->getQueryBuilder('tt_content');
$rows = $queryBuilder
->select('*')
->from('tt_content')
->where(
$queryBuilder->expr()->eq('CType', $queryBuilder->createNamedParameter('list', \PDO::PARAM_STR)),
$queryBuilder->expr()->eq('list_type', $queryBuilder->createNamedParameter('powermail_pi1', \PDO::PARAM_STR))
)
->execute()
->fetchAll();

$rows = $this->enhanceRows($rows);
return $rows;
}

protected function getFormhandlerForms()
Expand All @@ -59,7 +71,7 @@ protected function getFormForms()
->select('*')
->from('tt_content')
->where(
$queryBuilder->expr()->like('CType', $queryBuilder->createNamedParameter('form_formframework', \PDO::PARAM_STR))
$queryBuilder->expr()->eq('CType', $queryBuilder->createNamedParameter('form_formframework', \PDO::PARAM_STR))
)
->execute()
->fetchAll();
Expand Down

0 comments on commit 3dcc667

Please sign in to comment.