public static function getFields() { return ['name' => ['class' => CharField::className(), 'default' => 'Product', 'validators' => [function ($value) { if (mb_strlen($value, 'UTF-8') < 3) { return "Minimal length < 3"; } return true; }]], 'price' => ['class' => CharField::className(), 'default' => 0], 'description' => ['class' => TextField::className(), 'null' => true], 'category' => ['class' => ForeignField::className(), 'modelClass' => Category::className(), 'null' => true, 'relatedName' => 'products'], 'lists' => ['class' => ManyToManyField::className(), 'modelClass' => ProductList::className()]]; }
public static function getFields() { return ['title' => ['class' => CharField::className(), 'verboseName' => self::t("Title")], 'code' => ['class' => CharField::className(), 'verboseName' => self::t("Code")], 'text' => ['class' => TextField::className(), 'verboseName' => self::t('Text')]]; }
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')]]; }
public static function getFields() { return ['user' => ['class' => ForeignField::className(), 'modelClass' => User::className(), 'relatedName' => 'addresses', 'null' => true], 'address' => ['class' => TextField::className()]]; }
public static function getFields() { return ['LOGIN' => ['class' => CharField::className()], 'PASSWORD' => ['class' => CharField::className()], 'CHECKWORD' => ['class' => CharField::className()], 'NAME' => ['class' => CharField::className()], 'LAST_NAME' => ['class' => CharField::className()], 'SECOND_NAME' => ['class' => CharField::className()], 'EMAIL' => ['class' => EmailField::className()], 'EXTERNAL_AUTH_ID' => ['class' => CharField::className()], 'XML_ID' => ['class' => CharField::className()], 'PERSONAL_COUNTRY' => ['class' => CharField::className()], 'PERSONAL_PHONE' => ['class' => CharField::className()], 'PERSONAL_MOBILE' => ['class' => CharField::className()], 'PERSONAL_CITY' => ['class' => CharField::className()], 'ACTIVE' => ['class' => CharField::className()], 'PERSONAL_BIRTHDAY' => ['class' => DateField::className()], 'PERSONAL_NOTES' => ['class' => TextField::className()], 'PERSONAL_STREET' => ['class' => TextField::className()]]; }
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]]; }
public static function getFields() { return ['title' => ['class' => CharField::className(), 'verboseName' => self::t("Title")], 'code' => ['class' => CharField::className(), 'verboseName' => self::t("Code")], 'description' => ['class' => TextField::className(), 'verboseName' => self::t('Description'), 'null' => true], 'keywords' => ['class' => TextField::className(), 'verboseName' => self::t('Keywords'), 'null' => true]]; }