In some brief tests, this causes no problems.
In this state however, you would need to modify DB_DataObject to have a static declaration of staticget (and probably pkeyGet). The next commit will change the staticGet overload to a unique function name (like getKV for getKeyValue), which means we can properly call the function by PHP Strict Standards.
),
);
}
-
- function staticGet($k,$v=NULL) {
- return Memcached_DataObject::staticGet('Old_school_prefs',$k,$v);
- }
}
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
/* Static get */
- function staticGet($k,$v=NULL) {
+ static function staticGet($k,$v=NULL) {
$i = DB_DataObject::staticGet('Status_network',$k,$v);
// Don't use local process cache; if we're fetching multiple
public $nickname; // varchar(64) UUID
public $created; // datetime
- /**
- * Get an instance by key
- *
- * @param string $k Key to use to lookup (usually 'id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return Happening object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Unavailable_status_network', $k, $v);
- }
-
/**
* The One True Thingy that must be defined and declared.
*/
* @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
* @link http://status.net/
*/
-class Fave_tally extends Memcached_DataObject
+class Fave_tally extends Managed_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
public $count; // int(4) not_null
public $modified; // datetime not_null default_0000-00-00%2000%3A00%3A00
- /* Static get */
- function staticGet($k, $v = NULL) { return Memcached_DataObject::staticGet('Fave_tally', $k, $v); }
-
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
*
* @see DB_DataObject
*/
-class Homepage_blacklist extends Memcached_DataObject
+class Homepage_blacklist extends Managed_DataObject
{
public $__table = 'homepage_blacklist'; // table name
public $pattern; // string pattern
public $created; // datetime
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup (usually 'user_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return Homepage_blacklist object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Homepage_blacklist', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
*
* @see DB_DataObject
*/
-class Nickname_blacklist extends Memcached_DataObject
+class Nickname_blacklist extends Managed_DataObject
{
public $__table = 'nickname_blacklist'; // table name
public $pattern; // string pattern
public $created; // datetime
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup
- * @param mixed $v Value to lookup
- *
- * @return Nickname_blacklist object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Nickname_blacklist', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
*
* @see DB_DataObject
*/
-class Bookmark extends Memcached_DataObject
+class Bookmark extends Managed_DataObject
{
public $__table = 'bookmark'; // table name
public $id; // char(36) primary_key not_null
public $uri; // varchar(255)
public $created; // datetime
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup (usually 'user_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return User_greeting_count object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Bookmark', $k, $v);
- }
-
/**
* Get an instance by compound key
*
*
* @see DB_DataObject
*/
-class Email_summary_status extends Memcached_DataObject
+class Email_summary_status extends Managed_DataObject
{
public $__table = 'email_summary_status'; // table name
public $user_id; // int(4) primary_key not_null
public $created; // datetime not_null
public $modified; // datetime not_null
- /**
- * Get an instance by key
- *
- * @param string $k Key to use to lookup (usually 'user_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return Email_summary_status object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('email_summary_status', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
*
* @see DB_DataObject
*/
-class Notice_to_item extends Memcached_DataObject
+class Notice_to_item extends Managed_DataObject
{
public $__table = 'notice_to_item'; // table name
public $notice_id; // int(4) primary_key not_null
public $item_id; // varchar(255) not null
public $created; // datetime
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup
- * @param mixed $v Value to lookup
- *
- * @return Notice_to_item object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Notice_to_item', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
*
* @see DB_DataObject
*/
-class User_followeveryone_prefs extends Memcached_DataObject
+class User_followeveryone_prefs extends Managed_DataObject
{
public $__table = 'user_followeveryone_prefs'; // table name
public $user_id; // int(4) primary_key not_null
public $followeveryone; // tinyint(1)
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup (usually 'user_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return User_followeveryone_prefs object found, or null for no hits
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('User_followeveryone_prefs', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
-class GNUsocialPhoto extends Memcached_DataObject
+class GNUsocialPhoto extends Managed_DataObject
{
public $__table = 'GNUsocialPhoto';
public $id; // int(11)
public $thumb_uri; // varchar(512)
public $title; // varchar(512)
public $photo_description; // text
-
-
- /**
- *
- * k key
- * v value
- */
- function staticGet($k,$v=NULL)
- {
- return Memcached_DataObject::staticGet('GNUsocialPhoto',$k,$v);
- }
/* function delete()
{
require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
-class GNUsocialPhotoAlbum extends Memcached_DataObject
+class GNUsocialPhotoAlbum extends Managed_DataObject
{
public $__table = 'GNUsocialPhotoAlbum';
public $album_id; // int(11) -- Unique identifier for the album
public $album_name; // varchar(256) -- Title for this album
public $album_description; // text -- A description of the album
-
- function staticGet($k,$v=NULL)
- {
- return Memcached_DataObject::staticGet('GNUsocialPhotoAlbum',$k,$v);
- }
-
-
/* TODO: Primary key on both album_id, profile_id / foriegn key on profile_id */
function table()
{
require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
-class GNUsocialProfileExtensionField extends Memcached_DataObject
+class GNUsocialProfileExtensionField extends Managed_DataObject
{
public $__table = 'GNUsocialProfileExtensionField';
public $id; // int(11)
public $description; // text
public $type; // varchar(256)
- /**
- *
- * k key
- * v value
- */
- function staticGet($k,$v=NULL)
- {
- return Memcached_DataObject::staticGet('GNUsocialProfileExtensionField',$k,$v);
- }
-
-
function table()
{
return array('id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
-class GNUsocialProfileExtensionResponse extends Memcached_DataObject
+class GNUsocialProfileExtensionResponse extends Managed_DataObject
{
public $__table = 'GNUsocialProfileExtensionResponse';
public $id; // int(11)
public $profile_id; // int(11)
public $value; // text
- /**
- *
- * k key
- * v value
- */
- function staticGet($k,$v=NULL)
- {
- return Memcached_DataObject::staticGet('GNUsocialProfileExtensionResponse',$k,$v);
- }
-
-
function table()
{
return array('id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
-class GNUsocialPhoto extends Memcached_DataObject
+class GNUsocialPhoto extends Managed_DataObject
{
public $__table = 'GNUsocialPhoto';
public $id; // int(11)
public $thumb_uri; // varchar(512)
public $title; // varchar(512)
public $photo_description; // text
-
-
- /**
- *
- * k key
- * v value
- */
- function staticGet($k,$v=NULL)
- {
- return Memcached_DataObject::staticGet('GNUsocialPhoto',$k,$v);
- }
/* function delete()
{
*
* @see DB_DataObject
*/
-class Group_message extends Memcached_DataObject
+class Group_message extends Managed_DataObject
{
public $__table = 'group_message'; // table name
public $id; // char(36) primary_key not_null
public $url;
public $created;
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup (usually 'user_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return Group_message object found, or null for no hits
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Group_message', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
*
* @see DB_DataObject
*/
-class Group_message_profile extends Memcached_DataObject
+class Group_message_profile extends Managed_DataObject
{
public $__table = 'group_message_profile'; // table name
public $to_profile; // int
public $group_message_id; // char(36) primary_key not_null
public $created;
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup (usually 'user_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return Group_message object found, or null for no hits
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Group_message_profile', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
*
* @see DB_DataObject
*/
-class Group_privacy_settings extends Memcached_DataObject
+class Group_privacy_settings extends Managed_DataObject
{
public $__table = 'group_privacy_settings';
/** ID of the group. */
const MEMBER = 2;
const ADMIN = 4;
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup (usually 'user_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return User_greeting_count object found, or null for no hits
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Group_privacy_settings', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
\r
require_once INSTALLDIR.'/classes/Memcached_DataObject.php';\r
\r
-class Irc_waiting_message extends Memcached_DataObject {\r
+class Irc_waiting_message extends Managed_DataObject {\r
\r
public $__table = 'irc_waiting_message'; // table name\r
public $id; // int primary_key not_null auto_increment\r
public $created; // datetime() not_null\r
public $claimed; // datetime()\r
\r
- /* Static get */\r
- public function staticGet($k, $v = null) {\r
- return Memcached_DataObject::staticGet('Irc_waiting_message', $k, $v);\r
- }\r
-\r
/**\r
* return table definition for DB_DataObject\r
*\r
*/\r
require_once INSTALLDIR.'/classes/Memcached_DataObject.php';\r
\r
-class Msn_waiting_message extends Memcached_DataObject {\r
+class Msn_waiting_message extends Managed_DataObject {\r
\r
public $__table = 'msn_waiting_message'; // table name\r
public $id; // int primary_key not_null auto_increment\r
public $created; // datetime() not_null\r
public $claimed; // datetime()\r
\r
- /* Static get */\r
- public function staticGet($k, $v = null) {\r
- return Memcached_DataObject::staticGet('Msn_waiting_message', $k, $v);\r
- }\r
-\r
/**\r
* return table definition for DB_DataObject\r
*\r
*
* @see DB_DataObject
*/
-class Notice_title extends Memcached_DataObject
+class Notice_title extends Managed_DataObject
{
const MAXCHARS = 255;
public $notice_id; // int(4) primary_key not_null
public $title; // varchar(255)
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup (usually 'user_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return Notice_title object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Notice_title', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
* Higher-level behavior building OStatus stuff on top is handled
* under Ostatus_profile.
*/
-class FeedSub extends Memcached_DataObject
+class FeedSub extends Managed_DataObject
{
public $__table = 'feedsub';
public $created;
public $modified;
- public /*static*/ function staticGet($k, $v=null)
- {
- return parent::staticGet(__CLASS__, $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
* @package Hub
* @author Brion Vibber <brion@status.net>
*/
-class HubSub extends Memcached_DataObject
+class HubSub extends Managed_DataObject
{
public $__table = 'hubsub';
public $created;
public $modified;
- public /*static*/ function staticGet($topic, $callback)
- {
- return parent::staticGet(__CLASS__, 'hashkey', self::hashkey($topic, $callback));
- }
-
protected static function hashkey($topic, $callback)
{
return sha1($topic . '|' . $callback);
require_once 'Crypt/RSA.php';
-class Magicsig extends Memcached_DataObject
+class Magicsig extends Managed_DataObject
{
const PUBLICKEYREL = 'magic-public-key';
$this->alg = $alg;
}
- /**
- * Fetch a Magicsig object from the cache or database on a field match.
- *
- * @param string $k
- * @param mixed $v
- * @return Magicsig
- */
- public /*static*/ function staticGet($k, $v=null)
- {
- $obj = parent::staticGet(__CLASS__, $k, $v);
- if (!empty($obj)) {
- $obj = Magicsig::fromString($obj->keypair);
-
- // Double check keys: Crypt_RSA did not
- // consistently generate good keypairs.
- // We've also moved to 1024 bit keys.
- if (strlen($obj->publicKey->modulus->toBits()) != 1024) {
- $obj->delete();
- return false;
- }
- }
-
- return $obj;
- }
-
-
function table()
{
return array(
* @package OStatusPlugin
* @maintainer Brion Vibber <brion@status.net>
*/
-class Ostatus_source extends Memcached_DataObject
+class Ostatus_source extends Managed_DataObject
{
public $__table = 'ostatus_source';
public $profile_uri; // uri of the ostatus_profile this came through -- may be a group feed
public $method; // push or salmon
- public /*static*/ function staticGet($k, $v=null)
- {
- return parent::staticGet(__CLASS__, $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
exit(1);
}
-class User_openid extends Memcached_DataObject
+class User_openid extends Managed_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
public $created; // datetime() not_null
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
- /* Static get */
- function staticGet($k,$v=null)
- { return Memcached_DataObject::staticGet('User_openid',$k,$v); }
-
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
exit(1);
}
-class User_openid_trustroot extends Memcached_DataObject
+class User_openid_trustroot extends Managed_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
public $created; // datetime() not_null
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
- /* Static get */
- function staticGet($k,$v=null)
- { return Memcached_DataObject::staticGet('User_openid_trustroot',$k,$v); }
-
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
* @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
* @link http://status.net/
*/
-class Registration_ip extends Memcached_DataObject
+class Registration_ip extends Managed_DataObject
{
public $__table = 'registration_ip'; // table name
public $user_id; // int(4) primary_key not_null
public $ipaddress; // varchar(15)
public $created; // timestamp
- /**
- * Get an instance by key
- *
- * @param string $k Key to use to lookup (usually 'user_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return User_greeting_count object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Registration_ip', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
*
* @see DB_DataObject
*/
-class User_greeting_count extends Memcached_DataObject
+class User_greeting_count extends Managed_DataObject
{
public $__table = 'user_greeting_count'; // table name
public $user_id; // int(4) primary_key not_null
public $greeting_count; // int(4)
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup (usually 'user_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return User_greeting_count object found, or null for no hits
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('User_greeting_count', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
*
* @see DB_DataObject
*/
-class Sitemap_notice_count extends Memcached_DataObject
+class Sitemap_notice_count extends Managed_DataObject
{
public $__table = 'sitemap_notice_count'; // table name
public $created;
public $modified;
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup (usually 'notice_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return Sitemap_notice_count object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Sitemap_notice_count', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
*
* @see DB_DataObject
*/
-class Sitemap_user_count extends Memcached_DataObject
+class Sitemap_user_count extends Managed_DataObject
{
public $__table = 'sitemap_user_count'; // table name
public $created;
public $modified;
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup (usually 'user_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return Sitemap_user_count object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Sitemap_user_count', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
* @maintainer Brion Vibber <brion@status.net>
*/
-class SubMirror extends Memcached_DataObject
+class SubMirror extends Managed_DataObject
{
public $__table = 'submirror';
public $created;
public $modified;
- public /*static*/ function staticGet($k, $v=null)
- {
- return parent::staticGet(__CLASS__, $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
* @see DB_DataObject
*/
-class Notice_to_status extends Memcached_DataObject
+class Notice_to_status extends Managed_DataObject
{
public $__table = 'notice_to_status'; // table name
public $notice_id; // int(4) primary_key not_null
public $status_id; // int(4)
public $created; // datetime
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup
- * @param mixed $v Value to lookup
- *
- * @return Notice_to_status object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Notice_to_status', $k, $v);
- }
-
/**
* return table definition for DB_DataObject
*
*
* @see DB_DataObject
*/
-class Twitter_synch_status extends Memcached_DataObject
+class Twitter_synch_status extends Managed_DataObject
{
public $__table = 'twitter_synch_status'; // table name
public $foreign_id; // int(4) primary_key not_null
*
* @return Twitter_synch_status object found, or null for no hits
*/
- function staticGet($k, $v=null)
+ static function staticGet($k, $v=null)
{
throw new Exception("Use pkeyGet() for this class.");
}
* @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
* @link http://status.net/
*/
-class User_flag_profile extends Memcached_DataObject
+class User_flag_profile extends Managed_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
public $created; // datetime not_null default_0000-00-00%2000%3A00%3A00
public $cleared; // datetime not_null default_0000-00-00%2000%3A00%3A00
- /* Static get */
- function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('User_flag_profile',$k,$v); }
-
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
* Common base class for the Yammer import mappings for users, groups, and notices.
*
* Child classes must override these static methods, since we need to run
- * on PHP 5.2.x which has no late static binding:
+ * on PHP 5.2.x which has no late static binding: (not really anymore)
* - staticGet (as our other classes)
* - schemaDef (call self::doSchemaDef)
* - record (call self::doRecord)
*/
-class Yammer_common extends Memcached_DataObject
+class Yammer_common extends Managed_DataObject
{
public $__table = 'yammer_XXXX'; // table name
public $__field = 'XXXX_id'; // field name to save into
*/
protected static function doRecord($class, $field, $orig_id, $local_id)
{
- $map = parent::staticGet($class, 'id', $orig_id);
+ $map = Memcached_DataObject::staticGet($class, 'id', $orig_id);
if (!empty($map)) {
return $map;
}
- $map = parent::staticGet($class, $field, $local_id);
+ $map = Memcached_DataObject::staticGet($class, $field, $local_id);
if (!empty($map)) {
return $map;
public $__field = 'group_id'; // field to map to
public $group_id; // int
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup
- * @param mixed $v Value to lookup
- *
- * @return Yammer_group object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Yammer_group', $k, $v);
- }
-
/**
* Return schema definition to set this table up in onCheckSchema
*/
public $__field = 'notice_id'; // field to map to
public $notice_id; // int
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup
- * @param mixed $v Value to lookup
- *
- * @return Yammer_notice object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Yammer_notice', $k, $v);
- }
-
/**
* Return schema definition to set this table up in onCheckSchema
*/
* down in reverse chronological order, then go back over them from oldest to
* newest and actually save them into our notice table.
*/
-class Yammer_notice_stub extends Memcached_DataObject
+class Yammer_notice_stub extends Managed_DataObject
{
public $__table = 'yammer_notice_stub'; // table name
public $id; // int primary_key not_null
public $json_data; // text
public $created; // datetime
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup
- * @param mixed $v Value to lookup
- *
- * @return Yammer_notice_stub object found, or null for no hits
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Yammer_notice_stub', $k, $v);
- }
-
/**
* Return schema definition to set this table up in onCheckSchema
*/
exit(1);
}
-class Yammer_state extends Memcached_DataObject
+class Yammer_state extends Managed_DataObject
{
public $__table = 'yammer_state'; // table name
public $id; // int primary_key not_null
public $created; // datetime
public $modified; // datetime
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup
- * @param mixed $v Value to lookup
- *
- * @return Yammer_state object found, or null for no hits
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Yammer_state', $k, $v);
- }
-
/**
* Return schema definition to set this table up in onCheckSchema
*/
public $__field = 'user_id'; // field to map to
public $user_id; // int
- /**
- * Get an instance by key
- *
- * This is a utility method to get a single instance with a given key value.
- *
- * @param string $k Key to use to lookup
- * @param mixed $v Value to lookup
- *
- * @return Yammer_user object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Yammer_user', $k, $v);
- }
-
/**
* Return schema definition to set this table up in onCheckSchema
*/