1 <?php
2 /**
3 * XLRstats : Real Time Player Stats (http://www.xlrstats.com)
4 * (CC) BY-NC-SA 2005-2013, Mark Weirath, Özgür Uysal
5 *
6 * Licensed under the Creative Commons BY-NC-SA 3.0 License
7 * Redistributions of files must retain the above copyright notice.
8 *
9 * @link http://www.xlrstats.com
10 * @license Creative Commons BY-NC-SA 3.0 License (http://creativecommons.org/licenses/by-nc-sa/3.0/)
11 * @package app.Model
12 * @since XLRstats v3.0
13 * @version 0.1
14 */
15
16 class League extends AppModel {
17
18 /**
19 * @var bool
20 */
21 public $b3Database = true;
22
23 /**
24 * @var string
25 */
26 public $name = 'League';
27
28 /**
29 * @var string
30 */
31 public $useTable = 'xlr_playerstats';
32
33 /**
34 * @var array
35 */
36 public $belongsTo = array(
37 'Player' => array(
38 'foreignKey' => 'client_id'
39 )
40 );
41
42 //-------------------------------------------------------------------
43
44 /**
45 * Overrides __construct method to be able to use custom tables names
46 */
47 public function __construct() {
48 parent::__construct();
49 $this->setSource(Configure::read('options.table_playerstats'));
50 }
51
52 }
53