The switch to having a function in Managed_DataObject is now being applied
to plugins which can use this as well.
There are some plugins that still use Memcached_DataObject, but these will
be taken care of later.
20 files changed:
public $score; // float
public $created; // datetime
public $score; // float
public $created; // datetime
- /**
- * Get an instance by key
- *
- * @param string $k Key to use to lookup (usually 'notice_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return Spam_score object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Managed_DataObject::staticGet('Spam_score', $k, $v);
- }
-
function saveNew($notice, $result) {
$score = new Spam_score();
function saveNew($notice, $result) {
$score = new Spam_score();
public $modified; // datetime
const TYPE = ActivityObject::ARTICLE;
public $modified; // datetime
const TYPE = ActivityObject::ARTICLE;
-
- function staticGet($k, $v=null)
- {
- return Managed_DataObject::staticGet('Blog_entry', $k, $v);
- }
static function schemaDef()
{
static function schemaDef()
{
public $created; // timestamp
public $modified; // timestamp
public $created; // timestamp
public $modified; // timestamp
- /**
- * 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 QnA_Answer object found, or null for no hits
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('email_reminder', $k, $v);
- }
-
/**
* Do we need to send a reminder?
*
/**
* Do we need to send a reminder?
*
public $description; // text
public $created; // datetime
public $description; // text
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('Happening', $k, $v);
- }
-
/**
* The One True Thingy that must be defined and declared.
*/
/**
* The One True Thingy that must be defined and declared.
*/
public $response; // tinyint
public $created; // datetime
public $response; // tinyint
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 RSVP object found, or null for no hits
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('RSVP', $k, $v);
- }
-
/**
* Get an instance by compound key
*
/**
* Get an instance by compound key
*
public $created;
public $modified;
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
- * @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('Profile_detail', $k, $v);
- }
-
/**
* Get an instance by compound key
*
/**
* Get an instance by compound key
*
public $title; // varchar (255)
public $description; // text
public $profile_id; // int
public $title; // varchar (255)
public $description; // text
public $profile_id; // int
-
- public function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('photo', $k, $v);
- }
public function getByNotice($notice)
{
public function getByNotice($notice)
{
public $uri; // varchar (255) // This is the corresponding notice's uri.
public $url; // varchar (255)
public $profile_id; // int
public $uri; // varchar (255) // This is the corresponding notice's uri.
public $url; // varchar (255)
public $profile_id; // int
-
- public function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('Video', $k, $v);
- }
public function getByNotice($notice)
{
public function getByNotice($notice)
{
public $grant; // 1 = grant, 0 = revoke
public $created; // datetime
public $grant; // 1 = grant, 0 = revoke
public $created; // datetime
- /**
- * 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 TagSub object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Managed_DataObject::staticGet('ModLog', $k, $v);
- }
-
/**
* Get an instance by compound key
*
/**
* Get an instance by compound key
*
public $created;
public $modified;
public $created;
public $modified;
- public /*static*/ function staticGet($k, $v=null)
- {
- return parent::staticGet(__CLASS__, $k, $v);
- }
-
/**
* Return table definition for Schema setup and DB_DataObject usage.
*
/**
* Return table definition for Schema setup and DB_DataObject usage.
*
public $created; // datetime
public $modified; // datetime
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 (usually 'user_id' for this class)
- * @param mixed $v Value to lookup
- *
- * @return TagSub object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Managed_DataObject::staticGet('User_openid_prefs', $k, $v);
- }
-
/**
* The One True Thingy that must be defined and declared.
*/
/**
* The One True Thingy that must be defined and declared.
*/
public $options; // text; newline(?)-delimited
public $created; // datetime
public $options; // text; newline(?)-delimited
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('Poll', $k, $v);
- }
-
/**
* Get an instance by compound key
*
/**
* Get an instance by compound key
*
public $selection; // int -> choice #
public $created; // datetime
public $selection; // int -> choice #
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('Poll_response', $k, $v);
- }
-
/**
* Get an instance by compound key
*
/**
* Get an instance by compound key
*
public $created; // datetime
public $modified; // datetime
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 (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_poll_prefs', $k, $v);
- }
-
/**
* The One True Thingy that must be defined and declared.
*/
/**
* The One True Thingy that must be defined and declared.
*/
public $content; // text -> response text
public $created; // datetime
public $content; // text -> response 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 QnA_Answer object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('QnA_Answer', $k, $v);
- }
-
/**
* Get an instance by compound key
*
/**
* Get an instance by compound key
*
public $closed; // int (boolean) whether a question is closed
public $created; // datetime
public $closed; // int (boolean) whether a question is closed
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 QnA_Question object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('QnA_Question', $k, $v);
- }
-
/**
* Get an instance by compound key
*
/**
* Get an instance by compound key
*
public $profile_id; // int -> question.id
public $created; // datetime
public $profile_id; // int -> question.id
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 QnA_Vote object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('QnA_Vote', $k, $v);
- }
-
/**
* Get an instance by compound key
*
/**
* Get an instance by compound key
*
public $created; // created date
public $modified; // modified date
public $created; // created date
public $modified; // modified date
- /**
- * 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 Realtime_channel object found, or null for no hits
- */
- function staticGet($k, $v=null)
- {
- return Managed_DataObject::staticGet('Realtime_channel', $k, $v);
- }
-
/**
* Get an instance by compound key
*
/**
* Get an instance by compound key
*
public $profile_id; // int -> profile.id
public $created; // datetime
public $profile_id; // int -> profile.id
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 SearchSub object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('SearchSub', $k, $v);
- }
-
/**
* Get an instance by compound key
*
/**
* Get an instance by compound key
*
public $profile_id; // int -> profile.id
public $created; // datetime
public $profile_id; // int -> profile.id
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 TagSub object found, or null for no hits
- *
- */
- function staticGet($k, $v=null)
- {
- return Memcached_DataObject::staticGet('TagSub', $k, $v);
- }
-
/**
* Get an instance by compound key
*
/**
* Get an instance by compound key
*