| 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 |
|
| 22 |
if ( !defined( 'ABSPATH' ) ) { |
| 23 |
exit; |
| 24 |
} |
| 25 |
|
| 26 |
/** |
| 27 |
* Capable interface OPM. |
| 28 |
*/ |
| 29 |
interface I_Capable { |
| 30 |
|
| 31 |
/** |
| 32 |
* Finds out if I have the given capability. |
| 33 |
* |
| 34 |
* @since 3.0.0 the optional $object parameter has been added (experimental) |
| 35 |
* @since 3.0.0 the optional $type parameter has been added (experimental) |
| 36 |
* |
| 37 |
* @param string|int $capability capability or capability id |
| 38 |
* @param mixed|null $object (experimental, declaration might change) |
| 39 |
* @param mixed|null $args (experimental, declaration might change) |
| 40 |
* |
| 41 |
* @return true if I can, otherwise false |
| 42 |
*/ |
| 43 |
public function can( $capability, $object = null, $args = null ); |
| 44 |
} |
| 45 |
|