.

RobotsController Class Reference
[Robots]

Replaces robots.txt with a view. More...

Inheritance diagram for RobotsController:
ControllerBase IController IEventSink

List of all members.

Public Member Functions

  action_robots_txt (PageData $page_data)
  Render robots.txt.
  get_routes ()
  Return array of Route instances which are handled by this controller.

Detailed Description

Replaces robots.txt with a view.

Author:
Gerd Riesselmann

Definition at line 17 of file robots.controller.php.


Member Function Documentation

RobotsController::action_robots_txt ( PageData page_data  ) 

Render robots.txt.

Parameters:
PageData  $page_data
Returns:
void

Definition at line 35 of file robots.controller.php.

00035                                                                {
00036                 $view = ViewFactory::create_view(ViewFactoryMime::MIME, 'robots.txt', $page_data);
00037                 $view->assign(MimeView::MIMETYPE, 'text/plain');
00038                 $view->render();                
00039         }       
RobotsController::get_routes (  ) 

Return array of Route instances which are handled by this controller.

Returns:
array Array of Routes

Reimplemented from ControllerBase.

Definition at line 23 of file robots.controller.php.

00023                                      {
00024                 return array(
00025                         new ExactMatchRoute('robots.txt', $this, 'robots_txt'),
00026                 );              
00027         }

The documentation for this class was generated from the following file: