Example #1
0
 public function __construct()
 {
     parent::__construct();
     // template - if templated item, value is taken from template item, cannot be changed on host
     // system - values should not be updated
     // host - value should be null for template items
     $this->fieldRules = ['type' => ['template' => 1], 'snmp_community' => [], 'snmp_oid' => ['template' => 1], 'hostid' => [], 'name' => ['template' => 1], 'description' => [], 'key_' => ['template' => 1], 'delay' => [], 'history' => [], 'trends' => [], 'status' => [], 'value_type' => ['template' => 1], 'trapper_hosts' => [], 'units' => ['template' => 1], 'multiplier' => ['template' => 1], 'delta' => ['template' => 1], 'snmpv3_contextname' => [], 'snmpv3_securityname' => [], 'snmpv3_securitylevel' => [], 'snmpv3_authprotocol' => [], 'snmpv3_authpassphrase' => [], 'snmpv3_privprotocol' => [], 'snmpv3_privpassphrase' => [], 'formula' => ['template' => 1], 'error' => ['system' => 1], 'lastlogsize' => ['system' => 1], 'logtimefmt' => [], 'templateid' => ['system' => 1], 'valuemapid' => ['template' => 1], 'delay_flex' => [], 'params' => [], 'ipmi_sensor' => ['template' => 1], 'data_type' => ['template' => 1], 'authtype' => [], 'username' => [], 'password' => [], 'publickey' => [], 'privatekey' => [], 'mtime' => ['system' => 1], 'flags' => [], 'filter' => [], 'interfaceid' => ['host' => 1], 'port' => [], 'inventory_link' => [], 'lifetime' => []];
     $this->errorMessages = array_merge($this->errorMessages, [self::ERROR_NO_INTERFACE => _('Cannot find host interface on "%1$s" for item key "%2$s".')]);
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->sources = eventSource();
     $this->objects = eventObject();
 }
Example #3
0
 /**
  * Set value map default options in addition to global options.
  */
 public function __construct()
 {
     parent::__construct();
     $this->getOptions = array_merge($this->getOptions, ['valuemapids' => null, 'editable' => null, 'selectMappings' => null, 'sortfield' => '', 'sortorder' => '']);
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     $this->errorMessages = array_merge($this->errorMessages, array());
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->getOptions = array_merge($this->getOptions, array('parentids' => null, 'childids' => null, 'countOutput' => null, 'selectParent' => null, 'selectDependencies' => null, 'selectParentDependencies' => null, 'selectTimes' => null, 'selectAlarms' => null, 'selectTrigger' => null, 'sortfield' => '', 'sortorder' => ''));
 }
 public function __construct()
 {
     parent::__construct();
     $this->getOptions = zbx_array_merge($this->getOptions, ['screenitemids' => null, 'screenids' => null, 'hostids' => null, 'editable' => null, 'sortfield' => '', 'sortorder' => '', 'preservekeys' => null, 'countOutput' => null]);
 }