PHP 클래스 Chora, horde

Copyright 2000-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
저자: Anil Madhavapeddy ([email protected])
저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$fdcache string Cached data for formatDate().
$restricted array Cached data for isRestricted().
$rtcache array Cached data for readableTime().

공개 메소드들

메소드 설명
checkPerms ( $key ) TODO
fatal ( string $message, string $code = null ) Output an error page.
formInputs ( ) : string Generates hidden form fields with all required parameters.
formatDate ( integer $date ) : string Return formatted date information.
formatLogMessage ( string $log ) : string Formats a log message.
getAuthorEmail ( $name )
getFileViews ( string $where, string $rev ) : array Generate the link used for various file views.
getHistoryViews ( string $where ) : array Generate the link used for various history views.
getTags ( Horde_Vcs_Log $lg, string $where ) : array Return a list of tags for a given log entry.
header ( string $title ) Generates and prints the page header.
isRestricted ( string $where ) : boolean Check if the given item is restricted from being shown.
pretty ( string $mime_type, resource $fp ) : mixed Pretty-print the checked out copy, using Horde_Mime_Viewer.
readableTime ( integer $date, boolean $long = false ) : string Return a text description of how long its been since the file has been last modified.
showAuthorName ( string $name, $fullname = false ) : string Convert a commit-name into whatever the user wants.
sourceroots ( ) : array Returns the entries of $sourceroots that the current user has access to.
url ( string $script, string $uri = '', array $args = [], string $anchor = '' ) : string Generate a URL that links into Chora.
whereMenu ( string $where, string $onb = null ) : string Create the breadcrumb directory listing.

보호된 메소드들

메소드 설명
_getArgList ( $acts, $defaultActs, $args ) TODO

메소드 상세

_getArgList() 보호된 정적인 메소드

TODO
protected static _getArgList ( $acts, $defaultActs, $args )

checkPerms() 공개 정적인 메소드

TODO
public static checkPerms ( $key )

fatal() 공개 정적인 메소드

Output an error page.
public static fatal ( string $message, string $code = null )
$message string The verbose error message to be displayed.
$code string The HTTP error number (and optional text), for sending 404s or other codes if appropriate.

formInputs() 공개 정적인 메소드

Generates hidden form fields with all required parameters.
public static formInputs ( ) : string
리턴 string The form fields, with session information if necessary.

formatDate() 공개 정적인 메소드

Return formatted date information.
public static formatDate ( integer $date ) : string
$date integer Number of seconds since epoch we wish to display.
리턴 string The date formatted pursuant to Horde prefs.

formatLogMessage() 공개 정적인 메소드

Formats a log message.
public static formatLogMessage ( string $log ) : string
$log string The log message text.
리턴 string The formatted message.

getAuthorEmail() 공개 정적인 메소드

public static getAuthorEmail ( $name )

getFileViews() 공개 정적인 메소드

Generate the link used for various file views.
public static getFileViews ( string $where, string $rev ) : array
$where string The current file path.
$rev string The current revision.
리턴 array An array of file view links.

getHistoryViews() 공개 정적인 메소드

Generate the link used for various history views.
public static getHistoryViews ( string $where ) : array
$where string The current file path.
리턴 array An array of file view links.

getTags() 공개 정적인 메소드

Return a list of tags for a given log entry.
public static getTags ( Horde_Vcs_Log $lg, string $where ) : array
$lg Horde_Vcs_Log The Horde_Vcs_Log object.
$where string The current filepath.
리턴 array An array of linked tags.

header() 공개 정적인 메소드

Generates and prints the page header.
public static header ( string $title )
$title string The page title.

isRestricted() 공개 정적인 메소드

Check if the given item is restricted from being shown.
public static isRestricted ( string $where ) : boolean
$where string The current file path.
리턴 boolean Is item allowed to be displayed?

pretty() 공개 정적인 메소드

Pretty-print the checked out copy, using Horde_Mime_Viewer.
public static pretty ( string $mime_type, resource $fp ) : mixed
$mime_type string File extension of the checked out file.
$fp resource File pointer to the head of the checked out copy.
리턴 mixed The Horde_Mime_Viewer object which can be rendered or false on failure.

readableTime() 공개 정적인 메소드

Return a text description of how long its been since the file has been last modified.
public static readableTime ( integer $date, boolean $long = false ) : string
$date integer Number of seconds since epoch we wish to display.
$long boolean If true, display a more verbose date.
리턴 string The human-readable date.

showAuthorName() 공개 정적인 메소드

Convert a commit-name into whatever the user wants.
public static showAuthorName ( string $name, $fullname = false ) : string
$name string Account name.
리턴 string The transformed name.

sourceroots() 공개 정적인 메소드

Returns the entries of $sourceroots that the current user has access to.
public static sourceroots ( ) : array
리턴 array The sourceroots that the current user has access to.

url() 공개 정적인 메소드

Generate a URL that links into Chora.
public static url ( string $script, string $uri = '', array $args = [], string $anchor = '' ) : string
$script string Name of the Chora script to link into.
$uri string The path being browsed.
$args array Key/value pair of any GET parameters to append.
$anchor string Anchor entity name.
리턴 string The URL, with session information if necessary.

whereMenu() 공개 정적인 메소드

Create the breadcrumb directory listing.
public static whereMenu ( string $where, string $onb = null ) : string
$where string The current filepath.
$onb string If not null, the branch to add to the generated URLs.
리턴 string The directory string.

프로퍼티 상세

$fdcache 공개적으로 정적으로 프로퍼티

Cached data for formatDate().
public static string $fdcache
리턴 string

$restricted 공개적으로 정적으로 프로퍼티

Cached data for isRestricted().
public static array $restricted
리턴 array

$rtcache 공개적으로 정적으로 프로퍼티

Cached data for readableTime().
public static array $rtcache
리턴 array