Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/view/DivinerReturnTableView.php
Show All 9 Lines | public function setReturn(array $return) { | ||||
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'); | ||||
$return = $this->return; | $return = $this->return; | ||||
$type = idx($return, 'doctype'); | $type = idx($return, 'doctype'); | ||||
if (!$type) { | if (!$type) { | ||||
$type = idx($return, 'type'); | $type = idx($return, 'type'); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |