CoolCMS API

Presenters

Table of Contents

Traits

AdminEditFormComponentsTrait
Shared components of a multilingual edit form: language tabs and action buttons.
AdminFormHelpersTrait
Shared helpers of admin edit forms: multilingual fields and safe conversions of values from `ArrayHash`. Used next to the form trait so `getFormLanguages()`, `str()` and `parseDateTime()` are not duplicated per presenter.
AssetUsageSettingsTrait
The "Images" component (assigns variants to image usages of a module) for module settings pages.
AuthStorageTrait
Admin variant of the auth storage trait.
CategoryPriceGridTrait
Axes of the category price list (Bazaar, Companies) in the shape of the tariff price list: the currency of a row per gateway and region, and the default VAT rate for the helper field "price with VAT".
EditorLinkTrait
Backend of the "page link" button in TinyMCE (admin `tinymce-page-link.js`).
EditorUploadTrait
File manager for TinyMCE (admin `rich-editor.js`, full editor) over its own folder `uploads/editorUploads/`: listing, subfolders, upload, rename, delete.
ImageUploadComponentTrait
Exposes the reusable component for uploading the main image.
LanguageInitTrait
LocalizationInitTrait
PageInitTrait
Loads the `AdminPage` entity (table `cms_admin_system_pages`) for the current presenter and action.
PrivilegeCheckTrait
RBAC access control of the admin.
ReportModerationPresenterTrait
Moderation list of reports from visitors (discussion posts, adverts, company profiles): one definition for the three `*ReportPresenter`s.
SettingInitTrait
SupplyKindFieldsTrait
Supply kind on admin item forms: the supply kind select and the rate map for the helper field "price with VAT" (`product-price-vat.js`).
TariffBillingFieldsTrait
Billing axes of a tariff, shared by all four admin tariff forms (bazaar, comcat, discussion, membership).
TariffPriceMatrixTrait
Contract of the tariff price list (region x gateway matrix), shared by the admin tariff forms of Bazaar, Comcat and Discussion.
ThemeInitTrait
UserTrait
Admin variant: gives presenters the Admin {@see UserManager} (CRUD over users through `ApiBridge`), unlike the Front copy, which injects the Front `UserManager`. Login is handled separately by {@see AuthStorageTrait} through the shared Front manager.
VatIdCheckPresenterTrait
Admin VAT id verification UI, shared by the user edit page and the invoicing address book (contact):
On this page

Search results