X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FQnA%2Fclasses%2FQnA_Vote.php;h=9bed5b15b3439e5742662bc1dd8aa5ba3c314fe0;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=cbb8a717c94a32692fb7f1a6c451f08bf3d5ad9d;hpb=7a9777df053a9007b5eaa71f5437584065b615a5;p=quix0rs-gnu-social.git diff --git a/plugins/QnA/classes/QnA_Vote.php b/plugins/QnA/classes/QnA_Vote.php index cbb8a717c9..9bed5b15b3 100644 --- a/plugins/QnA/classes/QnA_Vote.php +++ b/plugins/QnA/classes/QnA_Vote.php @@ -55,39 +55,6 @@ class QnA_Vote extends Managed_DataObject 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 - * - * 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); - } - /** * The One True Thingy that must be defined and declared. */ @@ -153,7 +120,7 @@ class QnA_Vote extends Managed_DataObject $v->vote = $vote; $v->created = common_sql_now(); - common_log(LOG_DEBUG, "Saving vote: $v->id $v->vote"); + common_debug("Saving vote: $v->id $v->vote"); $v->insert(); }