Source for file ViewInterface.php

Documentation is available at ViewInterface.php

  1. <?php
  2.  
  3. /**
  4. * MVCnPHP - BaseView.class.php
  5. *
  6. * This source file is subject to version 2.02 of the PHP license,
  7. * that is bundled with this package in the file LICENSE, and is
  8. * available at through the world-wide-web at
  9. * http://www.php.net/license/2_02.txt.
  10. * If you did not receive a copy of the PHP license and are unable to
  11. * obtain it through the world-wide-web, please send a note to
  12. * license@php.net so we can mail you a copy immediately.
  13. *
  14. * @author Tony Bibbs <tony@geeklog.net>
  15. * @copyright Tony Bibbs 2003
  16. * @package net.geeklog.mvc
  17. * @version $Id: BaseView.class.php,v 1.2 2003/08/28 01:31:22 tony Exp $
  18. *
  19. */
  20.  
  21. /**
  22. * Interface class for views
  23. *
  24. * @author Tony Bibbs <tony@geeklog.net>
  25. * @package net.geeklog.mvc
  26. *
  27. */
  28. interface MVCnPHP_ViewInterface {
  29. /**
  30. * Returns if view should be printed
  31. *
  32. * View can be printed using echo or returned as a string.
  33. * This method is a tool used by the controller to determine
  34. * if it needs to return a string or not
  35. *
  36. * @author Tony Bibbs <tony@geeklog.net>
  37. * @access public
  38. * @return boolean True if view is printed, otherwise false
  39. *
  40. */
  41. public function printView();
  42. /**
  43. /**
  44. * Sets views output method
  45. *
  46. * View can either be printed immediately using PHP's
  47. * echo command or the view can be returned as a string
  48. *
  49. * @author Tony Bibbs <tony@geeklog.net>
  50. * @access public
  51. * @param int $method One of two constanst, _PRINT or _STRING
  52. *
  53. */
  54. public function setOutputMethod($method);
  55. /**
  56. /**
  57. * Renders a view in either printed HTML or
  58. * as an HTML string back to caller
  59. *
  60. * @author Tony Bibbs <tony AT geeklog DOT>
  61. * @access public
  62. * @return string OPTIONAL: not always returned
  63. *
  64. */
  65. public function getView();
  66.  
  67.  
  68. ?>

Documentation generated on Mon, 7 Mar 2005 22:36:23 -0600 by phpDocumentor 1.3.0RC3