icingaweb2-module-director/library/Director/Objects/SyncProperty.php

32 lines
699 B
PHP
Raw Normal View History

<?php
namespace Icinga\Module\Director\Objects;
use Icinga\Module\Director\Data\Db\DbObject;
class SyncProperty extends DbObject
{
protected $table = 'sync_property';
protected $keyName = 'id';
protected $autoincKeyName = 'id';
protected $defaultProperties = array(
'id' => null,
'rule_id' => null,
'source_id' => null,
'source_expression' => null,
'destination_field' => null,
'priority' => null,
'filter_expression' => null,
'merge_policy' => null
);
public function setSource_column($value)
{
2015-11-02 16:21:35 +01:00
$this->source_expression = '${' . $value . '}';
return $this;
}
}