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;
|
|
|
|
|
|
|
|
/**
|
2016-07-30 13:48:09 +00:00
|
|
|
* Can this user create topics in this forum?
|
2016-02-02 21:04:15 +00:00
|
|
|
*/
|
|
|
|
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;
|
|
|
|
|
|
|
|
/**
|
2016-07-30 13:48:09 +00:00
|
|
|
* Can this user change topics to the sticky type?
|
2016-02-02 21:04:15 +00:00
|
|
|
*/
|
|
|
|
const STICKY = 32;
|
|
|
|
|
|
|
|
/**
|
2016-07-30 13:48:09 +00:00
|
|
|
* Can this user change topics to the announcement type?
|
2016-02-02 21:04:15 +00:00
|
|
|
*/
|
|
|
|
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;
|
|
|
|
|
|
|
|
/**
|
2016-07-30 13:48:09 +00:00
|
|
|
* Can this user toggle the locked status on topics in this forum?
|
2016-02-02 21:04:15 +00:00
|
|
|
*/
|
|
|
|
const LOCK = 512;
|
|
|
|
|
|
|
|
/**
|
2016-07-30 13:48:09 +00:00
|
|
|
* Can this user move topics to other forums from/to this forum?
|
2016-02-02 21:04:15 +00:00
|
|
|
*/
|
|
|
|
const MOVE = 1024;
|
2015-12-29 01:27:49 +00:00
|
|
|
}
|