diff options
Diffstat (limited to 'demos/address-book/protected/pages/AddressProvider.php')
-rw-r--r-- | demos/address-book/protected/pages/AddressProvider.php | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/demos/address-book/protected/pages/AddressProvider.php b/demos/address-book/protected/pages/AddressProvider.php index ae0b369f..94b71e11 100644 --- a/demos/address-book/protected/pages/AddressProvider.php +++ b/demos/address-book/protected/pages/AddressProvider.php @@ -1,36 +1,13 @@ -<?php -
+<?php
Prado::using('Application.pages.AddressRecord');
/**
* @author Wei Zhuo <weizho[at]gmail[dot]com>
* @version $Id$
* @since 3.1
*/
-class AddressProvider extends TApplicationComponent
+class AddressProvider
{
/**
- * @throws exception if not logged in
- */
- public function __construct($server)
- {
- $authMethods = $server->getRequestedMethod()!=='login';
- $guestUser = $this->User ? $this->User->IsGuest : true;
- if($authMethods && $guestUser)
- throw new TException('authentication required');
- }
-
- /**
- * @param string $username
- * @param string $password
- * @return boolean
- * @soapmethod
- */
- public function login($username, $password)
- {
- return $this->Application->Modules['auth']->login($username, $password);
- }
-
- /**
* @return AddressRecord[]
* @soapmethod
*/
|