Метод | Описание | |
---|---|---|
base_pageControls_handler ( object $sender, array $args ) | Inject the DiscussionsSortFilterModule in in the page | |
discussionModel_initStatic_handler ( DiscussionModel $sender, array $args ) | Add new filters to the discussion model | |
setup ( ) | Setup is called when plugin is enabled and prepares config and db. | |
structure ( ) | Update the DB structure. Called on /utility/update and when the plugin is enabled |
Метод | Описание | |
---|---|---|
stringToSlug ( string $prefix ) : string | Transform a string into a slug (URL compatible "token") |
public base_pageControls_handler ( object $sender, array $args ) | ||
$sender | object | Sending controller instance. |
$args | array | Event arguments. |
public discussionModel_initStatic_handler ( DiscussionModel $sender, array $args ) | ||
$sender | DiscussionModel | Sending controller instance. |
$args | array | Event arguments. |
public setup ( ) |
protected stringToSlug ( string $prefix ) : string | ||
$prefix | string | Prefix |
Результат | string | The slug |
public structure ( ) |