芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal-back/vendor/yiisoft/yii2-gii/src/generators/model/default/model.php
[type, name. comment]) */ /** @var string[] $labels list of attribute labels (name => label) */ /** @var string[] $rules list of validation rules */ /** @var array $relations list of relations (name => relation declaration) */ echo " namespace = $generator->ns ?>; use Yii; /** * This is the model class for table "= $generator->generateTableName($tableName) ?>". * $data): ?> * @property = "{$data['type']} \${$property}" . ($data['comment'] ? ' ' . strtr($data['comment'], ["\n" => ' ']) : '') . "\n" ?> * $relation): ?> * @property = $relation[1] . ($relation[2] ? '[]' : '') . ' $' . lcfirst($name) . "\n" ?> */ class = $className ?> extends = '\\' . ltrim($generator->baseClass, '\\') . "\n" ?> { /** * {@inheritdoc} */ public static function tableName() { return '= $generator->generateTableName($tableName) ?>'; } db !== 'db'): ?> /** * @return \yii\db\Connection the database connection used by this AR class. */ public static function getDb() { return Yii::$app->get('= $generator->db ?>'); } /** * {@inheritdoc} */ public function rules() { return [= empty($rules) ? '' : ("\n " . implode(",\n ", $rules) . ",\n ") ?>]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ $label): ?> = "'$name' => " . $generator->generateString($label) . ",\n" ?> ]; } $relation): ?> /** * Gets query for [[= $name ?>]]. * * @return = $relationsClassHints[$name] . "\n" ?> */ public function get= $name ?>() { = $relation[0] . "\n" ?> } ns === $generator->queryNs) ? $queryClassName : '\\' . $generator->queryNs . '\\' . $queryClassName; echo "\n"; ?> /** * {@inheritdoc} * @return = $queryClassFullName ?> the active query used by this AR class. */ public static function find() { return new = $queryClassFullName ?>(get_called_class()); } }