◆ __construct()
__construct |
( |
?string |
$uri, |
|
|
array |
$redirect_args = [] |
|
) |
| |
◆ setEnableRedirSelection()
setEnableRedirSelection |
( |
bool |
$enable | ) |
|
Define whether to keep selection when redirecting Can be usefull to be disabled to preserve some compatibility.
- Parameters
-
boolean | $enable | true to enable, false otherwise |
◆ addAction()
addAction |
( |
array |
$actions, |
|
|
|
$callback |
|
) |
| |
◆ getCombo()
◆ getIDs()
Returns the list of selected entries
- Returns
- array the list
Referenced by dcDefaultCommentActions\doBlocklistIP(), dcDefaultBlogActions\doChangeBlogStatus(), dcDefaultCommentActions\doChangeCommentStatus(), dcDefaultPostActions\doChangePostAuthor(), dcDefaultPostActions\doChangePostCategory(), dcDefaultPostActions\doChangePostLang(), dcDefaultPostActions\doChangePostStatus(), dcDefaultBlogActions\doDeleteBlog(), dcDefaultCommentActions\doDeleteComment(), dcDefaultPostActions\doDeletePost(), and dcDefaultPostActions\doUpdateSelectedPost().
◆ getIDsHidden()
Returns the list of selected entries as HTML hidden fields string
- Returns
- string the HTML code for hidden fields
References $ret.
Referenced by getHiddenFields().
◆ getHiddenFields()
getHiddenFields |
( |
bool |
$with_ids = false | ) |
|
◆ getRS()
◆ setupRedir()
Setup redirection arguments
by default, $_POST fields as defined in redirect_fields attributes are set into redirect_args.
- Parameters
-
array | ArrayObject | $from | input to parse fields from (usually $_POST) |
References $from.
Referenced by process().
◆ getRedirection()
getRedirection |
( |
bool |
$with_selected_entries = false , |
|
|
array |
$params = [] |
|
) |
| |
Returns redirection URL
- Parameters
-
boolean | $with_selected_entries | if true, add selected entries in url |
array | $params | extra parameters to append to redirection must be an array : each key is the name, each value is the wanted value |
- Returns
- string the redirection url
References $field_entries, $redir_anchor, and $redir_args.
Referenced by tagsBehaviors\adminAddTags(), dcBlogsActions\beginPage(), dcCommentsActions\beginPage(), dcPostsActions\beginPage(), dcPagesActions\beginPage(), dcDefaultPostActions\doChangePostAuthor(), dcDefaultPostActions\doChangePostCategory(), dcDefaultPostActions\doChangePostLang(), dcPagesActions\error(), and redirect().
◆ redirect()
redirect |
( |
bool |
$with_selected_entries = false , |
|
|
array |
$params = [] |
|
) |
| |
Redirects to redirection page
- Parameters
-
boolean | $with_selected_entries | if true, add selected entries in url |
array | $params | extra parameters to append to redirection must be an array : each key is the name, each value is the wanted value |
- See also
- getRedirection for arguments details
References exit, getRedirection(), and http\redirect().
Referenced by tagsBehaviors\adminAddTags(), tagsBehaviors\adminRemoveTags(), dcDefaultCommentActions\doBlocklistIP(), dcDefaultBlogActions\doChangeBlogStatus(), dcDefaultCommentActions\doChangeCommentStatus(), dcDefaultPostActions\doChangePostAuthor(), dcDefaultPostActions\doChangePostCategory(), dcDefaultPostActions\doChangePostLang(), dcDefaultPostActions\doChangePostStatus(), dcDefaultBlogActions\doDeleteBlog(), dcDefaultCommentActions\doDeleteComment(), dcDefaultPostActions\doDeletePost(), dcDefaultPageActions\doReorderPages(), and dcDefaultPostActions\doUpdateSelectedPost().
◆ getURI()
◆ getCallerTitle()
◆ getAction()
◆ process()
◆ getCheckboxes()
◆ beginPage()
beginPage |
( |
string |
$breadcrumb = '' , |
|
|
string |
$head = '' |
|
) |
| |
|
abstract |
Displays the beginning of a page, if action does not redirects dirtectly
This method is called from the actions themselves.
- Parameters
-
string | $breadcrumb | breadcrumb to display |
string | $head | page header to include |
Reimplemented in dcBlogsActions, dcCommentsActions, dcPostsActions, and dcPagesActions.
◆ endPage()
◆ fetchEntries()
fetchEntries |
( |
ArrayObject |
$from | ) |
|
|
abstractprotected |
Fills-in information by requesting into db This method may setup the following attributes
- entries : list of entries (checked against permissions) entries ids are array keys, values contain entry description (if relevant)
- rs : dcRecord given by db request
- Parameters
-
Reimplemented in dcBlogsActions, dcCommentsActions, and dcPostsActions.
Referenced by process().
◆ $uri
Referenced by __construct(), dcBlogsActions\__construct(), dcCommentsActions\__construct(), dcPostsActions\__construct(), dcPagesActions\__construct(), dcActionsPage\__construct(), dcPostsActionsPage\__construct(), dcCommentsActionsPage\__construct(), dcBlogsActionsPage\__construct(), dcPagesActionsPage\__construct(), and getURI().
◆ $combo
◆ $actions
◆ $entries
◆ $rs
◆ $redir_args
◆ $redirect_fields
◆ $redir_anchor
◆ $action
◆ $from
◆ $field_entries
◆ $cb_title
◆ $caller_title
◆ $in_plugin
◆ $enable_redir_selection
$enable_redir_selection = true |
|
protected |
The documentation for this class was generated from the following file: