I18nTable.php 714 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
  4. * Copyright 2005-2013, Cake Software Foundation, Inc. (http://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 http://www.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. */
  18. class I18nTable extends Table
  19. {
  20. public function initialize(array $config)
  21. {
  22. $this->table('custom_i18n_table');
  23. }
  24. public static function defaultConnectionName()
  25. {
  26. return 'custom_i18n_datasource';
  27. }
  28. }