Robots_Page.php 594 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. require_once(PATH::PAGE . 'Page.php');
  3. /**
  4. * robots.txt file page model.
  5. */
  6. class Robots_Page extends Page{
  7. /**
  8. * robots.txt contents
  9. */
  10. private $text = "User-agent: *\nDisallow:";
  11. /**
  12. * Constructor.
  13. *
  14. * Retrieves the data and populates the text.
  15. */
  16. public function __construct(){
  17. parent::__construct();
  18. $this->set_view('robots.php');
  19. }
  20. /**
  21. * Retrieves the text for the robots.txt file.
  22. *
  23. * @return string The text for the txt file.
  24. */
  25. public function get_text(){return $this->text;}
  26. }