Source for file SimpleIFrame.php

Documentation is available at SimpleIFrame.php

  1. <?php
  2.  
  3. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  4. // +-------------------------------------------------------------------+
  5. // | WiFiDog Authentication Server |
  6. // | ============================= |
  7. // | |
  8. // | The WiFiDog Authentication Server is part of the WiFiDog captive |
  9. // | portal suite. |
  10. // +-------------------------------------------------------------------+
  11. // | PHP version 5 required. |
  12. // +-------------------------------------------------------------------+
  13. // | Homepage: http://www.wifidog.org/ |
  14. // | Source Forge: http://sourceforge.net/projects/wifidog/ |
  15. // +-------------------------------------------------------------------+
  16. // | This program is free software; you can redistribute it and/or |
  17. // | modify it under the terms of the GNU General Public License as |
  18. // | published by the Free Software Foundation; either version 2 of |
  19. // | the License, or (at your option) any later version. |
  20. // | |
  21. // | This program is distributed in the hope that it will be useful, |
  22. // | but WITHOUT ANY WARRANTY; without even the implied warranty of |
  23. // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
  24. // | GNU General Public License for more details. |
  25. // | |
  26. // | You should have received a copy of the GNU General Public License |
  27. // | along with this program; if not, contact: |
  28. // | |
  29. // | Free Software Foundation Voice: +1-617-542-5942 |
  30. // | 59 Temple Place - Suite 330 Fax: +1-617-542-2652 |
  31. // | Boston, MA 02111-1307, USA gnu@gnu.org |
  32. // | |
  33. // +-------------------------------------------------------------------+
  34.  
  35. /**
  36. * @package WiFiDogAuthServer
  37. * @subpackage ContentClasses
  38. * @author Francois Proulx <francois.proulx@gmail.com>
  39. * @copyright 2005 Francois Proulx <francois.proulx@gmail.com> - Technologies
  40. * Coeus inc.
  41. * @version CVS: $Id: SimpleIFrame.php,v 1.4 2005/12/26 11:17:18 max-horvath Exp $
  42. * @link http://sourceforge.net/projects/wifidog/
  43. */
  44.  
  45. require_once BASEPATH.'classes/Content.php';
  46. error_reporting(E_ALL);
  47.  
  48. /**
  49. * A SimpleIFrame is an IFrame without all the fuss ( title, description ... )
  50. */
  51. class SimpleIFrame extends IFrame
  52. {
  53. /**Constructeur
  54. @param $content_id Content id
  55. */
  56. function __construct($content_id)
  57. {
  58. parent :: __construct($content_id);
  59. $this->setIsTrivialContent(true);
  60. $this->setIsPersistent(false);
  61. }
  62. /** Reloads the object from the database. Should normally be called after a set operation.
  63. * This function is private because calling it from a subclass will call the
  64. * constructor from the wrong scope */
  65.  
  66. private function refresh()
  67. {
  68. $this->__construct($this->id);
  69. }
  70. }
  71.  
  72. /*
  73. * Local variables:
  74. * tab-width: 4
  75. * c-basic-offset: 4
  76. * c-hanging-comment-ender-p: nil
  77. * End:
  78. */
  79.  
  80. ?>

Documentation generated on Mon, 26 Dec 2005 19:19:22 +0100 by phpDocumentor 1.3.0RC5