Changed public vars to use public keyword in app/

This commit is contained in:
predominant 2010-04-04 17:14:14 +10:00
parent 850ca02bb6
commit e1e96e213a
5 changed files with 12 additions and 12 deletions

View file

@ -97,8 +97,8 @@
* Enable cache checking.
*
* If set to true, for view caching you must still use the controller
* var $cacheAction inside your controllers to define caching settings.
* You can either set it controller-wide by setting var $cacheAction = true,
* public $cacheAction inside your controllers to define caching settings.
* You can either set it controller-wide by setting public $cacheAction = true,
* or in each action using $this->cacheAction = true.
*
*/

View file

@ -73,7 +73,7 @@
*/
class DATABASE_CONFIG {
var $default = array(
public $default = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'localhost',
@ -83,7 +83,7 @@ class DATABASE_CONFIG {
'prefix' => '',
);
var $test = array(
public $test = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'localhost',

View file

@ -28,7 +28,7 @@
*/
class DbAclSchema extends CakeSchema {
var $name = 'DbAcl';
public $name = 'DbAcl';
function before($event = array()) {
return true;
@ -37,7 +37,7 @@ class DbAclSchema extends CakeSchema {
function after($event = array()) {
}
var $acos = array(
public $acos = array(
'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
'model' => array('type'=>'string', 'null' => true),
@ -48,7 +48,7 @@ class DbAclSchema extends CakeSchema {
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
);
var $aros = array(
public $aros = array(
'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),
'model' => array('type'=>'string', 'null' => true),
@ -59,7 +59,7 @@ class DbAclSchema extends CakeSchema {
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
);
var $aros_acos = array(
public $aros_acos = array(
'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
'aro_id' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
'aco_id' => array('type'=>'integer', 'null' => false, 'length' => 10),

View file

@ -28,7 +28,7 @@
*/
class i18nSchema extends CakeSchema {
var $name = 'i18n';
public $name = 'i18n';
function before($event = array()) {
return true;
@ -37,7 +37,7 @@ class i18nSchema extends CakeSchema {
function after($event = array()) {
}
var $i18n = array(
public $i18n = array(
'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
'locale' => array('type'=>'string', 'null' => false, 'length' => 6, 'key' => 'index'),
'model' => array('type'=>'string', 'null' => false, 'key' => 'index'),

View file

@ -28,7 +28,7 @@
*/
class SessionsSchema extends CakeSchema {
var $name = 'Sessions';
public $name = 'Sessions';
function before($event = array()) {
return true;
@ -37,7 +37,7 @@ class SessionsSchema extends CakeSchema {
function after($event = array()) {
}
var $cake_sessions = array(
public $cake_sessions = array(
'id' => array('type'=>'string', 'null' => false, 'key' => 'primary'),
'data' => array('type'=>'text', 'null' => true, 'default' => NULL),
'expires' => array('type'=>'integer', 'null' => true, 'default' => NULL),