PHP Class iaPatchApplier

Subrion - open source content management system Copyright (C) 2015 Intelliants, LLC This file is part of Subrion. Subrion is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Subrion is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Subrion. If not, see .
显示文件 Open project: intelliants/subrion Class Usage Examples

Protected Properties

Property Type Description
$_dbConnectionParams
$_forceMode
$_scriptRoot

Public Methods

Method Description
__construct ( $scriptRoot, $dbConnectionParams = null, $forceMode = false )
getLog ( )
process ( $patch, $version )

Protected Methods

Method Description
_dbConnect ( )
_logInfo ( $message, $type = self::LOG_ALERT, $params = [] )
_processExtras ( array $entries )
_processFile ( $entry )
_processPhrases ( array $entries )
_processQuery ( $query, $log = true )
_runPhpCode ( $phpCode )
_writeFile ( $filename, $content, $isBinary )

Private Methods

Method Description
_checkTokenValidity ( $content, $validToken )
_recursivelyRemoveDirectory ( $path )

Method Details

__construct() public method

public __construct ( $scriptRoot, $dbConnectionParams = null, $forceMode = false )

_dbConnect() protected method

protected _dbConnect ( )

_logInfo() protected method

protected _logInfo ( $message, $type = self::LOG_ALERT, $params = [] )

_processExtras() protected method

protected _processExtras ( array $entries )
$entries array

_processFile() protected method

protected _processFile ( $entry )

_processPhrases() protected method

protected _processPhrases ( array $entries )
$entries array

_processQuery() protected method

protected _processQuery ( $query, $log = true )

_runPhpCode() protected method

protected _runPhpCode ( $phpCode )

_writeFile() protected method

protected _writeFile ( $filename, $content, $isBinary )

getLog() public method

public getLog ( )

process() public method

public process ( $patch, $version )

Property Details

$_dbConnectionParams protected_oe property

protected $_dbConnectionParams

$_forceMode protected_oe property

protected $_forceMode

$_scriptRoot protected_oe property

protected $_scriptRoot