public $created; // datetime() not_null
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
- /* Static get */
- function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Group_member',$k,$v); }
-
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
);
}
- function pkeyGet($kv)
- {
- return Memcached_DataObject::pkeyGet('Group_member', $kv);
- }
-
/**
* Method to add a user to a group.
* In most cases, you should call Profile->joinGroup() instead.
function getMember()
{
- $member = Profile::staticGet('id', $this->profile_id);
+ $member = Profile::getKV('id', $this->profile_id);
if (empty($member)) {
// TRANS: Exception thrown providing an invalid profile ID.
function getGroup()
{
- $group = User_group::staticGet('id', $this->group_id);
+ $group = User_group::getKV('id', $this->group_id);
if (empty($group)) {
// TRANS: Exception thrown providing an invalid group ID.
$act->id = $this->getURI();
- $act->actor = ActivityObject::fromProfile($member);
+ $act->actor = $member->asActivityObject();
$act->verb = ActivityVerb::JOIN;
$act->objects[] = ActivityObject::fromGroup($group);