Download the PHP package machwert/sf_event_mgt_multidates without Composer

On this page you can find all versions of the php package machwert/sf_event_mgt_multidates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sf_event_mgt_multidates

sf_event_mgt_multidates TYPO3 Extension extends sf_event_mgt

Enables multiple dates for sf_event_mgt events

Version matrix

Extension TYPO3 sf_event_mgt PHP Branch
3.x 14.3 ^9.0 ^8.3 main
2.x 13.4 ^8.6 ^8.2 13.4

The major version follows the extension's own semantic versioning, not the TYPO3 major. Which TYPO3 version a release supports is declared in its composer.json, never guessed from the version number.

Installation

1. Composer installation:

composer req machwert/sf_event_mgt_multidates:^3.0

Standard installation: TYPO3 Backend / Admin Tools: Extensions / Get Extension: sf_event_mgt_multidates

Note on ext_emconf.php: the file lives in the repository, because TER and typo3/tailor need it, but it is marked export-ignore in .gitattributes and therefore absent from the Composer package. That keeps TYPO3 14.3 from emitting the deprecation notice it raises for every extension that ships one.

2. Include static TypoScript file 'SF Event Mgt Multidates'

alt text

Configuration

In Constant Editor you can configure following:

  1. Use FluidEmail to send mails? plugin.tx_sfeventmgt_mulitdates.settings.useFluidEmail = 1

  2. Show registration form on same page in lightbox? plugin.tx_sfeventmgt_mulitdates.settings.showFormInLightbox = 1

If you select this (default) the registration form is loaded by ajax in the detail view directly. The lightbox itself is not implemented in this extension, but it produces a link button with css class "lightbox-btn" which you can use.

  1. TypeNum of ajax page, which has no html header output. plugin.tx_sfeventmgt_mulitdates.settings.ajaxTypeNum = 99

  2. For this ajax implementation the content of this colPos only is shown. plugin.tx_sfeventmgt_mulitdates.settings.ajaxColPos = 20

TYPO3 Backend sf_event_mgt::Event

Add multiple dates for an event

alt text

TYPO3 Frontend - List view

Only the first date ist presented in list view by default

alt text

TYPO3 Frontend - Detail view

All dates are presented in detail view and selectable

alt text

TYPO3 Frontend - Registration view

All dates are presented in detail view and selectable

alt text

TYPO3 Frontend - Calendar view

Events are dislayed multiple times if multiple dates are set in calendar view

alt text

TYPO3 Backend - Event Registration view

Registrations you find in TYPO3 Backend for each event in tab 'members (DE: Teilnehmer)'. Here you find the chosen startdate of the registered user

alt text

Email New Registration view

In emails to user and admin the chosen date is shown Attention: For Html-emails as shown there are more adaptions necessary. Possibly I will offer an extension sf_event_mgt_htmlmails shortly

alt text

Tests

The extension ships functional tests for the most critical part of the XCLASS: the decision whether a registration is accepted (NewRegistrationService::checkRegistrationSuccess()).

Tests/Functional/Xclass/NewRegistrationServiceTest.php
Tests/Functional/Xclass/Fixtures/Registrations.csv

They are functional and not unit tests on purpose. The service takes seven constructor dependencies, Event::getRegistrations() resolves the language context through the DI container, and emailNotUnique() issues its own SQL query - none of that can be faked sensibly without a booted TYPO3 instance.

Note: test and data set names are German, matching the rest of the project's internal notes.

What is covered

13 cases in total. Seven describe the regular rules:

Case Expected result
free places available REGISTRATION_SUCCESSFUL
unlimited participants (maxParticipants = 0) REGISTRATION_SUCCESSFUL
registration disabled REGISTRATION_NOT_ENABLED
fully booked, no waitlist REGISTRATION_FAILED_MAX_PARTICIPANTS
fully booked, waitlist enabled REGISTRATION_SUCCESSFUL_WAITLIST
not enough free places for a multi-seat registration REGISTRATION_FAILED_NOT_ENOUGH_FREE_PLACES
more seats than maxRegistrationsPerUser REGISTRATION_FAILED_MAX_AMOUNT_REGISTRATIONS_EXCEEDED

Two cover the unique e-mail check and therefore use the CSV fixture: an address already registered for the event is rejected, a new one is accepted.

Three pin down the deliberate difference from the original extension. All of them expect REGISTRATION_SUCCESSFUL where stock sf_event_mgt would refuse:

Case Original would return
event start date in the past REGISTRATION_FAILED_EVENT_EXPIRED
registration deadline passed REGISTRATION_FAILED_DEADLINE_EXPIRED
end date passed with allowRegistrationUntilEnddate REGISTRATION_FAILED_EVENT_ENDED

The last one is worth knowing about: REGISTRATION_FAILED_EVENT_ENDED was introduced in sf_event_mgt after 7.3.3 and was never adopted here. As a consequence the backend checkbox "Registration until end date" has no effect. That is now a test case rather than a silent gap.

The first test

derXclassIstUeberhauptAktiv() asserts that the DI container really returns NewRegistrationService. The XCLASS is registered through $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'], while EventController receives the service via constructor injection - whether the container honours the XCLASS is not obvious from the code. Without this assertion the remaining twelve cases might be testing the original class and still pass.

Running them

The extension ships the tests only; the PHPUnit configuration belongs to the project that runs them. Use the boilerplate from typo3/testing-framework (Resources/Core/Build/FunctionalTests.xml and FunctionalTestsBootstrap.php), point its test suite at packages/*/Tests/Functional/, and give the test runner a database user that may create throwaway databases:

composer require --dev typo3/testing-framework
# once, in your database:
GRANT ALL ON `db\_%`.* TO 'db'@'%';
vendor/bin/phpunit -c Build/FunctionalTests.xml

The same tests run on both maintained lines - the signature of checkRegistrationSuccess() is identical in sf_event_mgt 8.6 and 9.0.

ChangeLog

3.0.2 - Three fixes found by comparing the XCLASSed methods against the current original. None of them re-introduced a published security advisory - both known advisories for sf_event_mgt concern the backend module, which this extension does not touch.

3.0.1 - Packaging fix, no functional change.

3.0.0 - Support for TYPO3 14.3 with sf_event_mgt ^9.0 and PHP ^8.3.

2.0.0 - Support for TYPO3 13.4 with sf_event_mgt ^8.6 and PHP ^8.2. Same feature set, maintained on the 13.4 branch.

Everything up to here had been developed inside the machwert.de project repository since early 2024 and was never released separately. These two tags bring that work back.

v0.0.3 - Registration form is now called by Ajax, so event detail page can be cached. Furthermore I changed jQuery implementations to native JavaScript. v0.0.2 - Moved setting to initializeAction, only calenderAction must be checked now if sf_event_mgt is updated


All versions of sf_event_mgt_multidates with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
typo3/cms-core Version ^14.3
derhansen/sf_event_mgt Version ^9.0
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package machwert/sf_event_mgt_multidates contains the following files

Loading the files please wait ...