cfmgrv4 init...10
This commit is contained in:
parent
0490e8731f
commit
083568a3b6
@ -50,4 +50,12 @@ class MyLogController extends AdminController
|
||||
}
|
||||
return $options;
|
||||
}
|
||||
//View관련
|
||||
protected function view_init(string $action, $fields = []): void
|
||||
{
|
||||
$fields = [
|
||||
'fields' => ['user_uid', 'class_name', 'method_name', $this->getService()->getModel()::TITLE, 'created_at', 'status', 'content'],
|
||||
];
|
||||
parent::view_init($action, $fields);
|
||||
}
|
||||
}
|
||||
|
||||
@ -44,4 +44,28 @@ class MyLogHelper extends CommonHelper
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
public function getListButton(string $action, array $viewDatas, array $extras = []): string
|
||||
{
|
||||
switch ($action) {
|
||||
case 'create':
|
||||
$action = "";
|
||||
break;
|
||||
case 'modify':
|
||||
$action = $viewDatas['cnt'];
|
||||
break;
|
||||
case 'delete':
|
||||
$action = "";
|
||||
break;
|
||||
case 'batchjob':
|
||||
$action = "";
|
||||
break;
|
||||
case 'batchjob_delete':
|
||||
$action = "";
|
||||
break;
|
||||
default:
|
||||
$action = parent::getListButton($action, $viewDatas, $extras);
|
||||
break;
|
||||
}
|
||||
return $action;
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,6 +8,7 @@ return [
|
||||
'title' => "제목",
|
||||
'user_uid' => "사용자",
|
||||
'content' => "내용",
|
||||
'status' => "상태",
|
||||
'updated_at' => "수정일",
|
||||
'created_at' => "작성일",
|
||||
],
|
||||
|
||||
@ -31,7 +31,7 @@ class MyLogModel extends CommonModel
|
||||
}
|
||||
public function getFields(): array
|
||||
{
|
||||
return ['user_uid', 'class_name', 'method_name', self::TITLE, 'user_uid', 'created_at'];
|
||||
return ['user_uid', 'class_name', 'method_name', self::TITLE, 'user_uid', 'status', 'created_at'];
|
||||
}
|
||||
public function getFilterFields(): array
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user