PHP Class FarmLogMessage

Exibir arquivo Open project: scalr/scalr

Public Properties

Property Type Description
$FarmID integer Identifier of the farm
$Message string Log message
$ServerID string Identifier of the server
$envId string Identifier of the environment
$farmRoleId string Identifier of the farm role

Public Methods

Method Description
__construct ( DBServer | integer $param1, string $message, variadic $extra ) : void Constructor. Instantiates FarmLogMessage

Protected Methods

Method Description
constructByDBServer ( DBServer $dbServer, string $message ) : void Constructor by separate params
constructBySeparateParams ( integer $farmId, string $message, integer $serverid = null, integer $envId = null, integer $farmRoleId = null ) : void Constructor. Instantiates FarmLogMessage

Method Details

__construct() public method

Constructor. Instantiates FarmLogMessage
public __construct ( DBServer | integer $param1, string $message, variadic $extra ) : void
$param1 DBServer | integer DBServer object or farm id
$message string Message for writing in log
$extra variadic optional Extra data for passing in FarmLogMessage::constructBySeparateParams(). Used with farm id in first param
return void

constructByDBServer() protected method

Constructor by separate params
protected constructByDBServer ( DBServer $dbServer, string $message ) : void
$dbServer DBServer DBServer object for retrieving log data
$message string Message for writing in log
return void

constructBySeparateParams() protected method

Constructor. Instantiates FarmLogMessage
protected constructBySeparateParams ( integer $farmId, string $message, integer $serverid = null, integer $envId = null, integer $farmRoleId = null ) : void
$farmId integer Identifier of the farm
$message string Message for writing in log
$serverid integer optional Identifier of the server
$envId integer optional Identifier of the environment
$farmRoleId integer optional Identifier of the farm role
return void

Property Details

$FarmID public_oe property

Identifier of the farm
public int $FarmID
return integer

$Message public_oe property

Log message
public string $Message
return string

$ServerID public_oe property

Identifier of the server
public string $ServerID
return string

$envId public_oe property

Identifier of the environment
public string $envId
return string

$farmRoleId public_oe property

Identifier of the farm role
public string $farmRoleId
return string