Dotclear 2.24
|
Static Public Member Functions | |
static | check (string $permissions, bool $home=false) |
static | checkSuper (bool $home=false) |
static | open (string $title='', string $head='', string $breadcrumb='', array $options=[]) |
static | notices () |
static | addMessageNotice (string $message, array $options=[]) |
static | addSuccessNotice (string $message, array $options=[]) |
static | addWarningNotice (string $message, array $options=[]) |
static | addErrorNotice (string $message, array $options=[]) |
static | message (string $msg, bool $timestamp=true, bool $div=false, bool $echo=true, ?string $class=null) |
static | success (string $msg, bool $timestamp=true, bool $div=false, bool $echo=true) |
static | warning (string $msg, bool $timestamp=true, bool $div=false, bool $echo=true) |
static | error (string $msg, bool $timestamp=true, bool $div=false, bool $echo=true) |
static | close () |
static | openPopup (string $title='', string $head='', string $breadcrumb='') |
static | closePopup () |
static | breadcrumb (?array $elements=null, array $options=[]) |
static | helpBlock (... $params) |
static | preload (string $src, ?string $version='', string $type='style') |
static | cssLoad (string $src, string $media='screen', ?string $version='') |
static | cssModuleLoad (string $src, string $media='screen', ?string $version='') |
static | jsLoad (string $src, ?string $version='') |
static | jsModuleLoad (string $src, ?string $version='') |
static | jsJson (string $id, $vars) |
static | jsToggles () |
static | jsCommon () |
static | jsAdsBlockCheck () |
static | jsConfirmClose (... $args) |
static | jsPageTabs ($default=null) |
static | jsModal () |
static | jsUpload (array $params=[], ?string $base_url=null) |
static | jsMetaEditor () |
static | jsFilterControl (bool $show=true) |
static | jsLoadCodeMirror (string $theme='', bool $multi=true, array $modes=['css', 'htmlmixed', 'javascript', 'php', 'xml', 'clike']) |
static | jsRunCodeMirror ($name, ?string $id=null, $mode=null, string $theme='') |
static | getCodeMirrorThemes () |
static | getPF (string $file) |
static | getVF (string $file) |
static | setXFrameOptions ($headers, $origin=null) |
static | help () |
static | jsColorPicker () |
static | jsDatePicker () |
static | jsToolBar () |
static | jsVar (string $name, $value) |
static | jsVars (array $vars) |
static | jsLoadIE7 () |
|
static |
Auth check
string | $permissions | The permissions |
bool | $home | Currently on dashboard |
References dcCore\app(), dcAuth\PERMISSION_CONTENT_ADMIN, dcAuth\PERMISSION_USAGE, and http\redirect().
Referenced by adminChartePage\init(), adminBlogTheme\init(), adminBlogs\init(), adminCategories\init(), adminCategory\init(), adminComment\init(), adminComments\init(), adminCommentsActions\init(), adminHelp\init(), adminIndex\init(), adminMedia\init(), adminMediaItem\init(), adminPlugin\init(), adminPopupLink\init(), adminPopupPosts\init(), adminPost\init(), adminPostMedia\init(), adminPosts\init(), adminPostsActions\init(), adminUserPrefs\init(), adminSearch\init(), adminAntispam\init(), adminBlogrollEdit\init(), adminBlogroll\init(), adminPages\init(), adminPage\init(), and adminSimpleMenu\init().
|
static |
Check super admin
bool | $home | The home |
References dcCore\app(), dcAuth\PERMISSION_CONTENT_ADMIN, dcAuth\PERMISSION_USAGE, and http\redirect().
Referenced by adminBlog\init(), adminBlogDel\init(), adminLangs\init(), adminPlugins\init(), adminUpdate\init(), adminUser\init(), adminUsers\init(), adminUsersActions\init(), and adminPings\init().
|
static |
Top of admin page
string | $title | The title |
string | $head | The head |
string | $breadcrumb | The breadcrumb |
array | $options | The options |
References dcCore\app(), form\combo(), cssLoad(), DC_VENDOR_NAME, DC_VERSION, html\escapeHTML(), l10n\getLanguageTextDirection(), dcAdminNotices\getNotices(), form\hidden(), jsCommon(), dcUtils\jsJson(), jsToggles(), dcAuth\PERMISSION_CONTENT_ADMIN, preload(), and setXFrameOptions().
Referenced by dcBlogsActions\beginPage(), dcCommentsActions\beginPage(), dcPostsActions\beginPage(), adminBlogTheme\init(), adminUpdate\init(), adminMediaPage\openPage(), adminPostMedia\process(), adminBlog\render(), adminBlogDel\render(), adminBlogTheme\render(), adminBlogs\render(), adminCategories\render(), adminCategory\render(), adminComment\render(), adminComments\render(), adminHelp\render(), adminIndex\render(), adminLangs\render(), adminPlugins\render(), adminPost\render(), adminPosts\render(), adminUserPrefs\render(), adminSearch\render(), adminUpdate\render(), adminUser\render(), adminUsers\render(), adminUsersActions\render(), and adminPlugins\renderConfig().
|
static |
Get current notices
References dcAdminNotices\getNotices().
Referenced by dcFilterAkismet\gui(), adminMedia\render(), adminAboutConfig\render(), adminAntispam\render(), adminBlogrollEdit\render(), adminBlogroll\render(), adminBlowupConfig\render(), adminImportExport\render(), adminMaintenance\render(), adminPages\render(), adminSimpleMenu\render(), adminTag\render(), adminTags\render(), adminThemeEditor\render(), adminUserPreferences\render(), and adminWidgets\render().
|
static |
Adds a message notice.
string | $message | The message |
array | $options | The options |
References $message, dcAdminNotices\addNotice(), and dcAdminNotices\NOTICE_MESSAGE.
|
static |
Adds a success notice.
string | $message | The message |
array | $options | The options |
References $message, dcAdminNotices\addNotice(), and dcAdminNotices\NOTICE_SUCCESS.
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(), dcDefaultPostActions\doUpdateSelectedPost(), dcFilterAkismet\gui(), dcFilterIP\gui(), dcFilterIpLookup\gui(), dcFilterIPv6\gui(), dcFilterWords\gui(), adminBlog\process(), adminBlogDel\process(), adminCategories\process(), adminCategory\process(), adminComment\process(), adminLangs\process(), adminMedia\process(), adminMediaItem\process(), adminPost\process(), adminPostMedia\process(), adminUserPrefs\process(), adminUser\process(), adminUsersActions\process(), adminAboutConfig\process(), adminAntispam\process(), adminBlogrollEdit\process(), adminBlogroll\process(), adminBlowupConfig\process(), adminCKEditor\process(), adminLegacyEditor\process(), adminMaintenance\process(), adminPings\process(), adminSimpleMenu\process(), adminTag\process(), adminThemeEditor\process(), and adminUserPreferences\process().
|
static |
Adds a warning notice.
string | $message | The message |
array | $options | The options |
References $message, dcAdminNotices\addNotice(), and dcAdminNotices\NOTICE_WARNING.
Referenced by dcModules\disableDepModules(), dcDefaultBlogActions\doDeleteBlog(), adminMedia\process(), and adminUser\process().
|
static |
Adds an error notice.
string | $message | The message |
array | $options | The options |
References $message, dcAdminNotices\addNotice(), and dcAdminNotices\NOTICE_ERROR.
Referenced by adminCategories\process(), and adminSimpleMenu\process().
|
static |
Return/display a notice
string | $msg | The message |
bool | $timestamp | Include the timestamp |
bool | $div | The message container, true for , false for |
bool | $echo | Immediatly displayed |
string | $class | The class to use |
References dcAdminNotices\message().
Referenced by adminConfigThemeCustomCSS\process(), adminConfigThemeDuctile\process(), adminComments\render(), adminPost\render(), adminUsers\render(), and adminPage\render().
Return/display a success notice
string | $msg | The message |
bool | $timestamp | Include the timestamp |
bool | $div | The message container, true for , false for |
bool | $echo | Immediatly displayed |
References dcAdminNotices\success().
Referenced by dcImportFeed\gui(), dcImportFlat\gui(), adminMedia\process(), adminBlogTheme\render(), adminCategories\render(), adminCategory\render(), adminComment\render(), adminComments\render(), adminLangs\render(), adminPlugins\render(), adminPost\render(), adminPosts\render(), adminUpdate\render(), adminUser\render(), adminAntispam\render(), adminPages\render(), and adminPage\render().
Return/display a warning notice
string | $msg | The message |
bool | $timestamp | Include the timestamp |
bool | $div | The message container, true for , false for |
bool | $echo | Immediatly displayed |
References dcAdminNotices\warning().
Referenced by adminMedia\render().
Return/display a error notice
string | $msg | The message |
bool | $timestamp | Include the timestamp |
bool | $div | The message container, true for , false for |
bool | $echo | Immediatly displayed |
References dcAdminNotices\error().
|
static |
End of admin page
References dcCore\app(), DC_VERSION, html\escapeHTML(), and form\field().
Referenced by adminMediaPage\closePage(), dcBlogsActions\endPage(), dcCommentsActions\endPage(), dcPostsActions\endPage(), adminBlogTheme\init(), adminMediaItem\init(), adminUpdate\init(), adminPostMedia\process(), adminBlog\render(), adminBlogDel\render(), adminBlogTheme\render(), adminBlogs\render(), adminCategories\render(), adminCategory\render(), adminComment\render(), adminComments\render(), adminHelp\render(), adminIndex\render(), adminLangs\render(), adminPlugins\render(), adminPost\render(), adminPosts\render(), adminSearch\render(), adminUpdate\render(), adminUser\render(), adminUsers\render(), adminUsersActions\render(), and adminPlugins\renderConfig().
|
static |
The top of a popup.
string | $title | The title |
string | $head | The head |
string | $breadcrumb | The breadcrumb |
References dcCore\app(), cssLoad(), DC_VENDOR_NAME, DC_VERSION, html\escapeHTML(), l10n\getLanguageTextDirection(), dcAdminNotices\getNotices(), jsCommon(), dcUtils\jsJson(), jsToggles(), and preload().
Referenced by adminMediaPage\openPage(), adminPopupLink\render(), and adminPopupPosts\render().
|
static |
The end of a popup.
Referenced by adminMediaPage\closePage(), adminPopupLink\render(), and adminPopupPosts\render().
|
static |
Get breadcrumb
array | null | $elements | The elements |
array | $options | The options |
References dcCore\app().
Referenced by tagsBehaviors\adminAddTags(), tagsBehaviors\adminRemoveTags(), adminMediaPage\breadcrumb(), dcDefaultPostActions\doChangePostAuthor(), dcDefaultPostActions\doChangePostCategory(), dcDefaultPostActions\doChangePostLang(), dcBlogsActions\error(), dcCommentsActions\error(), dcPostsActions\error(), dcPagesActions\error(), adminBlogTheme\init(), adminUpdate\init(), adminBlog\render(), adminBlogDel\render(), adminBlogTheme\render(), adminBlogs\render(), adminCategories\render(), adminCategory\render(), adminComment\render(), adminComments\render(), adminHelp\render(), adminIndex\render(), adminLangs\render(), adminPlugin\render(), adminPlugins\render(), adminPost\render(), adminPosts\render(), adminUserPrefs\render(), adminSearch\render(), adminUpdate\render(), adminUser\render(), adminUsers\render(), adminUsersActions\render(), adminAboutConfig\render(), adminAntispam\render(), adminBlogrollEdit\render(), adminBlogroll\render(), adminBlowupConfig\render(), adminImportExport\render(), adminMaintenance\render(), adminPages\render(), adminPage\render(), adminPings\render(), adminSimpleMenu\render(), adminTag\render(), adminTags\render(), adminThemeEditor\render(), adminUserPreferences\render(), adminWidgets\render(), and adminPlugins\renderConfig().
|
static |
Display Help block
mixed | ...$params The parameters |
References dcCore\app().
Referenced by adminMediaPage\closePage(), adminBlogTheme\init(), adminMediaItem\init(), adminBlog\render(), adminBlogTheme\render(), adminBlogs\render(), adminCategories\render(), adminCategory\render(), adminComment\render(), adminComments\render(), adminIndex\render(), adminLangs\render(), adminPlugins\render(), adminPost\render(), adminPosts\render(), adminSearch\render(), adminUpdate\render(), adminUser\render(), adminUsers\render(), adminUsersActions\render(), adminAboutConfig\render(), adminAntispam\render(), adminBlogroll\render(), adminBlowupConfig\render(), adminImportExport\render(), adminMaintenance\render(), adminPages\render(), adminPage\render(), adminPings\render(), adminTag\render(), adminTags\render(), adminThemeEditor\render(), adminUserPreferences\render(), adminWidgets\render(), adminConfigThemeDuctile\render(), and adminPlugins\renderConfig().
|
static |
Get HTML code to preload resource
string | $src | The source |
null | string | $version | The version |
string | $type | The type |
References $version, and html\escapeHTML().
Referenced by open(), and openPopup().
|
static |
Get HTML code to load CSS stylesheet
string | $src | The source |
string | $media | The media |
null | string | $version | The version |
References $version, and html\escapeHTML().
Referenced by themeEditorBehaviors\adminPreferencesForm(), cssModuleLoad(), jsLoadCodeMirror(), open(), and openPopup().
|
static |
Wrapper for cssLoad to be used by module
string | $src | The source |
string | $media | The media |
null | string | $version | The version |
References $version, and cssLoad().
Referenced by tagsBehaviors\adminAddTags(), dcLegacyEditorBehaviors\jsToolBar(), tagsBehaviors\postHeaders(), adminAntispam\render(), adminImportExport\render(), adminTag\render(), adminTags\render(), adminThemeEditor\render(), and adminWidgets\render().
|
static |
Get HTML code to load JS script
string | $src | The source |
null | string | $version | The version |
References $version, and html\escapeHTML().
Referenced by tagsBehaviors\adminAddTags(), dcCKEditorBehaviors\adminPopupLink(), dcCKEditorBehaviors\adminPopupMedia(), dcCKEditorBehaviors\adminPopupPosts(), dcAdminBlogPref\adminPopupPosts(), dcCKEditorBehaviors\adminPostEditor(), dcBlogsActions\beginPage(), dcCommentsActions\beginPage(), dcPostsActions\beginPage(), dcPagesActions\beginPage(), dcDefaultPostActions\doChangePostAuthor(), jsAdsBlockCheck(), jsCommon(), jsConfirmClose(), jsFilterControl(), jsLoadCodeMirror(), jsMetaEditor(), jsModal(), jsModuleLoad(), jsPageTabs(), jsRunCodeMirror(), jsToggles(), jsUpload(), adminSearch\pageHead(), tagsBehaviors\postHeaders(), adminAuth\render(), adminBlogTheme\render(), adminBlogs\render(), adminCategories\render(), adminCategory\render(), adminComment\render(), adminComments\render(), adminIndex\render(), adminLangs\render(), adminMedia\render(), adminPlugins\render(), adminPopupLink\render(), adminPopupPosts\render(), adminPost\render(), adminPosts\render(), adminUserPrefs\render(), adminUpdate\render(), adminUser\render(), adminUsers\render(), adminUsersActions\render(), adminAntispam\render(), adminBlogroll\render(), adminPages\render(), adminPage\render(), adminSimpleMenu\render(), adminTag\render(), and adminWidgets\render().
|
static |
Wrapper for jsLoad to be used by module
string | $src | The source |
null | string | $version | The version |
References $version, and jsLoad().
Referenced by tagsBehaviors\adminAddTags(), dcLegacyEditorBehaviors\adminPopupLink(), dcLegacyEditorBehaviors\adminPopupMedia(), dcLegacyEditorBehaviors\adminPopupPosts(), dcLegacyEditorBehaviors\adminPostEditor(), tagsBehaviors\adminPostEditor(), themeEditorBehaviors\adminPreferencesForm(), dcAntispam\dashboardHeaders(), dcImportFlat\gui(), dcLegacyEditorBehaviors\jsToolBar(), pingsAdminBehaviors\pingJS(), dcMaintenanceAdmin\pluginsToolsHeaders(), tagsBehaviors\postHeaders(), adminAboutConfig\render(), adminAntispam\render(), adminBlogroll\render(), adminBlowupConfig\render(), adminImportExport\render(), adminMaintenance\render(), adminPages\render(), adminPage\render(), adminSimpleMenu\render(), adminTag\render(), adminThemeEditor\render(), adminUserPreferences\render(), and adminWidgets\render().
|
static |
Get HTML code to load JS variables encoded as JSON
string | $id | The identifier |
mixed | $vars | The variables |
References dcUtils\jsJson().
Referenced by tagsBehaviors\adminAddTags(), dcAdminBlogPref\adminPopupPosts(), dcLegacyEditorBehaviors\adminPostEditor(), tagsBehaviors\adminPostEditor(), dcCKEditorBehaviors\adminPostEditor(), themeEditorBehaviors\adminPreferencesForm(), dcDefaultPostActions\doChangePostAuthor(), dcImportFlat\gui(), adminGenericFilterV2\js(), jsCommon(), jsConfirmClose(), jsFilterControl(), jsPageTabs(), jsRunCodeMirror(), jsToggles(), dcLegacyEditorBehaviors\jsToolBar(), jsUpload(), tagsBehaviors\postHeaders(), adminAuth\render(), adminIndex\render(), adminUserPrefs\render(), adminUser\render(), adminAntispam\render(), adminBlowupConfig\render(), adminImportExport\render(), adminMaintenance\render(), adminPages\render(), adminPage\render(), adminTag\render(), adminThemeEditor\render(), and adminWidgets\render().
|
static |
Get HTML code to load toggles JS
References dcCore\app(), jsJson(), and jsLoad().
Referenced by open(), and openPopup().
|
static |
Get HTML code to load common JS for admin pages
References dcCore\app(), jsJson(), and jsLoad().
Referenced by open(), openPopup(), and adminAuth\render().
|
static |
Get HTML code to load ads blocker detector for admin pages (usually active on dashboard and user preferences pages)
References dcCore\app(), and jsLoad().
Referenced by adminIndex\render(), and adminUserPrefs\render().
|
static |
Get HTML code to load ConfirmClose JS
mixed | ...$args The arguments |
References jsJson(), and jsLoad().
Referenced by adminBlog\render(), adminCategories\render(), adminCategory\render(), adminComment\render(), adminPost\render(), adminUserPrefs\render(), adminUser\render(), adminBlogroll\render(), adminPage\render(), adminSimpleMenu\render(), adminTag\render(), adminThemeEditor\render(), and adminWidgets\render().
|
static |
Get HTML code to load page tabs JS
mixed | $default | The default |
References jsJson(), and jsLoad().
Referenced by adminBlogTheme\init(), adminBlogTheme\render(), adminHelp\render(), adminPlugins\render(), adminPost\render(), adminUserPrefs\render(), adminUpdate\render(), adminAboutConfig\render(), adminAntispam\render(), adminBlogroll\render(), adminMaintenance\render(), adminPage\render(), and adminUserPreferences\render().
|
static |
Get HTML code to load Magnific popup JS
References jsLoad().
Referenced by adminMedia\render(), adminPost\render(), and adminPage\render().
|
static |
Get HTML to load Upload JS utility
array | $params | The parameters |
null | string | $base_url | The base url |
References dcCore\app(), path\clean(), jsJson(), and jsLoad().
Referenced by adminMedia\render().
|
static |
Get HTML code to load meta editor
References jsLoad().
Referenced by tagsBehaviors\adminAddTags(), and adminPost\render().
|
static |
Get HTML code for filters control JS utility
bool | $show | Show filters? |
References dcCore\app(), jsJson(), and jsLoad().
Referenced by adminGenericFilterV2\js().
|
static |
Get HTML code to load Codemirror
string | $theme | The theme |
bool | $multi | Is multiplex? |
array | $modes | The modes |
References $ret, cssLoad(), and jsLoad().
Referenced by themeEditorBehaviors\adminPreferencesForm(), and adminThemeEditor\render().
|
static |
Get HTML code to run Codemirror
mixed | $name | The HTML name attribute |
null | string | $id | The HTML id attribute |
mixed | $mode | The Codemirror mode |
string | $theme | The theme |
References jsJson(), and jsLoad().
Referenced by adminThemeEditor\render().
|
static |
Gets the codemirror themes list.
Referenced by themeEditorBehaviors\adminPreferencesForm().
|
static |
Gets plugin file.
string | $file | The filename |
References dcCore\app().
Referenced by dcMaintenanceAdmin\adminDashboardFavorites(), dcMaintenanceAdmin\adminDashboardFavoritesCallback(), dcMaintenanceAdmin\adminDashboardItems(), tagsBehaviors\dashboardFavorites(), and adminBlowupConfig\render().
|
static |
|
static |
Sets the x frame options.
array | ArrayObject | $headers | The headers |
mixed | $origin | The origin |
Referenced by open().
|
static |
|
static |
|
static |
|
static |
|
static |
return a javascript variable definition line code
string | $name | variable name |
mixed | $value | value |
References html\escapeJS().
|
static |
return a list of javascript variables définitions code
array | $vars | The variables |
References $ret, and html\escapeJS().
|
static |