Dotclear  2.29
 All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
dcCore Class Reference

Dotclear core class. More...

Collaboration diagram for dcCore:
[legend]

Public Member Functions

 __construct ()
 
 killAdminSession ()
 
Blog init methods
 setBlog ($id)
 
 unsetBlog ()
 
Blog status methods
 getAllBlogStatus ()
 
 getBlogStatus (int $s)
 
Admin nonce secret methods
 getNonce ()
 
 checkNonce (string $secret)
 
 formNonce (bool $render=true)
 
Text Formatters methods
 addEditorFormater (string $editor_id, string $name, $func)
 
 addFormater (string $name, $func)
 
 addFormaterName (string $format, string $name)
 
 getFormaterName (string $format)
 
 getEditors ()
 
 getFormaters (string $editor_id= '')
 
 callEditorFormater (string $editor_id, string $name, string $str)
 
 callFormater (string $name, string $str)
 
Behaviors methods
 addBehavior (string $behavior, $func)
 
 addBehaviour (string $behaviour, $func)
 
 addBehaviors (array $behaviors)
 
 addBehaviours (array $behaviours)
 
 hasBehavior (string $behavior)
 
 hasBehaviour (string $behaviour)
 
 getBehaviors (string $behavior= '')
 
 getBehaviours (string $behaviour= '')
 
 callBehavior (string $behavior,...$args)
 
 callBehaviour (string $behaviour,...$args)
 
Post types URLs management
 getPostAdminURL (string $type, int|string $post_id, bool $escaped=true, array $params=[])
 
 getPostPublicURL (string $type, string $post_url, bool $escaped=true)
 
 setPostType (string $type, string $admin_url, string $public_url, string $label= '')
 
 getPostTypes ()
 
Versions management methods
 getVersion (string $module= 'core')
 
 getVersions ()
 
 setVersion (string $module, string $version)
 
 testVersion (string $module, string $version)
 
 newVersion (string $module, string $version)
 
 delVersion (string $module)
 
Users management methods
 getUser (string $id)
 
 getUsers ($params=[], bool $count_only=false)
 
 addUser (Cursor $cur)
 
 updUser (string $id, Cursor $cur)
 
 delUser (string $id)
 
 userExists (string $id)
 
 getUserPermissions (string $id)
 
 setUserPermissions (string $id, array $perms)
 
 setUserBlogPermissions (string $id, string $blog_id, array $perms, bool $delete_first=true)
 
 setUserDefaultBlog (string $id, string $blog_id)
 
 removeUsersDefaultBlogs (array $ids)
 
 userDefaults ()
 
Blog management methods
 getBlogPermissions (string $id, bool $with_super=true)
 
 getBlog (string $id)
 
 getBlogs ($params=[], bool $count_only=false)
 
 addBlog (Cursor $cur)
 
 updBlog (string $id, Cursor $cur)
 
 delBlog (string $id)
 
 blogExists (string $id)
 
 countBlogPosts (string $id, $type=null)
 
HTML Filter methods
 HTMLfilter (string $str)
 
WikiToHtml methods
 wikiTransform (string $str)
 
 initWikiPost ()
 
 initWikiSimpleComment ()
 
 initWikiComment ()
 
 wikiPostLink (string $url, string $content)
 
Maintenance methods
 blogDefaults (?array $defaults=null)
 
 indexAllPosts ($start=null, $limit=null)
 
 indexAllComments (?int $start=null,?int $limit=null)
 
 countAllComments ()
 
 emptyTemplatesCache ()
 
 enableRestServer (bool $serve=true)
 
 serveRestRequests ()
 

Static Public Member Functions

static app ()
 

Data Fields

const SESSION_TABLE_NAME = Session::SESSION_TABLE_NAME
 
const VERSION_TABLE_NAME = Version::VERSION_TABLE_NAME
 
readonly ConnectionInterface $con
 
readonly string $prefix
 
BlogInterface $blog
 
readonly AuthInterface $auth
 
readonly SessionInterface $session
 
readonly UrlInterface $url
 
readonly RestInterface $rest
 
 $wiki
 
 $wiki2xhtml
 
readonly ModulesInterface $plugins
 
 $themes
 
 $media
 
 $postmedia
 
readonly MetaInterface $meta
 
readonly ErrorInterface $error
 
readonly NoticeInterface $notices
 
readonly LogInterface $log
 
 $lang
 
 $autoload
 
Backend $admin
 
Dotclear Core Backend Url $adminurl
 
Dotclear Core Backend Favorites $favs
 
Dotclear Core Backend Menus $menu
 
 $resources = []
 
Frontend $public
 
Tpl $tpl
 
Ctx $ctx
 
 $cache
 
 $spamfilters = []
 
 $widgets
 

Static Private Attributes

static dcCore $instance
 

Detailed Description

Dotclear core class.

Deprecated:
dcCore is deprecated since 2.28, use App and their methods instead...

Constructor & Destructor Documentation

__construct ( )

dcCore constructor inits everything related to Dotclear.

References $resources, and Autoloader\me().

Here is the call graph for this function:

Member Function Documentation

static app ( )
static

Get dcCore singleton instance

Deprecated:
since 2.28, nothing to use instead
Returns
dcCore

Referenced by Utility\__construct(), Config\__construct(), Media\__construct(), dcProxyV2AdminBehaviors\adminBlogFilter(), dcProxyV2AdminBehaviors\adminBlogListHeader(), dcProxyV2AdminBehaviors\adminBlogListValue(), dcProxyV2AdminBehaviors\adminBlogPreferencesForm(), dcProxyV2AdminBehaviors\adminBlogsActionsPage(), dcProxyV2AdminBehaviors\adminColumnsLists(), dcProxyV2AdminBehaviors\adminCommentFilter(), dcProxyV2AdminBehaviors\adminCommentListHeader(), dcProxyV2AdminBehaviors\adminCommentListValue(), dcProxyV2AdminBehaviors\adminCommentsActions(), dcProxyV2AdminBehaviors\adminCommentsActionsPage(), dcProxyV2AdminBehaviors\adminCommentsSpamForm(), dcProxyV2AdminBehaviors\adminCurrentThemeDetails(), dcProxyV2AdminBehaviors\adminDashboardContents(), dcProxyV2AdminBehaviors\adminDashboardFavorites(), dcProxyV2AdminBehaviors\adminDashboardFavs(), dcProxyV2AdminBehaviors\adminDashboardFavsIcon(), dcProxyV2AdminBehaviors\adminDashboardItems(), dcProxyV2AdminBehaviors\adminDashboardOptionsForm(), dcProxyV2AdminBehaviors\adminFiltersLists(), dcProxyV2AdminBehaviors\adminMediaFilter(), dcProxyV2AdminBehaviors\adminPageFooter(), dcProxyV2AdminBehaviors\adminPagesActionsPage(), dcProxyV2AdminBehaviors\adminPagesListHeader(), dcProxyV2AdminBehaviors\adminPagesListValue(), dcProxyV2AdminBehaviors\adminPostFilter(), dcProxyV2AdminBehaviors\adminPostListHeader(), dcProxyV2AdminBehaviors\adminPostListValue(), dcProxyV2AdminBehaviors\adminPostMiniListHeader(), dcProxyV2AdminBehaviors\adminPostMiniListValue(), dcProxyV2AdminBehaviors\adminPostsActions(), dcProxyV2AdminBehaviors\adminPostsActionsPage(), dcProxyV2AdminBehaviors\adminPreferencesForm(), dcProxyV2AdminBehaviors\adminRteFlags(), dcProxyV2AdminBehaviors\adminSearchPageCombo(), dcProxyV2AdminBehaviors\adminSearchPageDisplay(), dcProxyV2AdminBehaviors\adminSearchPageHead(), dcProxyV2AdminBehaviors\adminSearchPageProcess(), dcProxyV2AdminBehaviors\adminUserFilter(), dcProxyV2AdminBehaviors\adminUserListHeader(), dcProxyV2AdminBehaviors\adminUserListValue(), dcProxyV2AdminBehaviors\adminUsersActions(), dcProxyV2AdminBehaviors\adminUsersActionsContent(), Utility\context(), dcProxyV2CoreBehaviors\coreBeforeLoadingNsFiles(), dcProxyV2CoreBehaviors\coreCommentSearch(), dcProxyV2CoreBehaviors\corePostSearch(), dcProxyV2AdminBehaviors\exportFull(), dcProxyV2AdminBehaviors\exportSingle(), Utility\favorites(), Resources\getDeprecated(), Notices\getNotices(), dcProxyV2AdminBehaviors\importExportModules(), dcProxyV2AdminBehaviors\importFull(), dcProxyV2AdminBehaviors\importInit(), dcProxyV2AdminBehaviors\importPrepareDC12(), dcProxyV2AdminBehaviors\importSingle(), Manage\init(), SpamFilters\init(), Widgets\init(), Antispam\initFilters(), Filter\initWiki(), Manage\listImportExportModules(), Blog\loadFromBlog(), Utility\menus(), dcProxyV2AdminBehaviors\pluginsToolsHeaders(), dcProxyV2AdminBehaviors\pluginsToolsTabs(), Utility\process(), dcProxyV2PublicBehaviors\publicAfterContentFilter(), dcProxyV2PublicBehaviors\publicAfterDocument(), dcProxyV2PublicBehaviors\publicBeforeContentFilter(), dcProxyV2PublicBehaviors\publicBeforeDocument(), dcProxyV2PublicBehaviors\publicBeforeReceiveTrackback(), dcProxyV2PublicBehaviors\publicContentFilter(), dcProxyV2PublicBehaviors\publicPrepend(), dcProxyV2AdminBehaviors\restCheckStoreUpdate(), Rest\serve(), Lang\setLang(), Tpl\SysBehavior(), Utility\template(), dcProxyV2PublicBehaviors\templateAfterBlock(), dcProxyV2PublicBehaviors\templateAfterValue(), dcProxyV2PublicBehaviors\templateBeforeBlock(), dcProxyV2PublicBehaviors\templateBeforeValue(), dcProxyV2PublicBehaviors\templateInsideBlock(), dcProxyV2AdminBehaviors\themesToolsHeaders(), dcProxyV2AdminBehaviors\themesToolsTabs(), dcProxyV2PublicBehaviors\tplAfterData(), dcProxyV2PublicBehaviors\tplBeforeData(), and Utility\url().

killAdminSession ( )

Kill admin session helper.

Deprecated:
since 2.28, use App::backend()->killAdminSession() instead
setBlog (   $id)

Sets the blog to use.

Deprecated:
since 2.28, use App::blog()->loadFromBlog() instead
Parameters
string$idThe blog ID
unsetBlog ( )

Unsets blog property.

Deprecated:
since 2.28, use App::blog()->loadFromBlog('') instead
getAllBlogStatus ( )

Gets all blog status.

Deprecated:
since 2.28, use App::blogs()->getAllBlogStatus() instead
Returns
array<int, string>
getBlogStatus ( int  $s)

Returns a blog status name given to a code.

Deprecated:
since 2.28, use App::blogs()->getBlogStatus() instead
Parameters
int$sStatus code
Returns
string
getNonce ( )

Gets the nonce.

Deprecated:
since 2.28, use App::nonce()->getNonce() instead
Returns
string
checkNonce ( string  $secret)

Check the nonce.

Deprecated:
since 2.28, use App::nonce()->checkNonce() instead
Parameters
string$secretThe nonce
Returns
bool
formNonce ( bool  $render = true)

Get the nonce HTML code.

Deprecated:
since 2.28, use App::nonce()->formNonce() or App::nonce()->getFormNonce()instead
Parameters
bool$renderShould render element?
Returns
mixed
addEditorFormater ( string  $editor_id,
string  $name,
  $func 
)

Adds a new text formater.

Deprecated:
since 2.28, use App::formater()->addEditorFormater() instead
Parameters
string$editor_idThe editor identifier (dcLegacyEditor, dcCKEditor, ...)
string$nameThe formater name
callable$funcThe function to use, must be a valid and callable callback
addFormater ( string  $name,
  $func 
)

Adds a new dcLegacyEditor text formater.

Deprecated:
since 2.28, use App::formater()->addEditorFormater('dcLegacyEditor', ...) instead
Parameters
string$nameThe formater name
callable$funcThe function to use, must be a valid and callable callback
addFormaterName ( string  $format,
string  $name 
)

Adds a formater name.

Deprecated:
since 2.28, use App::formater()->addFormaterName() instead
Parameters
string$formatThe format
string$nameThe name
getFormaterName ( string  $format)

Gets the formater name.

Deprecated:
since 2.28, use App::formater()->getFormaterName() instead
Parameters
string$formatThe format
Returns
string
getEditors ( )

Gets the editors list.

Deprecated:
since 2.28, use App::formater()->getEditors() instead
Returns
array<string, string>
getFormaters ( string  $editor_id = '')

Gets the formaters.

Deprecated:
since 2.28, use App::formater()->getFormaters() or App::formater()->getFormater(xxx) instead
Parameters
string$editor_idThe editor identifier (dcLegacyEditor, dcCKEditor, ...)
Returns
array<string, array<string>>|array<string>
callEditorFormater ( string  $editor_id,
string  $name,
string  $str 
)

Call editor formater.

Deprecated:
since 2.28, use App::formater()->callEditorFormater() instead
Parameters
string$editor_idThe editor identifier (dcLegacyEditor, dcCKEditor, ...)
string$nameThe formater name
string$strThe string to transform
Returns
string
callFormater ( string  $name,
string  $str 
)

Call formater.

Deprecated:
since 2.28, use App::formater()->callEditorFormater('dcLegacyEditor', ...) instead
Parameters
string$nameThe name
string$strThe string
Returns
string
addBehavior ( string  $behavior,
  $func 
)

Adds a new behavior to behaviors stack.

Deprecated:
since 2.28, use App::behavior()->addBehavior() instead
Parameters
string$behaviorThe behavior
callable$funcThe function
addBehaviour ( string  $behaviour,
  $func 
)

Adds a behaviour (alias).

Deprecated:
since 2.28, use App::behavior()->addBehavior() instead
Parameters
string$behaviourThe behaviour
callable$funcThe function
addBehaviors ( array  $behaviors)

Adds new behaviors to behaviors stack.

Deprecated:
since 2.28, use App::behavior()->addBehaviors() instead
Parameters
array<string|string,callable>$behaviors The behaviors
addBehaviours ( array  $behaviours)

Adds behaviours (alias).

Deprecated:
since 2.28, use App::behavior()->addBehaviors() instead
Parameters
array<string|string,callable>$behaviours The behaviours
hasBehavior ( string  $behavior)

Determines if behavior exists in behaviors stack.

Deprecated:
since 2.28, use App::behavior()->hasBehavior() instead
Parameters
string$behaviorThe behavior
Returns
bool
hasBehaviour ( string  $behaviour)

Determines if behaviour exists (alias).

Deprecated:
since 2.28, use App::behavior()->hasBehavior() instead
Parameters
string$behaviourThe behavior
Returns
bool
getBehaviors ( string  $behavior = '')

Gets the behaviors stack (or part of).

Deprecated:
since 2.28, use App::behavior()->getBehaviors() or App::behavior()->getBehavior()instead
Parameters
string$behaviorThe behavior
Returns
mixed
getBehaviours ( string  $behaviour = '')

Gets the behaviours stack (alias).

Deprecated:
since 2.28, use App::behavior()->getBehaviors() or App::behavior()->getBehavior() instead
Parameters
string$behaviourThe behaviour
Returns
mixed
callBehavior ( string  $behavior,
  $args 
)

Calls every function in behaviors stack for a given behavior and returns concatened result of each function.

Deprecated:
since 2.28, use App::behavior()->callBehavior() instead
Parameters
string$behaviorThe behavior
mixed...$args The arguments
Returns
mixed
callBehaviour ( string  $behaviour,
  $args 
)

Calls every function in behaviours stack (alias).

Deprecated:
since 2.28, use App::behavior()->callBehavior() instead
Parameters
string$behaviourThe behaviour
mixed...$args The arguments
Returns
mixed
getPostAdminURL ( string  $type,
int|string  $post_id,
bool  $escaped = true,
array  $params = [] 
)

Gets the post admin url.

Deprecated:
since 2.28, use App::postTypes()->get($type)->adminUrl() instead
Parameters
string$typeThe type
int | string$post_idThe post identifier
bool$escapedEscape the URL
array<string,mixed>$params The query string parameters (associative array)
Returns
string The post admin url.
getPostPublicURL ( string  $type,
string  $post_url,
bool  $escaped = true 
)

Gets the post public url.

Deprecated:
since 2.28, use App::postTypes()->get($type)->publicUrl() instead
Parameters
string$typeThe type
string$post_urlThe post url
bool$escapedEscape the URL
Returns
string The post public url.
setPostType ( string  $type,
string  $admin_url,
string  $public_url,
string  $label = '' 
)

Sets the post type.

Deprecated:
since 2.28, use App::postTypes()->set(new PostType()) instead
Parameters
string$typeThe type
string$admin_urlThe admin url
string$public_urlThe public url
string$labelThe label
getPostTypes ( )

Gets the post types.

Deprecated:
since 2.28, use App::postTypes()->dump() instead
Returns
array<string, array<string, string>> The post types.
getVersion ( string  $module = 'core')

Gets the version of a module.

Deprecated:
since 2.28, use App::version()->getVersion() instead
Parameters
string$moduleThe module
Returns
null|string
getVersions ( )

Gets all known versions.

Deprecated:
since 2.28, use App::version()->getVersions() instead
Returns
array<string, string>
setVersion ( string  $module,
string  $version 
)

Sets the version of a module.

Deprecated:
since 2.28, use App::version()->setVersion() instead
Parameters
string$moduleThe module
string$versionThe version
testVersion ( string  $module,
string  $version 
)

Compare the given version of a module with the registered one.

Deprecated:
since 2.28, use App::version()->compareVersion() instead
Parameters
string$moduleThe module
string$versionThe version
Returns
int
newVersion ( string  $module,
string  $version 
)

Test if a version is a new one.

Deprecated:
since 2.28, use App::version()->newerVersion() instead
Parameters
string$moduleThe module
string$versionThe version
Returns
bool
delVersion ( string  $module)

Remove a module version entry.

Deprecated:
since 2.28, use App::version()->unsetVersion() instead
Parameters
string$moduleThe module
getUser ( string  $id)

Gets the user by its ID.

Deprecated:
since 2.28, use App::users()->getUser() instead
Parameters
string$idThe identifier
Returns
MetaRecord
getUsers (   $params = [],
bool  $count_only = false 
)

Returns a users list.

Deprecated:
since 2.28, use App::users()->getUsers() instead
Parameters
array<string,mixed>|ArrayObject<string,mixed>$params The parameters
bool$count_onlyCount only results
Returns
MetaRecord
addUser ( Cursor  $cur)

Adds a new user.

Deprecated:
since 2.28, use App::users()->addUser() instead
Parameters
Cursor$curThe user Cursor
Exceptions
Exception
Returns
string
updUser ( string  $id,
Cursor  $cur 
)

Updates an existing user. Returns the user ID.

Deprecated:
since 2.28, use App::users()->updUser() instead
Parameters
string$idThe user identifier
Cursor$curThe Cursor
Exceptions
Exception
Returns
string
delUser ( string  $id)

Deletes a user.

Deprecated:
since 2.28, use App::users()->delUser() instead
Parameters
string$idThe user identifier
Exceptions
Exception
userExists ( string  $id)

Determines if user exists.

Deprecated:
since 2.28, use App::users()->userExists() instead
Parameters
string$idThe identifier
Returns
bool
getUserPermissions ( string  $id)

Returns all user permissions as an array.

Deprecated:
since 2.28, use App::users()->getUserPermissions() instead
Parameters
string$idThe user identifier
Returns
array<string,array<string,string|array<string,bool>>>
setUserPermissions ( string  $id,
array  $perms 
)

Sets user permissions.

Deprecated:
since 2.28, use App::users()->setUserPermissions() instead
Parameters
string$idThe user identifier
array<string,array<string,bool>>$perms The permissions
Exceptions
Exception
setUserBlogPermissions ( string  $id,
string  $blog_id,
array  $perms,
bool  $delete_first = true 
)

Sets the user blog permissions.

Deprecated:
since 2.28, use App::users()->setUserBlogPermissions() instead
Parameters
string$idThe user identifier
string$blog_idThe blog identifier
array<string,bool>$perms The permissions
bool$delete_firstDelete permissions first
Exceptions
Exception
setUserDefaultBlog ( string  $id,
string  $blog_id 
)

Sets the user default blog. This blog will be selected when user log in.

Deprecated:
since 2.28, use App::users()->setUserDefaultBlog() instead
Parameters
string$idThe user identifier
string$blog_idThe blog identifier
removeUsersDefaultBlogs ( array  $ids)

Removes users default blogs.

Deprecated:
since 2.28, use App::users()->removeUsersDefaultBlogs() instead
Parameters
array<int,int|string>$ids The blogs to remove
userDefaults ( )

Returns user default settings in an associative array with setting names in keys.

Deprecated:
since 2.28, use App::users()->userDefaults() instead
Returns
array<string,int|bool|array<string,string>|string>
getBlogPermissions ( string  $id,
bool  $with_super = true 
)

Returns all blog permissions (users) as an array.

Deprecated:
since 2.28, use App::blogs()->getBlogPermissions() instead
Parameters
string$idThe blog identifier
bool$with_superIncludes super admins in result
Returns
array<string, array<string, mixed>>
getBlog ( string  $id)

Gets the blog.

Deprecated:
since 2.28, use App::blogs()->getBlogPermissions() instead
Parameters
string$idThe blog identifier
Returns
MetaRecord|false
getBlogs (   $params = [],
bool  $count_only = false 
)

Returns a MetaRecord of blogs.

Deprecated:
since 2.28, use App::blogs()->getBlogs() instead
Parameters
array<string,mixed>|ArrayObject<string,mixed>$params The parameters
bool$count_onlyCount only results
Returns
MetaRecord
addBlog ( Cursor  $cur)

Adds a new blog.

Deprecated:
since 2.28, use App::blogs()->addBlog() instead
Parameters
Cursor$curThe blog Cursor
Exceptions
Exception
updBlog ( string  $id,
Cursor  $cur 
)

Updates a given blog.

Deprecated:
since 2.28, use App::blogs()->updBlog() instead
Parameters
string$idThe blog identifier
Cursor$curThe Cursor
delBlog ( string  $id)

Removes a given blog.

Deprecated:
since 2.28, use App::blogs()->delBlog() instead
Parameters
string$idThe blog identifier
Exceptions
Exception
blogExists ( string  $id)

Determines if blog exists.

Deprecated:
since 2.28, use App::blogs()->blogExists() instead
Parameters
string$idThe blog identifier
Returns
bool
countBlogPosts ( string  $id,
  $type = null 
)

Counts the number of blog posts.

Deprecated:
since 2.28, use App::blogs()->countBlogPosts() instead
Parameters
string$idThe blog identifier
null | string$typeThe post type
Returns
int
HTMLfilter ( string  $str)

Calls HTML filter to drop bad tags and produce valid HTML output.

Deprecated:
since 2.28, use App::filter()->HTMLfilter() instead
Parameters
string$strThe string
Returns
string
wikiTransform ( string  $str)

Returns a transformed string with WikiToHtml.

Deprecated:
since 2.28, use App::filter()->wikiTransform() instead
Parameters
string$strThe string
Returns
string
initWikiPost ( )

Inits wiki property for blog post.

Deprecated:
since 2.28, use App::filter()->initWikiPost() instead
initWikiSimpleComment ( )

Inits wiki property for simple blog comment (basic syntax).

Deprecated:
since 2.28, use App::filter()->initWikiSimpleComment() instead
initWikiComment ( )

Inits wiki property for blog comment.

Deprecated:
since 2.28, use App::filter()->initWikiComment() instead
wikiPostLink ( string  $url,
string  $content 
)

Get info about a post:id wiki macro.

Deprecated:
since 2.28, use App::filter()->wikiPostLink() instead
Parameters
string$urlThe post url
string$contentThe content
Returns
array<string, string>
blogDefaults ( ?array  $defaults = null)

Creates default settings for active blog.

Deprecated:
since 2.28, use Dotclear::blogDefault() instead
Parameters
null|array<array{0:string,1:string,2:mixed,3:string}>$defaults The defaults settings
indexAllPosts (   $start = null,
  $limit = null 
)

Recreates entries search engine index.

Deprecated:
since 2.28, permanently moved to plugin maintenance
Parameters
mixed$startThe start entry index
mixed$limitThe limit of entry to index
indexAllComments ( ?int  $start = null,
?int  $limit = null 
)

Recreates comments search engine index.

Deprecated:
since 2.28, permanently moved to plugin maintenance
Parameters
int$startThe start comment index
int$limitThe limit of comment to index
countAllComments ( )

Reinits nb_comment and nb_trackback in post table.

Deprecated:
since 2.28, permanently moved to plugin maintenance
emptyTemplatesCache ( )

Empty templates cache directory.

Deprecated:
since 2.28, use App::cache()->emptyTemplatesCache() instead
enableRestServer ( bool  $serve = true)

Serve or not the REST requests.

Deprecated:
since 2.28, use App::rest()->enableRestServer() instead
Parameters
bool$serveThe flag
serveRestRequests ( )

Check if we need to serve REST requests.

Deprecated:
since 2.28, use App::rest()->serveRestRequests() instead
Returns
bool

Field Documentation

const SESSION_TABLE_NAME = Session::SESSION_TABLE_NAME
const VERSION_TABLE_NAME = Version::VERSION_TABLE_NAME
dcCore $instance
staticprivate
readonly ConnectionInterface $con
readonly string $prefix
readonly AuthInterface $auth
readonly SessionInterface $session
readonly UrlInterface $url
readonly RestInterface $rest
$wiki
$wiki2xhtml
readonly ModulesInterface $plugins
$themes
$media
$postmedia
readonly MetaInterface $meta
readonly ErrorInterface $error
readonly NoticeInterface $notices
readonly LogInterface $log
$lang
$autoload
Backend $admin
Dotclear Core Backend Url $adminurl
Dotclear Core Backend Favorites $favs
Dotclear Core Backend Menus $menu
$resources = []

Referenced by __construct().

Frontend $public
Tpl $tpl
Ctx $ctx
$cache
Initial value:
= [
'mod_files' => []
$spamfilters = []
$widgets

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