| 1 |
<?php |
| 2 |
/** |
| 3 |
* interface-i-capable.php |
| 4 |
* |
| 5 |
* Copyright (c) "kento" Karim Rahimpur www.itthinx.com |
| 6 |
* |
| 7 |
* This code is released under the GNU General Public License. |
| 8 |
* See COPYRIGHT.txt and LICENSE.txt. |
| 9 |
* |
| 10 |
* This code is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU General Public License for more details. |
| 14 |
* |
| 15 |
* This header and all notices must be kept intact. |
| 16 |
* |
| 17 |
* @author Karim Rahimpur |
| 18 |
* @package groups |
| 19 |
* @since groups 1.0.0 |
| 20 |
*/ |
| 21 |
interface I_Capable { |
| 22 |
|
| 23 |
/** |
| 24 |
* Finds out if I have the given capability. |
| 25 |
* |
| 26 |
* @param string|int $capability capability or capability id |
| 27 |
* @return true if I can, otherwise false |
| 28 |
*/ |
| 29 |
public function can( $capability ); |
| 30 |
} |