改名
This commit is contained in:
@@ -158,6 +158,14 @@ class ' . $managerName . ' extends ActiveRecord
|
|||||||
$over = "
|
$over = "
|
||||||
" . $val->getDocComment() . "\n";
|
" . $val->getDocComment() . "\n";
|
||||||
|
|
||||||
|
$attributes = $val->getAttributes($class);
|
||||||
|
if (!empty($attributes)) {
|
||||||
|
foreach ($attributes as $attribute) {
|
||||||
|
$over .= "
|
||||||
|
#[" . $attribute->getName() . "('" . implode('\',\'', $attribute->getArguments()) . "')]";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$func = $this->getFuncLineContent($class, $classFileName, $val->name) . "\n";
|
$func = $this->getFuncLineContent($class, $classFileName, $val->name) . "\n";
|
||||||
|
|
||||||
$content[] = $over . $func;
|
$content[] = $over . $func;
|
||||||
@@ -216,6 +224,7 @@ class ' . $managerName . ' extends ActiveRecord
|
|||||||
* @param $value
|
* @param $value
|
||||||
* @return array|null|bool
|
* @return array|null|bool
|
||||||
*/
|
*/
|
||||||
|
#[Get(\'' . $field['Field'] . '\')]
|
||||||
public function get' . ucfirst($field['Field']) . 'Attribute($value): array|null|bool
|
public function get' . ucfirst($field['Field']) . 'Attribute($value): array|null|bool
|
||||||
{
|
{
|
||||||
$value = stripcslashes($value);
|
$value = stripcslashes($value);
|
||||||
|
|||||||
Reference in New Issue
Block a user