Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Policies of the content module

The policy functions of the content module (27) and their limitations.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/policies/content.md

On this page

Policies of the content module

The policy functions of content and their limitations, from $FunctionList in kernel/content/module.php. In the administration they are chosen under Roles and policies; a policy on content/* grants every function.

Some functions also take one limitation per object state group of the site, named StateGroup_<group identifier> (eZContentObjectStateGroup::limitations(), read from the database, so not listed below).

bookmark

Checked by the views: bookmark.

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'bookmark' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'bookmark' ) )}
    ...
{/if}

cleantrash

No view of the module names it; code checks it (eZUser::hasAccessTo( 'content', 'cleantrash' ) or the user/has_access_to fetch).

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'cleantrash' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'cleantrash' ) )}
    ...
{/if}

create

Checked by the views: copysubtree, edit, upload.

LimitationValues come from
ClasseZContentClass::fetchList()
LanguageeZContentLanguage::fetchLimitationList()
Node
ParentClasseZContentClass::fetchList()
ParentDeptheZContentObjectTreeNode::parentDepthLimitationList()
ParentGroupfixed: Self (1)
ParentOwnerfixed: Self (1), Self or anonymous users per HTTP session (2)
SectioneZSection::fetchList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'create', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'create' ) )}
    ...
{/if}

dashboard

Checked by the views: dashboard.

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'dashboard' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'dashboard' ) )}
    ...
{/if}

diff

No view of the module names it; code checks it (eZUser::hasAccessTo( 'content', 'diff' ) or the user/has_access_to fetch).

LimitationValues come from
ClasseZContentClass::fetchList()
Node
Ownerfixed: Self (1)
SectioneZSection::fetchList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'diff', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'diff' ) )}
    ...
{/if}

edit

Checked by the views: draft, edit, history, move, multiedit, queued, removeassignment, removenode, urlalias.

LimitationValues come from
ClasseZContentClass::fetchList()
Groupfixed: Self (1)
LanguageeZContentLanguage::fetchLimitationList()
Node
Ownerfixed: Self (1), Self or anonymous users per HTTP session (2)
SectioneZSection::fetchList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'edit', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'edit' ) )}
    ...
{/if}

hide

Checked by the views: hide.

LimitationValues come from
ClasseZContentClass::fetchList()
Groupfixed: Self (1)
LanguageeZContentLanguage::fetchLimitationList()
Node
Ownerfixed: Self (1), Self or anonymous users per HTTP session (2)
SectioneZSection::fetchList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'hide', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'hide' ) )}
    ...
{/if}

jobs

No view of the module names it; code checks it (eZUser::hasAccessTo( 'content', 'jobs' ) or the user/has_access_to fetch).

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'jobs' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'jobs' ) )}
    ...
{/if}

manage_locations

No view of the module names it; code checks it (eZUser::hasAccessTo( 'content', 'manage_locations' ) or the user/has_access_to fetch).

LimitationValues come from
ClasseZContentClass::fetchList()
Ownerfixed: Self (1)
SectioneZSection::fetchList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'manage_locations', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'manage_locations' ) )}
    ...
{/if}

move

No view of the module names it; code checks it (eZUser::hasAccessTo( 'content', 'move' ) or the user/has_access_to fetch).

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'move' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'move' ) )}
    ...
{/if}

pdf

Checked by the views: pdf.

LimitationValues come from
ClasseZContentClass::fetchList()
Node
Ownerfixed: Self (1)
SectioneZSection::fetchList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'pdf', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'pdf' ) )}
    ...
{/if}

pendinglist

Checked by the views: pendinglist.

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'pendinglist' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'pendinglist' ) )}
    ...
{/if}

publish

No view of the module names it; code checks it (eZUser::hasAccessTo( 'content', 'publish' ) or the user/has_access_to fetch).

LimitationValues come from
ClasseZContentClass::fetchList()
Groupfixed: Self (1)
LanguageeZContentLanguage::fetchLimitationList()
Node
Ownerfixed: Self (1), Self or anonymous users per HTTP session (2)
SectioneZSection::fetchList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'publish', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'publish' ) )}
    ...
{/if}

publish_without_notification

No view of the module names it; code checks it (eZUser::hasAccessTo( 'content', 'publish_without_notification' ) or the user/has_access_to fetch).

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'publish_without_notification' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'publish_without_notification' ) )}
    ...
{/if}

read

Checked by the views: action, advancedsearch, browse, collectedinfo, collectinformation, copy, download, history, job, jobs, keyword, new, removeeditversion, removemediaobject, removeobject, removeuserobject, search, sharedpreview, sitesuggest, subitemsexport, suggest, tipafriend, translation, treemenu, view.

LimitationValues come from
ClasseZContentClass::fetchList()
Groupfixed: Self (1)
Node
Ownerfixed: Self (1)
SectioneZSection::fetchList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'read', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'read' ) )}
    ...
{/if}

remove

No view of the module names it; code checks it (eZUser::hasAccessTo( 'content', 'remove' ) or the user/has_access_to fetch).

LimitationValues come from
ClasseZContentClass::fetchList()
Node
Ownerfixed: Self (1)
SectioneZSection::fetchList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'remove', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'remove' ) )}
    ...
{/if}

restore

Checked by the views: restore, trash.

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'restore' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'restore' ) )}
    ...
{/if}

reverserelatedlist

Checked by the views: reverserelatedlist.

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'reverserelatedlist' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'reverserelatedlist' ) )}
    ...
{/if}

tipafriend

Checked by the views: tipafriend.

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'tipafriend' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'tipafriend' ) )}
    ...
{/if}

translate

No view of the module names it; code checks it (eZUser::hasAccessTo( 'content', 'translate' ) or the user/has_access_to fetch).

LimitationValues come from
ClasseZContentClass::fetchList()
LanguageeZContentLanguage::fetchLimitationList()
Node
Ownerfixed: Self (1)
SectioneZSection::fetchList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'translate', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'translate' ) )}
    ...
{/if}

translations

Checked by the views: translations.

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'translations' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'translations' ) )}
    ...
{/if}

urltranslator

Checked by the views: urlexport, urlredirects, urltranslator, urlwildcards.

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'urltranslator' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'urltranslator' ) )}
    ...
{/if}

urltranslator_import

Checked by the views: urlimport, urlimporthistory.

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'urltranslator_import' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'urltranslator_import' ) )}
    ...
{/if}

versionread

Checked by the views: versionview.

LimitationValues come from
ClasseZContentClass::fetchList()
Node
Ownerfixed: Self (1)
SectioneZSection::fetchList()
StatuseZContentObjectVersion::statusList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'versionread', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'versionread' ) )}
    ...
{/if}

versionremove

No view of the module names it; code checks it (eZUser::hasAccessTo( 'content', 'versionremove' ) or the user/has_access_to fetch).

LimitationValues come from
ClasseZContentClass::fetchList()
Node
Ownerfixed: Self (1)
SectioneZSection::fetchList()
StatuseZContentObjectVersion::statusList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'versionremove', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'versionremove' ) )}
    ...
{/if}

view_embed

No view of the module names it; code checks it (eZUser::hasAccessTo( 'content', 'view_embed' ) or the user/has_access_to fetch).

LimitationValues come from
ClasseZContentClass::fetchList()
Node
Ownerfixed: Self (1)
SectioneZSection::fetchList()
Subtree
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'view_embed', array( 'Class' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'view_embed' ) )}
    ...
{/if}

view_system_url

No view of the module names it; code checks it (eZUser::hasAccessTo( 'content', 'view_system_url' ) or the user/has_access_to fetch).

No limitations: the policy is all or nothing.

// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'content', 'view_system_url' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'content', 'function', 'view_system_url' ) )}
    ...
{/if}

Generated by ./console exp:help:examples from kernel/content/module.php, kernel/classes/ezrole.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x