Class JFilesystemPatcher
A Unified Diff Format Patcher class
Package: Joomla\Platform\FileSystem
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE
Since: 12.1
Link: This has been derived from the PhpPatcher version 0.1.1 written by Giuseppe Mazzotta
Located at joomla/filesystem/patcher.php
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE
Since: 12.1
Link: This has been derived from the PhpPatcher version 0.1.1 written by Giuseppe Mazzotta
Located at joomla/filesystem/patcher.php
Methods summary
protected
|
|
public static
|
|
public
|
|
public
integer
|
|
public
JFilesystemPatch
|
|
public
JFilesystemPatch
|
|
protected static
array
|
|
protected static
boolean
|
|
protected static
boolean
|
|
protected
|
|
protected
array
&
|
|
protected
array
&
|
Magic methods summary
Constants summary
string |
SRC_FILE
|
'/^---\\s+(\\S+)\s+\\d{1,4}-\\d{1,2}-\\d{1,2}\\s+\\d{1,2}:\\d{1,2}:\\d{1,2}(\\.\\d+)?\\s+(\+|-)\\d{4}/A' |
#
Regular expression for searching source files |
string |
DST_FILE
|
'/^\\+\\+\\+\\s+(\\S+)\s+\\d{1,4}-\\d{1,2}-\\d{1,2}\\s+\\d{1,2}:\\d{1,2}:\\d{1,2}(\\.\\d+)?\\s+(\+|-)\\d{4}/A' |
#
Regular expression for searching destination files |
string |
HUNK
|
'/@@ -(\\d+)(,(\\d+))?\\s+\\+(\\d+)(,(\\d+))?\\s+@@($)/A' |
#
Regular expression for searching hunks of differences |
string |
SPLIT
|
'/(\r\n)|(\r)|(\n)/' |
#
Regular expression for splitting lines |
Properties summary
protected
array
|
$sources |
#
sources files |
protected
array
|
$destinations |
#
destination files |
protected
array
|
$removals |
#
removal files |
protected
array
|
$patches |
#
patches |
protected static
array
|
$instance |
#
instance of this class |