You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 line
659B

  1. <?php
  2. namespace App\Kintone\Models;
  3. class Customer extends KintoneModel
  4. {
  5. const CONFIG_KEY = "KINTONE_APP_CUSTOMER";
  6. const FIELD_CUSTOMER_NAME = "CustomerName";
  7. const FIELD_EMAIL = "メールアドレス";
  8. protected const FIELDS = [
  9. ...parent::FIELDS,
  10. self::FIELD_CUSTOMER_NAME => FieldType::SINGLE_LINE_TEXT,
  11. self::FIELD_EMAIL => FieldType::LINK,
  12. ];
  13. protected const FIELD_NAMES = [
  14. ...parent::FIELD_NAMES,
  15. self::FIELD_CUSTOMER_NAME => 'customer_name',
  16. self::FIELD_EMAIL => 'email',
  17. ];
  18. protected function setDataCustom(array $data): bool
  19. {
  20. return true;
  21. }
  22. }