ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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

◆ getInformationAsHtml()

ilSubversionInformation::getInformationAsHtml ( )
Returns
string

Implements ilVersionControlInformation.

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

158  {
159  self::detect();
160 
161  return implode("<br />", self::$revision_information);
162  }

◆ isProbablySubversion17()

static ilSubversionInformation::isProbablySubversion17 ( )
staticprivate
Returns
bool

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

40  {
41  return file_exists(self::SVN_GET_17_FILE) && is_file(self::SVN_GET_17_FILE) && is_readable(self::SVN_GET_17_FILE);
42  }

◆ isProbablySubversionLower17()

static ilSubversionInformation::isProbablySubversionLower17 ( )
staticprivate
Returns
bool

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

References $info, $lng, $path, $result, $row, array, and file.

48  {
49  return file_exists(self::SVN_LT_17_FILE) && is_file(self::SVN_LT_17_FILE) && is_readable(self::SVN_LT_17_FILE);
50  }

◆ isSvnRevision()

static ilSubversionInformation::isSvnRevision (   $revision)
staticprivate
Parameters
$revision
Returns
bool

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

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

Field Documentation

◆ $revision_information

ilSubversionInformation::$revision_information = null
staticprivate

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

◆ SVN_GET_17_FILE

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

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

◆ SVN_LT_17_FILE

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: