PHP Class Scalr\Model\Entity\FarmSetting

Author: N.V.
Inheritance: extends Scalr\Model\Entity\Setting
Datei anzeigen Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$farmId integer Farm identifier

Public Methods

Method Description
addOwnerHistory ( Farm $farm, User $owner, User $user ) Add record to history setting. Changes are not saved automatically.
getOwnerHistory ( Farm $farm ) : array Get history of changes

Method Details

addOwnerHistory() public static method

Add record to history setting. Changes are not saved automatically.
public static addOwnerHistory ( Farm $farm, User $owner, User $user )
$farm Farm Farm object
$owner Scalr\Model\Entity\Account\User New owner
$user Scalr\Model\Entity\Account\User User who changes owner for this farm

getOwnerHistory() public static method

Get history of changes
public static getOwnerHistory ( Farm $farm ) : array
$farm Farm Farm object
return array

Property Details

$farmId public_oe property

Farm identifier
public int $farmId
return integer