| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace Opentalent\OtRouter\Controller;
- use Opentalent\OtCore\Domain\Repository\OrganizationRepository;
- use Opentalent\OtCore\Page\OtPageRepository;
- use TYPO3\CMS\Core\Database\ConnectionPool;
- /**
- * Provides methods to index the Typo3 pages and populate the routing db table
- *
- * @package Opentalent\OtRouter\Controller
- */
- class RoutingIndexer
- {
- const INDEX_TABLENAME = 'tx_opentalent_router';
- /**
- * @var ConnectionPool
- */
- private ConnectionPool $connectionPool;
- public function injectConnectionPool(ConnectionPool $connectionPool)
- {
- $this->connectionPool = $connectionPool;
- }
- /**
- * @var OtPageRepository
- */
- protected OtPageRepository $otPageRepository;
- public function injectOtPageRepository(OtPageRepository $otPageRepository) {
- $this->otPageRepository = $otPageRepository;
- }
- protected OrganizationRepository $organizationRepository;
- public function injectOrganizationRepository(OrganizationRepository $organizationRepository) {
- $this->organizationRepository = $organizationRepository;
- }
- /**
- * Clear then repopulate the whole index
- */
- public function indexAllRoutes() {
- }
- /**
- * Clear and recreate the index entry for the target website organization
- *
- * @param int $organizationId
- */
- public function indexRoutesFor(int $organizationId) {
- }
- }
|