Translatable.php 1009B

12345678910111213141516171819202122232425262728293031323334353637
  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. * @package Gedmo.Translatable
  10. * @subpackage Translatable
  11. * @link http://www.gediminasm.org
  12. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  13. */
  14. interface Translatable
  15. {
  16. // use now annotations instead of predifined methods, this interface is not necessary
  17. /**
  18. * @gedmo:TranslationEntity
  19. * to specify custom translation class use
  20. * class annotation @gedmo:TranslationEntity(class="your\class")
  21. */
  22. /**
  23. * @gedmo:Translatable
  24. * to mark the field as translatable,
  25. * these fields will be translated
  26. */
  27. /**
  28. * @gedmo:Locale OR @gedmo:Language
  29. * to mark the field as locale used to override global
  30. * locale settings from TranslatableListener
  31. */
  32. }