As Gonzalo wrote, check out partuza (http://code.google.com/p/
partuza), it's a nice example of how you could get started on this.
What you do to add your own data services to shindig is
1) add the path to those classes & files to 'extension_class_paths' in
the configuration
2) Add the class names for your People, AppData and Activity service
classes to the config
3) ... well there is no step 3 :P
For instance to configure shindig to use Partuza's data classes i
locally have:
'people_service' => 'PartuzaPeopleService',
'activity_service' => 'PartuzaActivitiesService',
'app_data_service' => 'PartuzaAppDataService',
'extension_class_paths' => '/Users/chabotc/googleprojects/
partuza/Shindig',
The just fill in the APIs of your own classes with whatever you need
to do to save & retrieve the data, and your done.
-- Chris
On Jul 16, 2008, at 5:29 PM, Gonzalo Aune wrote:
Just follow the examples at Partuza, is a great example of how you can
connect an SNS with Shindig.
G.-
On Wed, Jul 16, 2008 at 12:27 PM, Erel Segal <[EMAIL PROTECTED]>
wrote:
After several weeks of studying Shindig and the sample container, I
would
like to create my own container that will deal with my own social
data (on
a
local MySQL database).
I thought of duplicating the "socialdata/samplecontainer" and
"socialrest/samplecontainer" folders, and changing the classes to
read from
my database instead of the XmlStateFileFetcher.php. However, in
this case I
also have to change index.php to read from my folders instead of the
samplecontainer folders, and then I may have problems when updating
the
SVN.
Is there a better way to connect Shindig to an existing database?