diff options
author | ctrlaltca <> | 2012-07-12 11:21:01 +0000 |
---|---|---|
committer | ctrlaltca <> | 2012-07-12 11:21:01 +0000 |
commit | 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch) | |
tree | e08bf04f0823650a231227ac3499121270172a23 /tests/simple_unit/ActiveRecord/records | |
parent | 3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff) |
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'tests/simple_unit/ActiveRecord/records')
7 files changed, 152 insertions, 152 deletions
diff --git a/tests/simple_unit/ActiveRecord/records/Blogs.php b/tests/simple_unit/ActiveRecord/records/Blogs.php index c32ca6b6..680b3141 100644 --- a/tests/simple_unit/ActiveRecord/records/Blogs.php +++ b/tests/simple_unit/ActiveRecord/records/Blogs.php @@ -1,14 +1,14 @@ -<?php
-class Blogs extends TActiveRecord
-{
- public $blog_id;
- public $blog_name;
- public $blog_author;
-
- public static function finder($className=__CLASS__)
- {
- return parent::finder($className);
- }
-}
+<?php +class Blogs extends TActiveRecord +{ + public $blog_id; + public $blog_name; + public $blog_author; + + public static function finder($className=__CLASS__) + { + return parent::finder($className); + } +} ?>
\ No newline at end of file diff --git a/tests/simple_unit/ActiveRecord/records/DepSections.php b/tests/simple_unit/ActiveRecord/records/DepSections.php index 7b213c33..6f37ae3e 100644 --- a/tests/simple_unit/ActiveRecord/records/DepSections.php +++ b/tests/simple_unit/ActiveRecord/records/DepSections.php @@ -1,16 +1,16 @@ -<?php
-class DepSections extends TActiveRecord
-{
- public $department_id;
- public $section_id;
- public $order;
-
- const TABLE='department_sections';
-
- public static function finder($className=__CLASS__)
- {
- return parent::finder($className);
- }
-}
+<?php +class DepSections extends TActiveRecord +{ + public $department_id; + public $section_id; + public $order; + + const TABLE='department_sections'; + + public static function finder($className=__CLASS__) + { + return parent::finder($className); + } +} ?>
\ No newline at end of file diff --git a/tests/simple_unit/ActiveRecord/records/DepartmentRecord.php b/tests/simple_unit/ActiveRecord/records/DepartmentRecord.php index 61307826..732610ae 100644 --- a/tests/simple_unit/ActiveRecord/records/DepartmentRecord.php +++ b/tests/simple_unit/ActiveRecord/records/DepartmentRecord.php @@ -1,18 +1,18 @@ -<?php
-class DepartmentRecord extends TActiveRecord
-{
- public $department_id;
- public $name;
- public $description;
- public $active;
- public $order;
-
- const TABLE = 'departments';
-
- public static function finder($className=__CLASS__)
- {
- return parent::finder($className);
- }
-}
+<?php +class DepartmentRecord extends TActiveRecord +{ + public $department_id; + public $name; + public $description; + public $active; + public $order; + + const TABLE = 'departments'; + + public static function finder($className=__CLASS__) + { + return parent::finder($className); + } +} ?>
\ No newline at end of file diff --git a/tests/simple_unit/ActiveRecord/records/ItemRecord.php b/tests/simple_unit/ActiveRecord/records/ItemRecord.php index 52a1a658..8585ebaf 100644 --- a/tests/simple_unit/ActiveRecord/records/ItemRecord.php +++ b/tests/simple_unit/ActiveRecord/records/ItemRecord.php @@ -1,49 +1,49 @@ -<?php
-
-class ItemRecord extends TActiveRecord
-{
- const TABLE='items';
- public $item_id;
- public $name;
- public $brand_specific;
- public $description;
- public $meta;
- public $active;
- public $need_review;
- public $category_id;
- public $type_id;
- public $content;
- public $standard_id;
- public $timestamp;
-
- public $related_items = array();
- public $related_item_id;
-
- public static $RELATIONS=array
- (
- 'related_items' => array(self::MANY_TO_MANY, 'ItemRecord', 'related_items.related_item_id'),
- );
-
- public function getDbConnection()
- {
- static $conn;
- if($conn===null)
- {
- $conn = new TDbConnection('pgsql:host=localhost;dbname=test', 'test','test');
- $this->OnExecuteCommand[] = array($this,'logger');
- }
- return $conn;
- }
-
- public function logger($sender,$param)
- {
- //var_dump($param->Command->Text);
- }
-
- public static function finder($className=__CLASS__)
- {
- return parent::finder($className);
- }
-}
-
+<?php + +class ItemRecord extends TActiveRecord +{ + const TABLE='items'; + public $item_id; + public $name; + public $brand_specific; + public $description; + public $meta; + public $active; + public $need_review; + public $category_id; + public $type_id; + public $content; + public $standard_id; + public $timestamp; + + public $related_items = array(); + public $related_item_id; + + public static $RELATIONS=array + ( + 'related_items' => array(self::MANY_TO_MANY, 'ItemRecord', 'related_items.related_item_id'), + ); + + public function getDbConnection() + { + static $conn; + if($conn===null) + { + $conn = new TDbConnection('pgsql:host=localhost;dbname=test', 'test','test'); + $this->OnExecuteCommand[] = array($this,'logger'); + } + return $conn; + } + + public function logger($sender,$param) + { + //var_dump($param->Command->Text); + } + + public static function finder($className=__CLASS__) + { + return parent::finder($className); + } +} + ?>
\ No newline at end of file diff --git a/tests/simple_unit/ActiveRecord/records/SimpleUser.php b/tests/simple_unit/ActiveRecord/records/SimpleUser.php index 4ff0b982..cfba272e 100644 --- a/tests/simple_unit/ActiveRecord/records/SimpleUser.php +++ b/tests/simple_unit/ActiveRecord/records/SimpleUser.php @@ -1,14 +1,14 @@ -<?php
-class SimpleUser extends TActiveRecord
-{
- public $username;
-
- const TABLE='simple_users';
-
- public static function finder($className=__CLASS__)
- {
- return parent::finder($className);
- }
-}
+<?php +class SimpleUser extends TActiveRecord +{ + public $username; + + const TABLE='simple_users'; + + public static function finder($className=__CLASS__) + { + return parent::finder($className); + } +} ?>
\ No newline at end of file diff --git a/tests/simple_unit/ActiveRecord/records/SqliteUsers.php b/tests/simple_unit/ActiveRecord/records/SqliteUsers.php index ffa47c72..8e5b9fde 100644 --- a/tests/simple_unit/ActiveRecord/records/SqliteUsers.php +++ b/tests/simple_unit/ActiveRecord/records/SqliteUsers.php @@ -1,16 +1,16 @@ -<?php
-class SqliteUsers extends TActiveRecord
-{
- public $username;
- public $password;
- public $email;
-
- const TABLE='users';
-
- public static function finder($className=__CLASS__)
- {
- return parent::finder($className);
- }
-}
+<?php +class SqliteUsers extends TActiveRecord +{ + public $username; + public $password; + public $email; + + const TABLE='users'; + + public static function finder($className=__CLASS__) + { + return parent::finder($className); + } +} ?>
\ No newline at end of file diff --git a/tests/simple_unit/ActiveRecord/records/UserRecord.php b/tests/simple_unit/ActiveRecord/records/UserRecord.php index c3cb78b2..c4e8ce60 100644 --- a/tests/simple_unit/ActiveRecord/records/UserRecord.php +++ b/tests/simple_unit/ActiveRecord/records/UserRecord.php @@ -1,38 +1,38 @@ -<?php
-class UserRecord extends TActiveRecord
-{
- public $username;
- public $password;
- public $email;
- public $first_name;
- public $last_name;
- public $job_title;
- public $work_phone;
- public $work_fax;
- public $active=true;
- public $department_id;
- public $salutation;
- public $hint_question;
- public $hint_answer;
-
- private $_level=-1;
-
- const TABLE='users';
-
- public function getLevel()
- {
- return $this->_level;
- }
-
- public function setLevel($level)
- {
- $this->_level=TPropertyValue::ensureInteger($level);
- }
-
- public static function finder($className=__CLASS__)
- {
- return parent::finder($className);
- }
-}
+<?php +class UserRecord extends TActiveRecord +{ + public $username; + public $password; + public $email; + public $first_name; + public $last_name; + public $job_title; + public $work_phone; + public $work_fax; + public $active=true; + public $department_id; + public $salutation; + public $hint_question; + public $hint_answer; + + private $_level=-1; + + const TABLE='users'; + + public function getLevel() + { + return $this->_level; + } + + public function setLevel($level) + { + $this->_level=TPropertyValue::ensureInteger($level); + } + + public static function finder($className=__CLASS__) + { + return parent::finder($className); + } +} ?>
\ No newline at end of file |