Phly Documentation Phly
Phly_Darcs
[ return to channel ] [ class tree: Phly ] [ index: Phly ] [ all elements ]

Class: Phly_Darcs_Controller

Source Location: /Phly_Darcs/Phly/Darcs/Controller.php

Class Phly_Darcs_Controller

Class Overview

Darcs repository browsing class

Located in /Phly_Darcs/Phly/Darcs/Controller.php [line 50]

Cgiapp2
   |
   --Phly_Darcs_Controller
Author(s): Information Tags:
Version:  $Id: Phly_Darcs_Controller.html 71 2007-05-12 20:54:24Z matthew $
License:  BSD
Copyright:  2006 - Present, Matthew Weier O'Phinney
Todo:  Ability to PUT to repository
[ Top ]
Property Summary
Phly_Config   $config   Phly_Config object

[ Top ]
Method Summary
string   annotate()   Show annotations for a file
string   browseRepo()   Browse a repository
void   cgiapp_init()   Pre-run initialization
void   cgiapp_prerun()   Prerun
string   listRepos()   List available repositories
void   setup()  
string   showDiff()   Show a diff for a file
string   showError()   Handle and display errors
string   showPatches()   Show patches for a file
string   showRss()   Show an RSS feed of changes
string   _getRqPath()   Determine the request path

[ Top ]
Properties
Phly_Config   $config [line 57]

Phly_Config object

API Tags:
Access:  public


[ Top ]
Methods
annotate  [line 286]

  string annotate( )

Show annotations for a file


API Tags:
Access:  public


[ Top ]
browseRepo  [line 272]

  string browseRepo( )

Browse a repository


API Tags:
Access:  public


[ Top ]
cgiapp_init  [line 68]

  void cgiapp_init( mixed $args, Cgiapp2 $cgiapp  )

Pre-run initialization

Loads configuration from file specified in 'darcs_config' Cgiapp param.

Parameters:
Cgiapp2   $cgiapp: 

API Tags:
Access:  public


[ Top ]
cgiapp_prerun  [line 144]

  void cgiapp_prerun( mixed $rm, Cgiapp2 $cgiapp  )

Prerun

Check for presence of certain items, and forward as necessary on absence.

Parameters:
mixed   $rm: 
Cgiapp2   $cgiapp: 

API Tags:
Access:  public


[ Top ]
listRepos  [line 234]

  string listRepos( )

List available repositories

Creates an XML list of repository directories and passes it on to the xslt processor to process.


API Tags:
Access:  public


[ Top ]
setup  [line 82]

  void setup( )


API Tags:
Access:  public


[ Top ]
showDiff  [line 325]

  string showDiff( )

Show a diff for a file


API Tags:
Access:  public


[ Top ]
showError  [line 117]

  string showError( mixed $e  )

Handle and display errors

Parameters:
mixed   $e: 

API Tags:
Access:  public


[ Top ]
showPatches  [line 309]

  string showPatches( )

Show patches for a file


API Tags:
Access:  public


[ Top ]
showRss  [line 358]

  string showRss( )

Show an RSS feed of changes


API Tags:
Access:  public


[ Top ]
_getRqPath  [line 246]

  string _getRqPath( )

Determine the request path


API Tags:
Access:  protected


[ Top ]