Given a return object from a VC:: call, make sure that it's not a PEAR_Error object.
void
checkError
(mixed $e)
-
mixed
$e: Return object from a VC:: call.
Output an error page.
void
fatal
(string $errcode, string $errmsg)
-
string
$errcode: The HTTP error number and text.
-
string
$errmsg: The verbose error message to be displayed.
Return formatted date information.
string
formatDate
(integer $date)
-
integer
$date: Number of seconds since epoch we wish to display.
void
formatLogMessage
( $log)
Generates hidden form fields with all required parameters.
string
formInputs
([array $args = array()])
-
array
$args: Key/value pair of any POST parameters to append
Return branch information for a given revision.
array
getBranch
(VC_File $fl, string $rev)
-
VC_File
$fl: The VC_File object.
-
string
$rev: The filename.
Build Chora's list of menu items.
void
getMenu
([ $returnType = 'object'])
Create a range of revisions between two revision numbers.
array
getRevisionRange
(string $r1, string $r2)
-
string
$r1: The initial revision.
-
string
$r2: The ending revision.
Return a list of tags for a given log entry.
array
getTags
(VC_Log_* $lg, string $where)
-
VC_Log_*
$lg: The VC_Log object.
-
string
$where: The filename.
Initialize global variables and objects.
void
initialize
()
Check if the given item is restricted from being shown.
boolean
isRestricted
( $item)
Pretty-print the checked out copy, using the Horde::Mime::Viewer package.
object The
&pretty
(string $mime_type, resource $fp)
-
string
$mime_type: File extension of the checked out file
-
resource
$fp: fp File pointer to the head of the checked out copy
Return a text description of how long its been since the file has been last modified.
string
readableTime
(integer $date, [boolean $long = false])
-
integer
$date: Number of seconds since epoch we wish to display.
-
boolean
$long: If true, display a more verbose date.
Generate a list of repositories available from this installation of Chora.
string
repositories
()
Convert a commit-name into whatever the user wants.
string
showAuthorName
(string $name, [ $fullname = false])
-
string
$name: Account name.
-
$fullname
Returns the entries of $sourceroots that the current user has access to.
array
sourceroots
()
Generate a URL that links into Chora.
string
url
([string $script = ''], [string $uri = ''], [array $args = array()], [string $anchor = ''])
-
string
$script: Name of the Chora script to link into
-
string
$uri: The path being browsed.
-
array
$args: Key/value pair of any GET parameters to append
-
string
$anchor: Anchor entity name