改名
This commit is contained in:
@@ -160,7 +160,13 @@ abstract class GiiBase
|
|||||||
protected function getClassProperty(ReflectionClass $class): string
|
protected function getClassProperty(ReflectionClass $class): string
|
||||||
{
|
{
|
||||||
$html = '';
|
$html = '';
|
||||||
|
|
||||||
|
$rc = $class->getParentClass()->getConstants();
|
||||||
|
|
||||||
foreach ($class->getConstants() as $key => $val) {
|
foreach ($class->getConstants() as $key => $val) {
|
||||||
|
if (isset($rc[$key])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (is_numeric($val)) {
|
if (is_numeric($val)) {
|
||||||
$html .= '
|
$html .= '
|
||||||
const ' . $key . ' = ' . $val . ';' . "\n";
|
const ' . $key . ' = ' . $val . ';' . "\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user