SiteController

Extends\CController Implements\IWebServiceProvider

package

Default

Methods

This is the default action that displays the phonebook Flex client.

actionIndex()

Declares the 'phonebook' Web service action.

actions()

This action serves as a SOAP client to test the phonebook Web service.

actionTest()

This method is required by IWebServiceProvider.

afterWebMethod( $service)

Arguments

$service

This method is required by IWebServiceProvider.

beforeWebMethod( $service): boolean

It makes sure the user is logged in before making changes to data.

Arguments

$service

Response

boolean

whether the remote method should be executed.

Deletes the specified contact record.

deleteContact( $id): integer
soap

Arguments

$id

Response

integer

number of records deleted

Returns all contact records.

getContacts(): array<mixed,\Contact>
soap

Response

array<mixed,\Contact>

the contact records

Updates or inserts a contact.

saveContact( $contact): boolean

If the ID is null, an insertion will be performed; Otherwise it updates the existing one.

soap

Arguments

$contact

Response

boolean

whether saving is successful