class Perforce (View source)

Properties

protected $path
protected $p4Depot
protected $p4Client
protected $p4User
protected $p4Password
protected $p4Port
protected $p4Stream
protected $p4ClientSpec
protected $p4DepotType
protected $p4Branch
protected $process
protected $uniquePerforceClientName
protected $windowsFlag
protected $commandResult
protected $io
protected $filesystem

Methods

__construct($repoConfig, $port, $path, ProcessExecutor $process, $isWindows, IOInterface $io)

No description

static 
create($repoConfig, $port, $path, ProcessExecutor $process, IOInterface $io)

No description

static 
checkServerExists($url, ProcessExecutor $processExecutor)

No description

initialize($repoConfig)

No description

initializeDepotAndBranch($depot, $branch)

No description

cleanupClientSpec()

No description

executeCommand($command)

No description

getClient()

No description

getPath()

No description

initializePath($path)

No description

getPort()

No description

setStream($stream)

No description

isStream()

No description

getStream()

No description

getStreamWithoutLabel($stream)

No description

getP4ClientSpec()

No description

getUser()

No description

setUser($user)

No description

queryP4User()

No description

getP4variable($name)

No description

queryP4Password()

No description

generateP4Command($command, $useClient = true)

No description

isLoggedIn()

No description

connectClient()

No description

syncCodeBase($sourceReference)

No description

writeClientSpecToFile($spec)

No description

writeP4ClientSpec()

No description

read($pipe, $name)

No description

windowsLogin($password)

No description

p4Login()

No description

getComposerInformation($identifier)

No description

getFileContent($file, $identifier)

No description

getFilePath($file, $identifier)

No description

getBranches()

No description

getTags()

No description

checkStream()

No description

mixed|null
getChangeList($reference)

No description

mixed|null
getCommitLogs($fromReference, $toReference)

No description

getFilesystem()

No description

setFilesystem(Filesystem $fs)

No description

Details

__construct($repoConfig, $port, $path, ProcessExecutor $process, $isWindows, IOInterface $io)

Parameters

$repoConfig
$port
$path
ProcessExecutor $process
$isWindows
IOInterface $io

static create($repoConfig, $port, $path, ProcessExecutor $process, IOInterface $io)

Parameters

$repoConfig
$port
$path
ProcessExecutor $process
IOInterface $io

static checkServerExists($url, ProcessExecutor $processExecutor)

Parameters

$url
ProcessExecutor $processExecutor

initialize($repoConfig)

Parameters

$repoConfig

initializeDepotAndBranch($depot, $branch)

Parameters

$depot
$branch

generateUniquePerforceClientName()

cleanupClientSpec()

protected executeCommand($command)

Parameters

$command

getClient()

protected getPath()

initializePath($path)

Parameters

$path

protected getPort()

setStream($stream)

Parameters

$stream

isStream()

getStream()

getStreamWithoutLabel($stream)

Parameters

$stream

getP4ClientSpec()

getUser()

setUser($user)

Parameters

$user

queryP4User()

protected getP4variable($name)

Parameters

$name

queryP4Password()

generateP4Command($command, $useClient = true)

Parameters

$command
$useClient

isLoggedIn()

connectClient()

syncCodeBase($sourceReference)

Parameters

$sourceReference

writeClientSpecToFile($spec)

Parameters

$spec

writeP4ClientSpec()

protected read($pipe, $name)

Parameters

$pipe
$name

windowsLogin($password)

Parameters

$password

p4Login()

getComposerInformation($identifier)

Parameters

$identifier

getFileContent($file, $identifier)

Parameters

$file
$identifier

getFilePath($file, $identifier)

Parameters

$file
$identifier

getBranches()

getTags()

checkStream()

protected mixed|null getChangeList($reference)

Parameters

$reference

Return Value

mixed|null

mixed|null getCommitLogs($fromReference, $toReference)

Parameters

$fromReference
$toReference

Return Value

mixed|null

getFilesystem()

setFilesystem(Filesystem $fs)

Parameters

Filesystem $fs