function setProperty($key, $value) { if (null == $value) { unset($this->_properties[$key]); } else { $this->_properties[$key] = $value; } DAO_CommunitySession::save($this); }
/** * @return Model_CommunitySession */ public static function getSession() { $fingerprint = self::getFingerprint(); $session_id = md5($fingerprint['ip'] . self::getCode() . $fingerprint['local_sessid']); return DAO_CommunitySession::get($session_id); }
/** * @return Model_CommunitySession * // [TODO] This should inherit from usermeet.core (if they lose sync we lose sessions) */ protected function getSession() { $fingerprint = $this->getFingerprint(); $session_id = md5($fingerprint['ip'] . $this->getPortal() . $fingerprint['local_sessid']); $session = DAO_CommunitySession::get($session_id); return $session; }