Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

visibility attributes

  • Loading branch information...
commit 38c3e30a1e24bfd0cfd1b9f0310743bf488283cd 1 parent e94d307
@dereuromark dereuromark authored markstory committed
View
4 lib/Cake/Model/Behavior/TranslateBehavior.php
@@ -36,14 +36,14 @@ class TranslateBehavior extends ModelBehavior {
*
* @var object
*/
- var $_joinTable;
+ protected $_joinTable;
/**
* Stores the runtime model for generating joins.
*
* @var Model
*/
- var $_runtimeModel;
+ protected $_runtimeModel;
/**
* Callback
View
4 lib/Cake/Test/Case/Model/ModelValidationTest.php
@@ -819,7 +819,7 @@ public function testStateValidation() {
*
* @return void
*/
- function testStateRequiredValidation() {
+ public function testStateRequiredValidation() {
$this->loadFixtures('Article');
$Article = new Article();
@@ -872,7 +872,7 @@ function testStateRequiredValidation() {
*
* @return void
*/
- function testOnRequiredConflictValidation() {
+ public function testOnRequiredConflictValidation() {
$this->loadFixtures('Article');
$Article = new Article();
View
12 lib/Cake/Test/Case/Model/models.php
@@ -3287,19 +3287,19 @@ public function afterSave($created) {
}
class Site extends CakeTestModel {
- var $name = 'Site';
- var $useTable = 'sites';
+ public $name = 'Site';
+ public $useTable = 'sites';
- var $hasAndBelongsToMany = array(
+ public $hasAndBelongsToMany = array(
'Domain' => array('unique' => 'keepExisting'),
);
}
class Domain extends CakeTestModel {
- var $name = 'Domain';
- var $useTable = 'domains';
+ public $name = 'Domain';
+ public $useTable = 'domains';
- var $hasAndBelongsToMany = array(
+ public $hasAndBelongsToMany = array(
'Site' => array('unique' => 'keepExisting'),
);
}
View
6 lib/Cake/Test/Fixture/DomainFixture.php
@@ -32,7 +32,7 @@ class DomainFixture extends CakeTestFixture {
* @var string 'Domain'
* @access public
*/
- var $name = 'Domain';
+ public $name = 'Domain';
/**
* fields property
@@ -40,7 +40,7 @@ class DomainFixture extends CakeTestFixture {
* @var array
* @access public
*/
- var $fields = array(
+ public $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'),
'domain' => array('type' => 'string', 'null' => false),
'created' => 'datetime',
@@ -53,7 +53,7 @@ class DomainFixture extends CakeTestFixture {
* @var array
* @access public
*/
- var $records = array(
+ public $records = array(
array('domain' => 'cakephp.org', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),
array('domain' => 'book.cakephp.org', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),
array('domain' => 'api.cakephp.org', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),
View
6 lib/Cake/Test/Fixture/DomainsSiteFixture.php
@@ -32,7 +32,7 @@ class DomainsSiteFixture extends CakeTestFixture {
* @var string 'Domain'
* @access public
*/
- var $name = 'DomainsSite';
+ public $name = 'DomainsSite';
/**
* fields property
@@ -40,7 +40,7 @@ class DomainsSiteFixture extends CakeTestFixture {
* @var array
* @access public
*/
- var $fields = array(
+ public $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'),
'domain_id' => array('type' => 'integer', 'null' => false),
'site_id' => array('type' => 'integer', 'null' => false),
@@ -55,7 +55,7 @@ class DomainsSiteFixture extends CakeTestFixture {
* @var array
* @access public
*/
- var $records = array(
+ public $records = array(
array('site_id' => 1, 'domain_id' => 1, 'active' => true, 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),
array('site_id' => 1, 'domain_id' => 2, 'active' => true, 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),
array('site_id' => 2, 'domain_id' => 4, 'active' => true, 'created' => '2007-03-17 01:18:23', 'updated' => '2007-03-17 01:20:31'),
View
6 lib/Cake/Test/Fixture/SiteFixture.php
@@ -32,7 +32,7 @@ class SiteFixture extends CakeTestFixture {
* @var string 'Site'
* @access public
*/
- var $name = 'Site';
+ public $name = 'Site';
/**
* fields property
@@ -40,7 +40,7 @@ class SiteFixture extends CakeTestFixture {
* @var array
* @access public
*/
- var $fields = array(
+ public $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'),
'name' => array('type' => 'string', 'null' => false),
'created' => 'datetime',
@@ -53,7 +53,7 @@ class SiteFixture extends CakeTestFixture {
* @var array
* @access public
*/
- var $records = array(
+ public $records = array(
array('name' => 'cakephp', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),
array('name' => 'Mark Story\'s sites', 'created' => '2007-03-17 01:18:23', 'updated' => '2007-03-17 01:20:31'),
array('name' => 'rchavik sites', 'created' => '2001-02-03 00:01:02', 'updated' => '2007-03-17 01:22:31'),
Please sign in to comment.
Something went wrong with that request. Please try again.