gyro/core/lib/interfaces/ipolicyholder.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Something with a polciy (bitflags) 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Interfaces 00007 */ 00008 interface IPolicyHolder { 00009 const NONE = 0; 00010 00011 /** 00012 * Return policy 00013 * 00014 * @return int 00015 */ 00016 public function get_policy(); 00017 00018 /** 00019 * Set policy 00020 * 00021 * @param int $policy 00022 */ 00023 public function set_policy($policy); 00024 00025 /** 00026 * Returns true, if client has given policy 00027 * 00028 * @param int $policy 00029 * @return bool 00030 */ 00031 public function has_policy($policy); 00032 }