Source for file Policy.php

Documentation is available at Policy.php

  1. <?php
  2. /** 
  3.  * Policy.php
  4.  *
  5.  * PHP version 5
  6.  *
  7.  * LICENSE: This program is free software; you can redistribute it and/or
  8.  * modify it under the terms of the GNU General Public License as published
  9.  * by the Free Software Foundation.
  10.  * 
  11.  * @package            FreeNAC
  12.  * @author            Thomas Seiler (contributer)
  13.  * @copyright            2007 FreeNAC
  14.  * @license            http://www.gnu.org/copyleft/gpl.html   GNU Public License Version 2
  15.  * @version            SVN: $Id$
  16.  * @link            http://www.freenac.net
  17.  *
  18.  */
  19.  
  20. /**
  21.  * Base Policy class
  22.  * This is the basic policy implementation
  23.  * The real policy implementation can override what happens by simply
  24.  * providing an implementation of the pre and post connect methods.
  25.  * This class extends the {@link Common} class.
  26. */
  27. class Policy extends Common {
  28.    /**
  29.    * Default policy is to deny everything
  30.    * @throws     Deny
  31.    */
  32.    public function preconnect({
  33.       DENY();
  34.    }
  35.     
  36.    /**
  37.    * Default policy is to deny everything
  38.    * @throws    Deny
  39.    */
  40.    public function postconnect({
  41.       DENY();
  42.    }
  43. }
  44.  
  45. ?>

Documentation generated on Mon, 17 Nov 2008 01:10:43 +0100 by phpDocumentor 1.4.0