| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- /**
- *
- * PHP 5
- *
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @package Cake.Model
- * @since CakePHP(tm) v 0.2.9
- * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
- */
- /**
- * Load Model and AppModel
- */
- App::uses('AppModel', 'Model');
- /**
- * Permissions linking AROs with ACOs
- *
- * @package Cake.Model
- */
- class Permission extends AppModel {
- /**
- * Model name
- *
- * @var string
- */
- public $name = 'Permission';
- /**
- * Explicitly disable in-memory query caching
- *
- * @var boolean
- */
- public $cacheQueries = false;
- /**
- * Override default table name
- *
- * @var string
- */
- public $useTable = 'aros_acos';
- /**
- * Permissions link AROs with ACOs
- *
- * @var array
- */
- public $belongsTo = array('Aro', 'Aco');
- /**
- * No behaviors for this model
- *
- * @var array
- */
- public $actsAs = null;
- /**
- * Constructor, used to tell this model to use the
- * database configured for ACL
- */
- public function __construct() {
- $config = Configure::read('Acl.database');
- if (!empty($config)) {
- $this->useDbConfig = $config;
- }
- parent::__construct();
- }
- }
|