summaryrefslogtreecommitdiff
path: root/plugins/YammerImport/classes/Yammer_state.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-23 15:23:56 -0700
committerBrion Vibber <brion@pobox.com>2010-09-23 15:23:56 -0700
commiteb8be9988eed03b285fa2095a1d99010f928b117 (patch)
tree71a9bba1ed8a9e288e3a26f9ab94547410e28989 /plugins/YammerImport/classes/Yammer_state.php
parent5183997e3585d9201e08e5934307b90921ae92a1 (diff)
Work in progress: YammerRunner state machine wrapper for running the Yammer import in chunks.
Diffstat (limited to 'plugins/YammerImport/classes/Yammer_state.php')
-rw-r--r--plugins/YammerImport/classes/Yammer_state.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/YammerImport/classes/Yammer_state.php b/plugins/YammerImport/classes/Yammer_state.php
index 98a656bfc..0174ead15 100644
--- a/plugins/YammerImport/classes/Yammer_state.php
+++ b/plugins/YammerImport/classes/Yammer_state.php
@@ -38,6 +38,7 @@ class Yammer_state extends Memcached_DataObject
public $state; // import state key
public $request_token; // oauth request token; clear when auth is complete.
public $oauth_token; // actual oauth token! clear when import is done?
+ public $oauth_secret; // actual oauth secret! clear when import is done?
public $users_page; // last page of users we've fetched
public $groups_page; // last page of groups we've fetched
public $messages_oldest; // oldest message ID we've fetched
@@ -55,6 +56,7 @@ class Yammer_state extends Memcached_DataObject
new ColumnDef('state', 'text'),
new ColumnDef('request_token', 'text'),
new ColumnDef('oauth_token', 'text'),
+ new ColumnDef('oauth_secret', 'text'),
new ColumnDef('users_page', 'int'),
new ColumnDef('groups_page', 'int'),
new ColumnDef('messages_oldest', 'bigint'),
@@ -78,6 +80,7 @@ class Yammer_state extends Memcached_DataObject
'state' => DB_DATAOBJECT_STR,
'request_token' => DB_DATAOBJECT_STR,
'oauth_token' => DB_DATAOBJECT_STR,
+ 'oauth_secret' => DB_DATAOBJECT_STR,
'users_page' => DB_DATAOBJECT_INT,
'groups_page' => DB_DATAOBJECT_INT,
'messages_oldest' => DB_DATAOBJECT_INT,