I18nTable.php 698 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  4. * Copyright 2005-2013, Cake Software Foundation, Inc. (https://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * Redistributions of files must retain the above copyright notice
  8. *
  9. * @since 3.0.0
  10. * @license https://opensource.org/licenses/mit-license.php MIT License
  11. */
  12. namespace TestApp\Model\Table;
  13. use Cake\ORM\Table;
  14. /**
  15. * I18n table class
  16. */
  17. class I18nTable extends Table
  18. {
  19. public function initialize(array $config)
  20. {
  21. $this->setTable('custom_i18n_table');
  22. }
  23. public static function defaultConnectionName()
  24. {
  25. return 'custom_i18n_datasource';
  26. }
  27. }