ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSubversionInformation Class Reference

Class ilSubversionInformation. More...

+ Inheritance diagram for ilSubversionInformation:
+ Collaboration diagram for ilSubversionInformation:

Public Member Functions

 getInformationAsHtml ()

Data Fields

const SVN_GET_17_FILE = '.svn/wc.db'
const SVN_LT_17_FILE = '.svn/entries'

Static Private Member Functions

static isSvnRevision ($revision)
static isProbablySubversion17 ()
static isProbablySubversionLower17 ()

Static Private Attributes

static $revision_information = null

Detailed Description

Member Function Documentation

ilSubversionInformation::getInformationAsHtml ( )
Returns
string

Implements ilVersionControlInformation.

Definition at line 157 of file class.ilSubversionInformation.php.

{
self::detect();
return implode("<br />", self::$revision_information);
}
static ilSubversionInformation::isProbablySubversion17 ( )
staticprivate
Returns
bool

Definition at line 39 of file class.ilSubversionInformation.php.

{
return file_exists(self::SVN_GET_17_FILE) && is_file(self::SVN_GET_17_FILE) && is_readable(self::SVN_GET_17_FILE);
}
static ilSubversionInformation::isProbablySubversionLower17 ( )
staticprivate
Returns
bool

Definition at line 47 of file class.ilSubversionInformation.php.

{
return file_exists(self::SVN_LT_17_FILE) && is_file(self::SVN_LT_17_FILE) && is_readable(self::SVN_LT_17_FILE);
}
static ilSubversionInformation::isSvnRevision (   $revision)
staticprivate
Parameters
$revision
Returns
bool

Definition at line 31 of file class.ilSubversionInformation.php.

{
return (bool)preg_match('/^\d+(:\d+)*[MSP]*$/', $revision);
}

Field Documentation

ilSubversionInformation::$revision_information = null
staticprivate

Definition at line 25 of file class.ilSubversionInformation.php.

const ilSubversionInformation::SVN_GET_17_FILE = '.svn/wc.db'

Definition at line 15 of file class.ilSubversionInformation.php.

const ilSubversionInformation::SVN_LT_17_FILE = '.svn/entries'

Definition at line 20 of file class.ilSubversionInformation.php.


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