summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/blog-tutorial/protected/pages/Day2/CreateAR.page4
-rwxr-xr-xdemos/blog-tutorial/protected/pages/Day2/fr/CreateAR.page4
-rw-r--r--demos/blog-tutorial/protected/pages/Day2/id/CreateAR.page4
-rw-r--r--demos/blog-tutorial/samples/day2/blog/protected/database/PostRecord.php2
-rw-r--r--demos/blog-tutorial/samples/day2/blog/protected/database/UserRecord.php2
-rw-r--r--demos/blog-tutorial/samples/day3/blog/protected/database/PostRecord.php2
-rw-r--r--demos/blog-tutorial/samples/day3/blog/protected/database/UserRecord.php2
-rw-r--r--demos/blog-tutorial/samples/day4/blog/protected/database/PostRecord.php2
-rw-r--r--demos/blog-tutorial/samples/day4/blog/protected/database/UserRecord.php2
-rw-r--r--demos/blog-tutorial/samples/day5/blog/protected/database/PostRecord.php2
-rw-r--r--demos/blog-tutorial/samples/day5/blog/protected/database/UserRecord.php2
-rw-r--r--demos/northwind-db/protected/database/Category.php2
-rw-r--r--demos/northwind-db/protected/database/Customer.php2
-rw-r--r--demos/northwind-db/protected/database/Employee.php2
-rw-r--r--demos/northwind-db/protected/database/Order.php2
-rw-r--r--demos/northwind-db/protected/database/OrderDetail.php2
-rw-r--r--demos/northwind-db/protected/database/Product.php2
-rw-r--r--demos/northwind-db/protected/database/Region.php2
-rw-r--r--demos/northwind-db/protected/database/Shipper.php2
-rw-r--r--demos/northwind-db/protected/database/Supplier.php2
-rw-r--r--demos/northwind-db/protected/database/Territory.php2
-rw-r--r--demos/quickstart/protected/pages/Database/ActiveRecord.page12
-rw-r--r--demos/quickstart/protected/pages/Database/id/ActiveRecord.page12
23 files changed, 36 insertions, 36 deletions
diff --git a/demos/blog-tutorial/protected/pages/Day2/CreateAR.page b/demos/blog-tutorial/protected/pages/Day2/CreateAR.page
index 381e2469..1d7838a2 100644
--- a/demos/blog-tutorial/protected/pages/Day2/CreateAR.page
+++ b/demos/blog-tutorial/protected/pages/Day2/CreateAR.page
@@ -134,7 +134,7 @@ class PostRecord extends TActiveRecord
public $author; //holds an UserRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'author' => array(self::BELONGS_TO, 'UserRecord'),
);
@@ -152,7 +152,7 @@ class UserRecord extends TActiveRecord
public $posts=array(); //holds an array of PostRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'posts' => array(self::HAS_MANY, 'PostRecord'),
);
diff --git a/demos/blog-tutorial/protected/pages/Day2/fr/CreateAR.page b/demos/blog-tutorial/protected/pages/Day2/fr/CreateAR.page
index 82c1dbf8..1c5aae7b 100755
--- a/demos/blog-tutorial/protected/pages/Day2/fr/CreateAR.page
+++ b/demos/blog-tutorial/protected/pages/Day2/fr/CreateAR.page
@@ -133,7 +133,7 @@ class PostRecord extends TActiveRecord
public $author; //contient un objet UserRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'author' => array(self::BELONGS_TO, 'UserRecord'),
);
@@ -151,7 +151,7 @@ class UserRecord extends TActiveRecord
public $posts=array(); //contient un tableau de PostRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'posts' => array(self::HAS_MANY, 'PostRecord'),
);
diff --git a/demos/blog-tutorial/protected/pages/Day2/id/CreateAR.page b/demos/blog-tutorial/protected/pages/Day2/id/CreateAR.page
index 533825c6..0d4b178d 100644
--- a/demos/blog-tutorial/protected/pages/Day2/id/CreateAR.page
+++ b/demos/blog-tutorial/protected/pages/Day2/id/CreateAR.page
@@ -134,7 +134,7 @@ class PostRecord extends TActiveRecord
public $author; //menampung array UserRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'author' => array(self::BELONGS_TO, 'UserRecord'),
);
@@ -152,7 +152,7 @@ class UserRecord extends TActiveRecord
public $posts=array(); //menampung array PostRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'posts' => array(self::HAS_MANY, 'PostRecord'),
);
diff --git a/demos/blog-tutorial/samples/day2/blog/protected/database/PostRecord.php b/demos/blog-tutorial/samples/day2/blog/protected/database/PostRecord.php
index 01f84437..25702727 100644
--- a/demos/blog-tutorial/samples/day2/blog/protected/database/PostRecord.php
+++ b/demos/blog-tutorial/samples/day2/blog/protected/database/PostRecord.php
@@ -15,7 +15,7 @@ class PostRecord extends TActiveRecord
public $author;
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'author' => array(self::BELONGS_TO, 'UserRecord'),
);
diff --git a/demos/blog-tutorial/samples/day2/blog/protected/database/UserRecord.php b/demos/blog-tutorial/samples/day2/blog/protected/database/UserRecord.php
index 18d5ebbe..2051e5de 100644
--- a/demos/blog-tutorial/samples/day2/blog/protected/database/UserRecord.php
+++ b/demos/blog-tutorial/samples/day2/blog/protected/database/UserRecord.php
@@ -15,7 +15,7 @@ class UserRecord extends TActiveRecord
public $posts=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'posts' => array(self::HAS_MANY, 'PostRecord'),
);
diff --git a/demos/blog-tutorial/samples/day3/blog/protected/database/PostRecord.php b/demos/blog-tutorial/samples/day3/blog/protected/database/PostRecord.php
index 01f84437..25702727 100644
--- a/demos/blog-tutorial/samples/day3/blog/protected/database/PostRecord.php
+++ b/demos/blog-tutorial/samples/day3/blog/protected/database/PostRecord.php
@@ -15,7 +15,7 @@ class PostRecord extends TActiveRecord
public $author;
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'author' => array(self::BELONGS_TO, 'UserRecord'),
);
diff --git a/demos/blog-tutorial/samples/day3/blog/protected/database/UserRecord.php b/demos/blog-tutorial/samples/day3/blog/protected/database/UserRecord.php
index 18d5ebbe..2051e5de 100644
--- a/demos/blog-tutorial/samples/day3/blog/protected/database/UserRecord.php
+++ b/demos/blog-tutorial/samples/day3/blog/protected/database/UserRecord.php
@@ -15,7 +15,7 @@ class UserRecord extends TActiveRecord
public $posts=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'posts' => array(self::HAS_MANY, 'PostRecord'),
);
diff --git a/demos/blog-tutorial/samples/day4/blog/protected/database/PostRecord.php b/demos/blog-tutorial/samples/day4/blog/protected/database/PostRecord.php
index 01f84437..25702727 100644
--- a/demos/blog-tutorial/samples/day4/blog/protected/database/PostRecord.php
+++ b/demos/blog-tutorial/samples/day4/blog/protected/database/PostRecord.php
@@ -15,7 +15,7 @@ class PostRecord extends TActiveRecord
public $author;
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'author' => array(self::BELONGS_TO, 'UserRecord'),
);
diff --git a/demos/blog-tutorial/samples/day4/blog/protected/database/UserRecord.php b/demos/blog-tutorial/samples/day4/blog/protected/database/UserRecord.php
index 18d5ebbe..2051e5de 100644
--- a/demos/blog-tutorial/samples/day4/blog/protected/database/UserRecord.php
+++ b/demos/blog-tutorial/samples/day4/blog/protected/database/UserRecord.php
@@ -15,7 +15,7 @@ class UserRecord extends TActiveRecord
public $posts=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'posts' => array(self::HAS_MANY, 'PostRecord'),
);
diff --git a/demos/blog-tutorial/samples/day5/blog/protected/database/PostRecord.php b/demos/blog-tutorial/samples/day5/blog/protected/database/PostRecord.php
index 01f84437..25702727 100644
--- a/demos/blog-tutorial/samples/day5/blog/protected/database/PostRecord.php
+++ b/demos/blog-tutorial/samples/day5/blog/protected/database/PostRecord.php
@@ -15,7 +15,7 @@ class PostRecord extends TActiveRecord
public $author;
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'author' => array(self::BELONGS_TO, 'UserRecord'),
);
diff --git a/demos/blog-tutorial/samples/day5/blog/protected/database/UserRecord.php b/demos/blog-tutorial/samples/day5/blog/protected/database/UserRecord.php
index 18d5ebbe..2051e5de 100644
--- a/demos/blog-tutorial/samples/day5/blog/protected/database/UserRecord.php
+++ b/demos/blog-tutorial/samples/day5/blog/protected/database/UserRecord.php
@@ -15,7 +15,7 @@ class UserRecord extends TActiveRecord
public $posts=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'posts' => array(self::HAS_MANY, 'PostRecord'),
);
diff --git a/demos/northwind-db/protected/database/Category.php b/demos/northwind-db/protected/database/Category.php
index 05fa7ed0..06fc979f 100644
--- a/demos/northwind-db/protected/database/Category.php
+++ b/demos/northwind-db/protected/database/Category.php
@@ -13,7 +13,7 @@ class Category extends TActiveRecord
public $Products=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'Products' => array(self::HAS_MANY, 'Product'),
);
diff --git a/demos/northwind-db/protected/database/Customer.php b/demos/northwind-db/protected/database/Customer.php
index 356dd02f..810f2a6a 100644
--- a/demos/northwind-db/protected/database/Customer.php
+++ b/demos/northwind-db/protected/database/Customer.php
@@ -20,7 +20,7 @@ class Customer extends TActiveRecord
public $Orders=array();
- protected static $RELATIONS = array
+ public static $RELATIONS = array
(
'Orders' => array(self::HAS_MANY, 'Order'),
);
diff --git a/demos/northwind-db/protected/database/Employee.php b/demos/northwind-db/protected/database/Employee.php
index 7a678f57..92de3f24 100644
--- a/demos/northwind-db/protected/database/Employee.php
+++ b/demos/northwind-db/protected/database/Employee.php
@@ -30,7 +30,7 @@ class Employee extends TActiveRecord
public $Subordinates=array();
public $Superior;
- protected static $RELATIONS = array
+ public static $RELATIONS = array
(
'Territories' => array(self::HAS_MANY, 'Territory', 'EmployeeTerritories'),
'Orders' => array(self::HAS_MANY, 'Order'),
diff --git a/demos/northwind-db/protected/database/Order.php b/demos/northwind-db/protected/database/Order.php
index fa865e61..228fb2b5 100644
--- a/demos/northwind-db/protected/database/Order.php
+++ b/demos/northwind-db/protected/database/Order.php
@@ -26,7 +26,7 @@ class Order extends TActiveRecord
public $Shipper;
public $Employee;
- protected static $RELATIONS = array
+ public static $RELATIONS = array
(
'OrderDetails' => array(self::HAS_MANY, 'OrderDetail'),
'Customer' => array(self::BELONGS_TO, 'Customer'),
diff --git a/demos/northwind-db/protected/database/OrderDetail.php b/demos/northwind-db/protected/database/OrderDetail.php
index 9415e33e..1732b0d9 100644
--- a/demos/northwind-db/protected/database/OrderDetail.php
+++ b/demos/northwind-db/protected/database/OrderDetail.php
@@ -13,7 +13,7 @@ class OrderDetail extends TActiveRecord
public $Product;
public $Order;
- protected static $RELATIONS = array
+ public static $RELATIONS = array
(
'Product' => array(self::BELONGS_TO, 'Product'),
'Order' => array(self::BELONGS_TO, 'Order'),
diff --git a/demos/northwind-db/protected/database/Product.php b/demos/northwind-db/protected/database/Product.php
index 75d01c02..93736ab8 100644
--- a/demos/northwind-db/protected/database/Product.php
+++ b/demos/northwind-db/protected/database/Product.php
@@ -21,7 +21,7 @@ class Product extends TActiveRecord
public $Category;
public $OrderDetails=array();
- protected static $RELATIONS = array
+ public static $RELATIONS = array
(
'Supplier' => array(self::BELONGS_TO, 'Supplier'),
'Category' => array(self::BELONGS_TO, 'Category'),
diff --git a/demos/northwind-db/protected/database/Region.php b/demos/northwind-db/protected/database/Region.php
index 2afa3501..c6e23485 100644
--- a/demos/northwind-db/protected/database/Region.php
+++ b/demos/northwind-db/protected/database/Region.php
@@ -11,7 +11,7 @@ class Region extends TActiveRecord
public $Territories=array();
- protected static $RELATIONS = array
+ public static $RELATIONS = array
(
'Territories' => array(self::HAS_MANY, 'Territory')
);
diff --git a/demos/northwind-db/protected/database/Shipper.php b/demos/northwind-db/protected/database/Shipper.php
index 6ac8a929..a3f0aeb3 100644
--- a/demos/northwind-db/protected/database/Shipper.php
+++ b/demos/northwind-db/protected/database/Shipper.php
@@ -12,7 +12,7 @@ class Shipper extends TActiveRecord
public $Orders = array();
- protected static $RELATIONS = array
+ public static $RELATIONS = array
(
'Orders' => array(self::HAS_MANY, 'Order'),
);
diff --git a/demos/northwind-db/protected/database/Supplier.php b/demos/northwind-db/protected/database/Supplier.php
index 537daade..7cabdde5 100644
--- a/demos/northwind-db/protected/database/Supplier.php
+++ b/demos/northwind-db/protected/database/Supplier.php
@@ -21,7 +21,7 @@ class Supplier extends TActiveRecord
public $Products=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'Products' => array(self::HAS_MANY, 'Product')
);
diff --git a/demos/northwind-db/protected/database/Territory.php b/demos/northwind-db/protected/database/Territory.php
index 4da0ff46..16f33dea 100644
--- a/demos/northwind-db/protected/database/Territory.php
+++ b/demos/northwind-db/protected/database/Territory.php
@@ -13,7 +13,7 @@ class Territory extends TActiveRecord
private $_region;
private $_employees;
- protected static $RELATIONS = array
+ public static $RELATIONS = array
(
'Region' => array(self::BELONGS_TO, 'Region'),
'Employees' => array(self::HAS_MANY, 'Employee', 'EmployeeTerritories')
diff --git a/demos/quickstart/protected/pages/Database/ActiveRecord.page b/demos/quickstart/protected/pages/Database/ActiveRecord.page
index ce92f489..a6e087b9 100644
--- a/demos/quickstart/protected/pages/Database/ActiveRecord.page
+++ b/demos/quickstart/protected/pages/Database/ActiveRecord.page
@@ -627,7 +627,7 @@ class TeamRecord extends TActiveRecord
public $players=array();
//define the $player member having has many relationship with PlayerRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'players' => array(self::HAS_MANY, 'PlayerRecord'),
);
@@ -710,7 +710,7 @@ class PlayerRecord extends TActiveRecord
public $skills=array();
public $profile;
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'team' => array(self::BELONGS_TO, 'TeamRecord'),
'skills' => array(self::HAS_MANY, 'SkillRecord', 'Player_Skills'),
@@ -767,7 +767,7 @@ class ProfileRecord extends TActiveRecord
public $player;
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'player' => array(self::BELONGS_TO, 'PlayerRecord'),
);
@@ -813,7 +813,7 @@ class Category extends TActiveRecord
public $parent_category;
public $child_categories=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'parent_category' => array(self::BELONGS_TO, 'Category'),
'child_categories' => array(self::HAS_MANY, 'Category'),
@@ -867,7 +867,7 @@ class SkillRecord extends TActiveRecord
public $players=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'players' => array(self::HAS_MANY, 'PlayerRecord', 'Player_Skills'),
);
@@ -949,7 +949,7 @@ class Item extends TActiveRecord
public $related_item_id;
public $related_items=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'related_items' => array(self::HAS_MANY,
'Item', 'related_items.related_item_id'),
diff --git a/demos/quickstart/protected/pages/Database/id/ActiveRecord.page b/demos/quickstart/protected/pages/Database/id/ActiveRecord.page
index d4e473d8..b7b9e612 100644
--- a/demos/quickstart/protected/pages/Database/id/ActiveRecord.page
+++ b/demos/quickstart/protected/pages/Database/id/ActiveRecord.page
@@ -552,7 +552,7 @@ class TeamRecord extends TActiveRecord
public $players=array();
//mendefinisikan anggota $player yang memiliki hubungan banyak dengan PlayerRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'players' => array(self::HAS_MANY, 'PlayerRecord'),
);
@@ -612,7 +612,7 @@ class PlayerRecord extends TActiveRecord
public $skills=array();
public $profile;
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'team' => array(self::BELONGS_TO, 'TeamRecord'),
'skills' => array(self::HAS_MANY, 'SkillRecord', 'Player_Skills'),
@@ -658,7 +658,7 @@ class ProfileRecord extends TActiveRecord
public $player;
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'player' => array(self::BELONGS_TO, 'PlayerRecord'),
);
@@ -698,7 +698,7 @@ class Category extends TActiveRecord
public $parent_category;
public $child_categories=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'parent_category' => array(self::BELONGS_TO, 'Category'),
'child_categories' => array(self::HAS_MANY, 'Category'),
@@ -735,7 +735,7 @@ class SkillRecord extends TActiveRecord
public $players=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'players' => array(self::HAS_MANY, 'PlayerRecord', 'Player_Skills'),
);
@@ -803,7 +803,7 @@ class Item extends TActiveRecord
public $related_item_id;
public $related_items=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'related_items' => array(self::HAS_MANY,
'Item', 'related_items.related_item_id'),