CoolCMS API

Traits

Table of Contents

Traits

CustomAssetLibraryTrait
Api operations of the custom code library (a library of code snippets without scope).
ExternalConnectionGroupSaveTrait
Api operation "save a connection and switch off the alternatives of its group".
PageCustomAssetAssignmentTrait
Hook that gives a new page the snippets flagged `add_to_new_pages = 1`.
SettingBatchTrait
Saves a whole set of settings in one DB transaction.
UserAccountDeletionTrait
Account deletion — the parts that touch the `cms_system_users` row itself and therefore live on {@see \App\UI\Api\System\Models\Managers\UserManager} (e-mails with links need the language and presenter context, the avatar removal its file helpers). The flow itself — tokens, steps of the other modules, audit — is {@see \App\UI\Api\System\Models\Managers\AccountDeletionManager}.
UserContentRewardTrait
Credits for published content: an advert (Bazaar), a company profile (Comcat) and a discussion post (Discussion); and for a complete user profile ({@see self::rewardCompletedProfile()}).
UserReferralTrait
Affiliate program and the registration bonus.
On this page

Search results