DocumentPermissions
public class DocumentPermissions
Method Summary | |
---|---|
void | __construct(mixed p) Creates an instance of this class. |
void | Returns, if an Document may be edited. |
void | Returns, if history of an Document may be viewed. |
void | Returns, if an Document may be read. |
void | Returns, if source of an Document may be viewed. |
public void __construct(mixed p)
Creates an instance of this class. @param $p Permission string.
public void allowEdit()
Returns, if an Document may be edited. @return TRUE, if edit operations are permitted.
public void allowHistory()
Returns, if history of an Document may be viewed. @return TRUE, if history operations are permitted.
public void allowRead()
Returns, if an Document may be read. @return TRUE, if read operations are permitted.
public void allowSource()
Returns, if source of an Document may be viewed. @return TRUE, if source operations are permitted.
This class holds permissions on an Document for a user group.