\CMS_Precondition

Content management system conditions.

در بسیاری از موارد لایه نمایش تنها با در نظر گرفتن برخی پیش شرط‌ها قابل دسترسی است در این کلاس پیش شرطهای استاندارد تعریف شده است.

Summary

Methods
Properties
Constants
authorRequired()
isAuthor()
editorRequired()
isEditor()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

authorRequired()

authorRequired(  $request) : boolean|\Pluf_Exception_PermissionDenied

Check if the user is an author.

A user is author if he/she has one of the following permissions:

  • tenant.owner
  • cms.editor
  • cms.author

Parameters

$request

Returns

boolean|\Pluf_Exception_PermissionDenied

isAuthor()

isAuthor(  $request) : boolean

Check if the user is an author.

User is author if he/she has one of the following permissions:

  • tenant.owner
  • cms.editor
  • cms.author

Parameters

$request

Returns

boolean

editorRequired()

editorRequired(  $request) : boolean|\Pluf_Exception_PermissionDenied

Check if the user is an editor.

A user is editor if he/she has one of the following permissions:

  • tenant.owner
  • cms.editor

Parameters

$request

Returns

boolean|\Pluf_Exception_PermissionDenied

isEditor()

isEditor(  $request) : boolean

Check if the user is an editor.

User is editor if he/she has one of the following permissions:

  • tenant.owner
  • cms.editor

Parameters

$request

Returns

boolean