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

The policy functions of the staticpublish module (4) and their limitations.

Download as PDF

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

On this page

Policies of the staticpublish module

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

build

Checked by the views: build.

LimitationValues come from
TargetexpStaticAdmin::limitationList()
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'staticpublish', 'build', array( 'Target' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'staticpublish', 'function', 'build' ) )}
    ...
{/if}

publish

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

LimitationValues come from
TargetexpStaticAdmin::limitationList()
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'staticpublish', 'publish', array( 'Target' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'staticpublish', 'function', 'publish' ) )}
    ...
{/if}

read

Checked by the views: dashboard, history, log, preview, serve, stream.

LimitationValues come from
TargetexpStaticAdmin::limitationList()
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'staticpublish', 'read', array( 'Target' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'staticpublish', 'function', 'read' ) )}
    ...
{/if}

setup

Checked by the views: keys, target.

LimitationValues come from
TargetexpStaticAdmin::limitationList()
// Give a role the policy (eZRole::appendPolicy( $module, $function, $limitations ))
$role = eZRole::fetchByName( 'Editor' );
$role->appendPolicy( 'staticpublish', 'setup', array( 'Target' => array( /* values */ ) ) );
{if fetch( 'user', 'has_access_to', hash( 'module', 'staticpublish', 'function', 'setup' ) )}
    ...
{/if}

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