public function init() { parent::init(); if ($this->object) { $this->getTabs()->add('arguments', array('url' => 'director/command/arguments', 'urlParams' => array('name' => $this->object->object_name), 'label' => 'Arguments')); } }
public function init() { parent::init(); if ($this->object) { $this->getTabs()->add('services', array('url' => 'director/host/services', 'urlParams' => array('name' => $this->object->object_name), 'label' => 'Services')); } }
public function init() { parent::init(); if ($this->isPeer()) { $params['endpoint'] = $this->object->object_name; $this->getTabs()->add('inspect', array('url' => 'director/inspect/types', 'urlParams' => $params, 'label' => $this->translate('Inspect'))); } }
public function init() { parent::init(); if ($this->object) { $tabs = $this->getTabs(); $tabs->add('services', array('url' => 'director/host/services', 'urlParams' => array('name' => $this->object->object_name), 'label' => 'Services')); if ($this->object->object_type === 'object' && $this->object->getResolvedProperty('has_agent') === 'y') { $tabs->add('agent', array('url' => 'director/host/agent', 'urlParams' => array('name' => $this->object->object_name), 'label' => 'Agent')); } } }
public function init() { parent::init(); if ($this->object) { $this->getTabs()->add('assign', array('url' => 'director/service/assign', 'urlParams' => array('name' => $this->object->object_name), 'label' => 'Assign')); if ($host = $this->params->get('host')) { foreach ($this->getTabs()->getTabs() as $tab) { $tab->getUrl()->setParam('host', $host); } } } }