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

Static Public Member Functions

static adminPostEditor (string $editor='', string $context='')
 
static ckeditorExtraPlugins (ArrayObject $extraPlugins, string $context)
 
static adminPageHelpBlock (ArrayObject $blocks)
 
static dashboardFavorites (dcFavorites $favs)
 
static coreInitWikiPost (wiki2xhtml $wiki2xhtml)
 
static wiki2xhtmlTag (string $url, string $content)
 
static tagsField (ArrayObject $main, ArrayObject $sidebar, ?dcRecord $post)
 
static setTags (cursor $cur, $post_id)
 
static adminPostsActions (dcPostsActions $ap)
 
static adminAddTags (dcPostsActions $ap, ArrayObject $post)
 
static adminRemoveTags (dcPostsActions $ap, ArrayObject $post)
 
static postHeaders ()
 
static adminUserForm ()
 
static setTagListFormat (cursor $cur, ?string $user_id=null)
 

Member Function Documentation

◆ adminPostEditor()

static adminPostEditor ( string  $editor = '',
string  $context = '' 
)
static

Load tags specifics scripts

Parameters
string$editorThe editor
string$contextThe context
Returns
string ( description_of_the_return_value )

References $context, dcCore\app(), dcPage\jsJson(), and dcPage\jsModuleLoad().

◆ ckeditorExtraPlugins()

static ckeditorExtraPlugins ( ArrayObject  $extraPlugins,
string  $context 
)
static

Add tags CKEditor plugin

Parameters
ArrayObject$extraPluginsThe extra plugins
string$contextThe context

References $context, and $extraPlugins.

◆ adminPageHelpBlock()

static adminPageHelpBlock ( ArrayObject  $blocks)
static

Add an tags help ID if necessary

Parameters
ArrayObject$blocksThe blocks

◆ dashboardFavorites()

static dashboardFavorites ( dcFavorites  $favs)
static

Add tags as dashboard favorites

Parameters
dcFavorites$favsThe favs

References dcCore\app(), dcPage\getPF(), dcAuth\PERMISSION_CONTENT_ADMIN, dcAuth\PERMISSION_USAGE, and dcFavorites\register().

◆ coreInitWikiPost()

static coreInitWikiPost ( wiki2xhtml  $wiki2xhtml)
static

Init wiki tag URL scheme (tag:)

Parameters
wiki2xhtml$wiki2xhtmlThe wiki 2 HTML

References wiki2xhtml\registerFunction().

◆ wiki2xhtmlTag()

static wiki2xhtmlTag ( string  $url,
string  $content 
)
static

Transform a tag wiki URL

Parameters
string$urlThe url
string$contentThe content
Returns
array ( description_of_the_return_value )

References dcCore\app(), dcMeta\sanitizeMetaID(), and html\stripHostURL().

◆ tagsField()

static tagsField ( ArrayObject  $main,
ArrayObject  $sidebar,
?dcRecord  $post 
)
static

Add tags fieldset in entry sidebar

Parameters
ArrayObject$mainThe main part of the entry form
ArrayObject$sidebarThe sidebar part of the entry form
dcRecord$postThe post

References dcCore\app().

◆ setTags()

static setTags ( cursor  $cur,
  $post_id 
)
static

Store the tags of an entry.

Parameters
cursor$curThe current
mixed$post_idThe post identifier

References dcCore\app().

◆ adminPostsActions()

static adminPostsActions ( dcPostsActions  $ap)
static

Add tags actions

Parameters
dcPostsActions$apThe current action instance

References dcActions\addAction(), dcCore\app(), dcAuth\PERMISSION_CONTENT_ADMIN, and dcAuth\PERMISSION_DELETE.

◆ adminAddTags()

◆ adminRemoveTags()

◆ postHeaders()

static postHeaders ( )
static

Posts tags specific headers (scripts).

References dcCore\app(), dcPage\cssModuleLoad(), dcPage\jsJson(), dcPage\jsLoad(), and dcPage\jsModuleLoad().

◆ adminUserForm()

static adminUserForm ( )
static

Admin user preferences tags fieldset

References dcCore\app(), and form\combo().

◆ setTagListFormat()

static setTagListFormat ( cursor  $cur,
?string  $user_id = null 
)
static

Sets the tag list format.

Parameters
cursor$curThe current
null | string$user_idThe user identifier

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