From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- .../day2/blog/protected/database/PostRecord.php | 54 ++++++++++---------- .../day2/blog/protected/database/UserRecord.php | 54 ++++++++++---------- .../day2/blog/protected/layouts/MainLayout.php | 12 ++--- .../samples/day2/blog/protected/pages/Contact.php | 58 +++++++++++----------- 4 files changed, 89 insertions(+), 89 deletions(-) (limited to 'demos/blog-tutorial/samples/day2/blog/protected') 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 25702727..3407c09b 100644 --- a/demos/blog-tutorial/samples/day2/blog/protected/database/PostRecord.php +++ b/demos/blog-tutorial/samples/day2/blog/protected/database/PostRecord.php @@ -1,28 +1,28 @@ - array(self::BELONGS_TO, 'UserRecord'), - ); - - public static function finder($className=__CLASS__) - { - return parent::finder($className); - } -} + array(self::BELONGS_TO, 'UserRecord'), + ); + + public static function finder($className=__CLASS__) + { + return parent::finder($className); + } +} ?> \ No newline at end of file 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 2051e5de..021f8b09 100644 --- a/demos/blog-tutorial/samples/day2/blog/protected/database/UserRecord.php +++ b/demos/blog-tutorial/samples/day2/blog/protected/database/UserRecord.php @@ -1,28 +1,28 @@ - array(self::HAS_MANY, 'PostRecord'), - ); - - public static function finder($className=__CLASS__) - { - return parent::finder($className); - } -} + array(self::HAS_MANY, 'PostRecord'), + ); + + public static function finder($className=__CLASS__) + { + return parent::finder($className); + } +} ?> \ No newline at end of file diff --git a/demos/blog-tutorial/samples/day2/blog/protected/layouts/MainLayout.php b/demos/blog-tutorial/samples/day2/blog/protected/layouts/MainLayout.php index 253d6c03..c966ba85 100644 --- a/demos/blog-tutorial/samples/day2/blog/protected/layouts/MainLayout.php +++ b/demos/blog-tutorial/samples/day2/blog/protected/layouts/MainLayout.php @@ -1,7 +1,7 @@ - \ No newline at end of file diff --git a/demos/blog-tutorial/samples/day2/blog/protected/pages/Contact.php b/demos/blog-tutorial/samples/day2/blog/protected/pages/Contact.php index b6ce575e..77d7374a 100644 --- a/demos/blog-tutorial/samples/day2/blog/protected/pages/Contact.php +++ b/demos/blog-tutorial/samples/day2/blog/protected/pages/Contact.php @@ -1,30 +1,30 @@ -IsValid) // check if input validation is successful - { - // obtain the user name, email, feedback from the textboxes - $name = $this->Name->Text; - $email = $this->Email->Text; - $feedback = $this->Feedback->Text; - - // send an email to administrator with the above information - $this->mailFeedback($name, $email, $feedback); - } - } - - protected function mailFeedback($name, $email, $feedback) - { - // implementation of sending the feedback email - } -} - +IsValid) // check if input validation is successful + { + // obtain the user name, email, feedback from the textboxes + $name = $this->Name->Text; + $email = $this->Email->Text; + $feedback = $this->Feedback->Text; + + // send an email to administrator with the above information + $this->mailFeedback($name, $email, $feedback); + } + } + + protected function mailFeedback($name, $email, $feedback) + { + // implementation of sending the feedback email + } +} + ?> \ No newline at end of file -- cgit v1.2.3