__('Normal'), 'hidden' => __('Hidden')]; } public function getStatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['status']) ? $data['status'] : ''); $list = $this->getStatusList(); return isset($list[$value]) ? $list[$value] : ''; } public function getDirs($poster_id = '') { if ($poster_id) { $poster_id .= '/'; } return 'uploads/poster/' . $poster_id; } }