Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current  |   View Page History
Under Construction
This proposal is under construction and is not ready for review.

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

Zend Framework: Zend_Service_SecondLife Component Proposal

Proposed Component Name Zend_Service_SecondLife
Developer Notes
Proposers Lars Strojny
Darby Felton, Zend liaison
Revision 0.1 - 10 March 2007: Initial submission
0.2 - 26 December: Added details (wiki revision: 5)

Table of Contents

1. Overview

Zend_Service_SecondLife provides a convenient way to access the Second Life API provided by Linden Labs. Second Life is a virtual reality game.
Currently the API just offers methods to create new accounts.

2. References

*Linden Labs PHP-lib (PHP4 only)
*Second Life API documentation

3. Component Requirements, Constraints, and Acceptance Criteria

4. Dependencies on Other Framework Components

  • Zend_Exception

5. Theory of Operation

This component is used to call the Secondlife API. Until now only user registrations are possible.

6. Milestones / Tasks

  • Milestone 1: Get feedback
  • Milestone 2: [DONE] Working prototype checked into the incubator supporting retrieval of valid SL last names, getting error codes, verifying names and creating users.
  • Milestone 4: Unit tests exist, work, and are checked into SVN.
  • Milestone 5: Initial documentation exists.

7. Class Index

  • Zend_Service_SecondLife
  • Zend_Service_SecondLife_Value_Array
  • Zend_Service_SecondLife_Value_Boolean
  • Zend_Service_SecondLife_Value_Collection
  • Zend_Service_SecondLife_Value_Integer
  • Zend_Service_SecondLife_Value_Key
  • Zend_Service_SecondLife_Value_Llsd
  • Zend_Service_SecondLife_Value_Map
  • Zend_Service_SecondLife_Value_Abstract
  • Zend_Service_SecondLife_Value_Scalar
  • Zend_Service_SecondLife_Value_String
  • Zend_Service_SecondLife_Exception

8. Use Cases


$client = new Zend_Service_SecondLife($firstname, $lastname, $password);
if (!in_array($_POST['name'], $client->getNames()) {
$msg = "Invalid last name";
} elseif (!$client->checkName($_POST['first_name'], $_POST['name']) {
$msg = "Name already registered";
} elsif (!$client->createUser($_POST['first_name'], $_POST['name'], $_POST['date_of_birth'])) {
$msg = "Could not register account";
} else

Unknown macro: { $msg = "Everything worked fine";}{/code}

9. Class Skeletons


Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.