Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/view/DivinerParameterTableView.php
Show All 9 Lines | public function setParameters(array $parameters) { | ||||
return $this; | return $this; | ||||
} | } | ||||
public function setHeader($text) { | public function setHeader($text) { | ||||
$this->header = $text; | $this->header = $text; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getTagName() { | protected function getTagName() { | ||||
return 'div'; | return 'div'; | ||||
} | } | ||||
public function getTagAttributes() { | protected function getTagAttributes() { | ||||
return array( | return array( | ||||
'class' => 'diviner-table-view', | 'class' => 'diviner-table-view', | ||||
); | ); | ||||
} | } | ||||
public function getTagContent() { | protected function getTagContent() { | ||||
require_celerity_resource('diviner-shared-css'); | require_celerity_resource('diviner-shared-css'); | ||||
$rows = array(); | $rows = array(); | ||||
foreach ($this->parameters as $param) { | foreach ($this->parameters as $param) { | ||||
$cells = array(); | $cells = array(); | ||||
$type = idx($param, 'doctype'); | $type = idx($param, 'doctype'); | ||||
if (!$type) { | if (!$type) { | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |