summaryrefslogtreecommitdiff
path: root/classes/Profile_block.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-12-07 22:10:08 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-12-07 22:10:08 -0500
commit81a81baf8374df7823b659c87b1d93e2a1a55c20 (patch)
tree826faf2728c28e2bd936e352c0a17ceebed1e2bd /classes/Profile_block.php
parent665a3325b38d18dcfe6eb4ba1c693b2ed9578210 (diff)
low-level management of blocks
darcs-hash:20081208031008-5ed1f-c96006b5c05fa0e68f9adaacd0518016aedfee2a.gz
Diffstat (limited to 'classes/Profile_block.php')
-rw-r--r--classes/Profile_block.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/Profile_block.php b/classes/Profile_block.php
index f80670176..d6a3e7288 100644
--- a/classes/Profile_block.php
+++ b/classes/Profile_block.php
@@ -4,7 +4,7 @@
*/
require_once 'classes/Memcached_DataObject';
-class Profile_block extends Memcached_DataObject
+class Profile_block extends Memcached_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
@@ -19,4 +19,9 @@ class Profile_block extends Memcached_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ static function get($blocker, $blocked) {
+ return Profile_block::pkeyGet(array('blocker' => $blocker,
+ 'blocked' => $blocked));
+ }
}