Translatable.php 916 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Gedmo\Translatable;
  3. /**
  4. * This interface is not necessary but can be implemented for
  5. * Entities which in some cases needs to be identified as
  6. * Translatable
  7. *
  8. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  9. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  10. */
  11. interface Translatable
  12. {
  13. // use now annotations instead of predefined methods, this interface is not necessary
  14. /**
  15. * @gedmo:TranslationEntity
  16. * to specify custom translation class use
  17. * class annotation @gedmo:TranslationEntity(class="your\class")
  18. */
  19. /**
  20. * @gedmo:Translatable
  21. * to mark the field as translatable,
  22. * these fields will be translated
  23. */
  24. /**
  25. * @gedmo:Locale OR @gedmo:Language
  26. * to mark the field as locale used to override global
  27. * locale settings from TranslatableListener
  28. */
  29. }