/** * Serliaisation wakeup method. * * Re-create Foowd meta arrays not stored when object was serialized. */ function __wakeup() { parent::__wakeup(); $this->foowd_vars_meta['body'] = ''; }
/** * Serialisation wakeup method. */ function __wakeup() { parent::__wakeup(); $this->foowd_original_access_vars['version'] = 0; $this->foowd_original_access_vars['workspaceid'] = 0; }
/** * Serliaisation wakeup method. * * Re-create Foowd meta arrays not stored when object was serialized. */ function __wakeup() { parent::__wakeup(); $this->foowd_vars_meta['description'] = '/^.{1,1024}$/'; }
/** * Serialisation wakeup method. * @global array Specifies table information for user persistance. */ function __wakeup() { parent::__wakeup(); global $USER_SOURCE; $this->foowd_source = $USER_SOURCE; // add some regex verification unset($this->foowd_vars_meta['version']); $this->foowd_vars_meta['password'] = '******'; // this is not set to the password regex as it's stored as an md5 $this->foowd_vars_meta['email'] = REGEX_EMAIL; $this->foowd_vars_meta['groups'] = REGEX_GROUP; $this->foowd_vars_meta['title'] = REGEX_TITLE; // re-arrange our indices unset($this->foowd_indexes['version']); unset($this->foowd_indexes['classid']); unset($this->foowd_indexes['workspaceid']); unset($this->foowd_indexes['permissions']); // Original access vars unset($this->foowd_original_access_vars['version']); $this->foowd_original_access_vars['classid'] = USER_CLASS_ID; $this->foowd_original_access_vars['title'] = $this->title; // Default primary key $this->foowd_primary_key = array('objectid'); $this->permissions = array(); $this->version = 1; $this->classid = USER_CLASS_ID; }