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 contentcheck module

The policy functions of the contentcheck module (7) and their limitations.

Download as PDF

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

On this page

Policies of the contentcheck module

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

brokenrelations

Checked by the views: brokenrelations, fixfiles.

No limitations: the policy is all or nothing.

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

fixfiles

Checked by the views: fixfiles.

No limitations: the policy is all or nothing.

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

permissions

No view of the module names it; code checks it (eZUser::hasAccessTo( 'contentcheck', 'permissions' ) 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( 'contentcheck', 'permissions' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'contentcheck', 'function', 'permissions' ) )}
    ...
{/if}

quarantine

No view of the module names it; code checks it (eZUser::hasAccessTo( 'contentcheck', 'quarantine' ) 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( 'contentcheck', 'quarantine' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'contentcheck', 'function', 'quarantine' ) )}
    ...
{/if}

storage

Checked by the views: storage, storageaction.

No limitations: the policy is all or nothing.

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

trash

Checked by the views: 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( 'contentcheck', 'trash' );
{if fetch( 'user', 'has_access_to', hash( 'module', 'contentcheck', 'function', 'trash' ) )}
    ...
{/if}

unreferenced

Checked by the views: trash, unreferenced.

No limitations: the policy is all or nothing.

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

Generated by ./console exp:help:examples from kernel/contentcheck/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