Dotclear 2.24
Loading...
Searching...
No Matches
dcAdminCombos Class Reference

Static Public Member Functions

static getCategoriesCombo (dcRecord $categories, bool $include_empty=true, bool $use_url=false)
 
static getPostStatusesCombo ()
 
static getUsersCombo (dcRecord $users)
 
static getDatesCombo (dcRecord $dates)
 
static getLangsCombo (dcRecord $langs, bool $with_available=false)
 
static getAdminLangsCombo ()
 
static getEditorsCombo ()
 
static getFormatersCombo (string $editor_id='')
 
static getBlogStatusesCombo ()
 
static getCommentStatusesCombo ()
 
static getOrderCombo ()
 
static getPostsSortbyCombo ()
 
static getCommentsSortbyCombo ()
 
static getBlogsSortbyCombo ()
 
static getUsersSortbyCombo ()
 

Member Function Documentation

◆ getCategoriesCombo()

static getCategoriesCombo ( dcRecord  $categories,
bool  $include_empty = true,
bool  $use_url = false 
)
static

Returns an hierarchical categories combo from a category record

Parameters
dcRecord$categoriesThe categories
bool$include_emptyIncludes empty categories
bool$use_urlUse url or ID
Returns
array The categories combo.

References html\escapeHTML(), and dcRecord\fetch().

Referenced by dcDefaultPostActions\doChangePostCategory(), adminPost\init(), adminSimpleMenu\init(), adminPost\process(), adminCategories\render(), and adminIndex\render().

◆ getPostStatusesCombo()

static getPostStatusesCombo ( )
static

Returns available post status combo.

Returns
array The post statuses combo.

References dcCore\app().

Referenced by adminPostFilter\getPostStatusFilter(), adminPost\init(), adminUser\init(), and adminPage\init().

◆ getUsersCombo()

static getUsersCombo ( dcRecord  $users)
static

Returns an users combo from a users record.

Parameters
dcRecord$usersThe users
Returns
array The users combo.

References dcRecord\fetch(), and dcUtils\getUserCN().

Referenced by adminPostFilter\getPostUserFilter().

◆ getDatesCombo()

static getDatesCombo ( dcRecord  $dates)
static

Gets the dates combo.

Parameters
dcRecord$datesThe dates
Returns
array The dates combo.

References dcRecord\fetch(), and dt\str().

Referenced by adminPostFilter\getPostMonthFilter(), and adminSimpleMenu\init().

◆ getLangsCombo()

static getLangsCombo ( dcRecord  $langs,
bool  $with_available = false 
)
static

Gets the langs combo.

Parameters
dcRecord$langsThe langs
bool$with_availableIf false, only list items from record if true, also list available languages
Returns
array The langs combo.

References dcRecord\fetch(), and l10n\getISOcodes().

Referenced by adminPostFilter\getPostLangFilter(), adminPopupLink\init(), adminPost\init(), adminPage\init(), and adminBlogrollEdit\render().

◆ getAdminLangsCombo()

static getAdminLangsCombo ( )
static

Returns a combo containing all available and installed languages for administration pages.

Returns
array The admin langs combo.

References DC_L10N_ROOT, and l10n\getISOcodes().

Referenced by adminUserPrefs\init(), and adminUser\init().

◆ getEditorsCombo()

static getEditorsCombo ( )
static

Returns a combo containing all available editors in admin.

Returns
array The editors combo.

References dcCore\app().

◆ getFormatersCombo()

static getFormatersCombo ( string  $editor_id = '')
static

Returns a combo containing all available formaters by editor in admin.

Parameters
string$editor_idThe editor identifier (dcLegacyEditor, dcCKEditor, ...)
Returns
array The formaters combo.

References dcCore\app().

Referenced by adminUser\init(), and dcImportWP\init().

◆ getBlogStatusesCombo()

static getBlogStatusesCombo ( )
static

Gets the blog statuses combo.

Returns
array The blog statuses combo.

References dcCore\app().

Referenced by adminBlogFilter\getBlogStatusFilter().

◆ getCommentStatusesCombo()

static getCommentStatusesCombo ( )
static

Gets the comment statuses combo.

Returns
array The comment statuses combo.

References dcCore\app().

Referenced by adminCommentFilter\getCommentStatusFilter(), and adminComment\init().

◆ getOrderCombo()

static getOrderCombo ( )
static

◆ getPostsSortbyCombo()

static getPostsSortbyCombo ( )
static

References dcCore\app().

Referenced by adminUserPref\getDefaultFilters().

◆ getCommentsSortbyCombo()

static getCommentsSortbyCombo ( )
static

References dcCore\app().

Referenced by adminUserPref\getDefaultFilters().

◆ getBlogsSortbyCombo()

static getBlogsSortbyCombo ( )
static

References dcCore\app().

Referenced by adminUserPref\getDefaultFilters().

◆ getUsersSortbyCombo()

static getUsersSortbyCombo ( )
static

References dcCore\app().

Referenced by adminUserPref\getDefaultFilters().


The documentation for this class was generated from the following file: