]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - classes/Profile_block.php
low-level management of blocks
[quix0rs-gnu-social.git] / classes / Profile_block.php
1 <?php
2 /**
3  * Table Definition for profile_block
4  */
5 require_once 'classes/Memcached_DataObject';
6
7 class Profile_block extends Memcached_DataObject
8 {
9     ###START_AUTOCODE
10     /* the code below is auto generated do not remove the above tag */
11
12     public $__table = 'profile_block';                   // table name
13     public $blocker;                         // int(4)  primary_key not_null
14     public $blocked;                         // int(4)  primary_key not_null
15     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
16
17     /* Static get */
18     function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Profile_block',$k,$v); }
19
20     /* the code above is auto generated do not remove the tag below */
21     ###END_AUTOCODE
22
23     static function get($blocker, $blocked) {
24                 return Profile_block::pkeyGet(array('blocker' => $blocker,
25                                             'blocked' => $blocked));
26     }
27 }