Esempio n. 1
0
 public static function getFields()
 {
     return ['name' => ['class' => CharField::className()], 'court' => ['class' => CharField::className()], 'question' => ['class' => CharField::className()], 'result' => ['class' => CharField::className()], 'document' => ['class' => FileField::className()], 'content' => ['class' => TextField::className()], 'status' => ['class' => IntField::className(), 'choices' => [self::STATUS_SUCCESS => 'Successful', self::STATUS_COMPLETE => 'Complete']], 'created_at' => ['class' => DateTimeField::className(), 'autoNowAdd' => true]];
 }
Esempio n. 2
0
 public static function getFields()
 {
     return ['user' => ['class' => ForeignField::className(), 'null' => true, 'modelClass' => User::className(), 'verboseName' => CoreModule::t('User')], 'ip' => ['class' => IpField::className(), 'null' => false, 'verboseName' => CoreModule::t('Ip address')], 'name' => ['class' => CharField::className(), 'verboseName' => CoreModule::t('Message'), 'null' => true], 'message' => ['class' => TextField::className(), 'verboseName' => CoreModule::t('Message')], 'module' => ['class' => CharField::className(), 'verboseName' => CoreModule::t('Module')], 'model' => ['class' => CharField::className(), 'verboseName' => CoreModule::t('Model'), 'null' => true], 'url' => ['class' => CharField::className(), 'null' => true, 'verboseName' => CoreModule::t('Url')], 'created_at' => ['class' => DateTimeField::className(), 'autoNowAdd' => true, 'verboseName' => CoreModule::t('Created at')]];
 }
Esempio n. 3
0
 public static function getFields()
 {
     return ['name' => ['class' => CharField::className()], 'products' => ['class' => ManyToManyField::className(), 'modelClass' => Product::className()], 'date_action' => ['class' => DateTimeField::className(), 'required' => false, 'null' => true]];
 }