__('Index access_source_session_cnt'), 'access_staytime_info' => __('Index access_staytime_info'), 'access_depth_info' => __('Index access_depth_info')]; } public function getIndexTextAttr($value, $data) { $value = $value ? $value : (isset($data['index']) ? $data['index'] : ''); $list = $this->getIndexList(); return isset($list[$value]) ? $list[$value] : ''; } public function getStatisticsTimeTextAttr($value, $data) { $value = $value ? $value : (isset($data['statistics_time']) ? $data['statistics_time'] : ''); return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value; } protected function setStatisticsTimeAttr($value) { return $value === '' ? null : ($value && !is_numeric($value) ? strtotime($value) : $value); } }