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 --- .../protected/pages/AddressProvider.php | 96 +++++++++++----------- 1 file changed, 48 insertions(+), 48 deletions(-) (limited to 'demos/address-book/protected/pages/AddressProvider.php') diff --git a/demos/address-book/protected/pages/AddressProvider.php b/demos/address-book/protected/pages/AddressProvider.php index 94b71e11..e903f540 100644 --- a/demos/address-book/protected/pages/AddressProvider.php +++ b/demos/address-book/protected/pages/AddressProvider.php @@ -1,50 +1,50 @@ - - * @version $Id$ - * @since 3.1 - */ -class AddressProvider -{ - /** - * @return AddressRecord[] - * @soapmethod - */ - public function getAllAddress() - { - return AddressRecord::finder()->findAll(); - } - - /** - * Update address if $data->id > 0, otherwise add new address. - * @param AddressRecord $data - * @return boolean - * @soapmethod - */ - public function saveAddress($data) - { - $finder = AddressRecord::finder(); - if($data->id > 0 && $address=$finder->findByPk($data->id)) - { - return $address->copyFrom($data)->save(); - } - else - { - $data->id = null; //nullify the id - return $data->save(); - } - } - - /** - * @param integer $id - * @return integer number of records deleted - * @soapmethod - */ - public function deleteAddress($id) - { - return AddressRecord::finder()->deleteByPk($id); - } -} + + * @version $Id$ + * @since 3.1 + */ +class AddressProvider +{ + /** + * @return AddressRecord[] + * @soapmethod + */ + public function getAllAddress() + { + return AddressRecord::finder()->findAll(); + } + + /** + * Update address if $data->id > 0, otherwise add new address. + * @param AddressRecord $data + * @return boolean + * @soapmethod + */ + public function saveAddress($data) + { + $finder = AddressRecord::finder(); + if($data->id > 0 && $address=$finder->findByPk($data->id)) + { + return $address->copyFrom($data)->save(); + } + else + { + $data->id = null; //nullify the id + return $data->save(); + } + } + + /** + * @param integer $id + * @return integer number of records deleted + * @soapmethod + */ + public function deleteAddress($id) + { + return AddressRecord::finder()->deleteByPk($id); + } +} ?> \ No newline at end of file -- cgit v1.2.3