This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/libraries/Perms/Forum.php

73 lines
1.2 KiB
PHP
Raw Normal View History

2015-12-29 01:27:49 +00:00
<?php
2016-02-03 22:22:56 +00:00
/**
* Holds the forum permission flags.
2016-03-08 23:07:58 +00:00
*
2016-02-03 22:22:56 +00:00
* @package Sakura
*/
2015-12-29 01:27:49 +00:00
namespace Sakura\Perms;
/**
2016-02-02 21:04:15 +00:00
* All forum permission flags.
2016-03-08 23:07:58 +00:00
*
2015-12-29 01:27:49 +00:00
* @package Sakura
2016-02-02 21:04:15 +00:00
* @author Julian van de Groep <me@flash.moe>
2015-12-29 01:27:49 +00:00
*/
class Forum
{
2016-02-02 21:04:15 +00:00
/**
* Can this user view/read this forum?
*/
const VIEW = 1;
/**
* Can this user post/reply in this forum?
*/
const REPLY = 2;
/**
* Can this user create threads in this forum?
*/
const CREATE_THREADS = 4;
/**
* Can this user edit their own posts?
*/
const EDIT_OWN = 8;
/**
* Can this user delete their own posts?
*/
const DELETE_OWN = 16;
/**
* Can this user change threads to the sticky type?
*/
const STICKY = 32;
/**
* Can this user change threads to the announcement type?
*/
const ANNOUNCEMENT = 64;
/**
* Can this user edit any post in this forum?
*/
const EDIT_ANY = 128;
/**
* Can this user delete any post in this forum?
*/
const DELETE_ANY = 256;
/**
* Can this user toggle the locked status on threads in this forum?
*/
const LOCK = 512;
/**
* Can this user move threads to other forums from/to this forum?
*/
const MOVE = 1024;
2015-12-29 01:27:49 +00:00
}