改名
This commit is contained in:
@@ -92,18 +92,20 @@ use {$model_namespace}\\{$managerName};
|
|||||||
|
|
||||||
";
|
";
|
||||||
|
|
||||||
$default = ['actionLoadParam', 'actionAdd', 'actionUpdate', 'actionDetail', 'actionDelete', 'actionBatchDelete', 'actionList'];
|
|
||||||
|
|
||||||
$funcNames = [];
|
$funcNames = [];
|
||||||
if (is_object($class)) {
|
if (is_object($class)) {
|
||||||
$html .= $this->getClassProperty($class);
|
$html .= $this->getClassProperty($class);
|
||||||
$html .= $this->getClassMethods($class, $default);
|
$html .= $this->getClassMethods($class);
|
||||||
}
|
}
|
||||||
if (!$this->input->get('--controller-empty', false)) {
|
|
||||||
foreach ($default as $key => $val) {
|
$default = ['loadParam', 'actionAdd', 'actionUpdate', 'actionDetail', 'actionDelete', 'actionBatchDelete', 'actionList'];
|
||||||
if (in_array($val, $funcNames)) continue;
|
|
||||||
$html .= $this->{'controllerMethod' . str_replace('action', '', $val)}($this->fields, $managerName, $managerName) . "\n";
|
foreach ($default as $key => $val) {
|
||||||
|
if (str_contains($html, 'public function ' . $val . '(')) {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
$html .= $this->{'controllerMethod' . str_replace('action', '', $val)}($this->fields, $managerName, $managerName) . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$html .= '
|
$html .= '
|
||||||
|
|||||||
Reference in New Issue
Block a user