Exemple #1
0
 /**
  * Get an instance by compound key
  *
  * This is a utility method to get a single instance with a given set of
  * key-value pairs. Usually used for the primary key for a compound key; thus
  * the name.
  *
  * @param array $kv array of key-value mappings
  *
  * @return Bookmark object found, or null for no hits
  *
  */
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Poll_response', $kv);
 }
 function pkeyGet($k)
 {
     return Memcached_DataObject::pkeyGet('Group_join_queue', $k);
 }
 /**
  * Get a single object with multiple keys
  *
  * @param array $kv Map of key-value pairs
  *
  * @return User_flag_profile found object or null
  */
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('User_flag_profile', $kv);
 }
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('User_openid_trustroot', $kv);
 }
Exemple #5
0
 /**
  * Get an instance by compound key
  *
  * This is a utility method to get a single instance with a given set of
  * key-value pairs. Usually used for the primary key for a compound key; thus
  * the name.
  *
  * @param array $kv array of key-value mappings
  *
  * @return Bookmark object found, or null for no hits
  *
  */
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Bookmark', $kv);
 }
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Profile_tag', $kv);
 }
 /**
  * Get an instance by compound primary key
  *
  * @param array $kv key-value pair array
  *
  * @return Twitter_synch_status object found, or null for no hits
  *
  */
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Twitter_synch_status', $kv);
 }
Exemple #8
0
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Group_inbox', $kv);
 }
Exemple #9
0
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Task_Grader', $kv);
 }
Exemple #10
0
 function get($blocker, $blocked)
 {
     return Memcached_DataObject::pkeyGet('Profile_block', array('blocker' => $blocker, 'blocked' => $blocked));
 }
Exemple #11
0
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Grades', $kv);
 }
Exemple #12
0
 public function pkeyGet($v)
 {
     return parent::pkeyGet(__CLASS__, $v);
 }
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Status_network_tag', $kv);
 }
Exemple #14
0
 function &pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Avatar', $kv);
 }
Exemple #15
0
 function hasRepeated($notice_id)
 {
     // XXX: not really a pkey, but should work
     $notice = Memcached_DataObject::pkeyGet('Notice', array('profile_id' => $this->id, 'repeat_of' => $notice_id));
     return !empty($notice);
 }
Exemple #16
0
 /**
  * Get an instance by compound key
  *
  * This is a utility method to get a single instance with a given set of
  * key-value pairs. Usually used for the primary key for a compound key; thus
  * the name.
  *
  * @param array $kv array of key-value mappings
  *
  * @return QnA_Vote object found, or null for no hits
  *
  */
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('QnA_Vote', $kv);
 }
Exemple #17
0
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('User_im_prefs', $kv);
 }
Exemple #18
0
 function &pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Subscription', $kv);
 }
Exemple #19
0
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Config', $kv);
 }
Exemple #20
0
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Fave', $kv);
 }
 /**
  * Get an instance by compound key
  *
  * This is a utility method to get a single instance with a given set of
  * key-value pairs. Usually used for the primary key for a compound key; thus
  * the name.
  *
  * @param array $kv array of key-value mappings
  *
  * @return SearchSub object found, or null for no hits
  *
  */
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('SearchSub', $kv);
 }
Exemple #22
0
 function pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('File_to_post', $kv);
 }
 function pkeyGet($k)
 {
     return Memcached_DataObject::pkeyGet('Subscription_queue', $k);
 }
Exemple #24
0
 function &pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Notice_tag', $kv);
 }
Exemple #25
0
 function &pkeyGet($kv)
 {
     return Memcached_DataObject::pkeyGet('Group_block', $kv);
 }