Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 522233 программиста и 2312 роботов. Сейчас ищут 2905 программистов ...
HaruDoc::setPermission - Set permissions for the document
Вернуться к: HaruDoc
HaruDoc::setPermission
(PECL haru >= 0.0.1)
HaruDoc::setPermission — Set permissions for the document
Описание
bool HaruDoc::setPermission
( int
$permission
)Defines permissions for the document.
Список параметров
-
permission -
The values is a combination of these flags:
-
HaruDoc::ENABLE_READ- user can read the document. -
HaruDoc::ENABLE_PRINT- user can print the document. -
HaruDoc::ENABLE_EDIT_ALL- user can edit the contents of the document other than annotations and form fields. -
HaruDoc::ENABLE_COPY- user can copy the text and the graphics of the document. -
HaruDoc::ENABLE_EDIT- user can add or modify the annotations and form fields of the document.
-
Возвращаемые значения
Returns TRUE on success.
Ошибки
Вызывает исключение HaruException при ошибке.
Смотрите также
- HaruDoc::setPassword() - Set owner and user passwords for the document
- HaruDoc::setEncryptionMode() - Set encryption mode for the document
Вернуться к: HaruDoc