Frame.php 533 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Frame superclass.
  4. *
  5. * Every dinamicaly loaded section must inherit from this one.
  6. */
  7. abstract class Frame{
  8. /**
  9. * Database connection.
  10. */
  11. public $db;
  12. /**
  13. * View associated with the page.
  14. */
  15. public $view;
  16. /**
  17. * Constructor.
  18. *
  19. * @param MySQL_connection $db Connection to the database.
  20. */
  21. public function __construct($db){
  22. $this->db = $db;
  23. }
  24. }
  25. ?>