* This deals with member data and some member functions
* This deals with member data and some member functions
*/
*/
class IPSMember
class IPSMember
{
{
/**
/**
* Custom fields class
* Custom fields class
*
*
* @var object
* @var object
*/
*/
static protected $custom_fields_class;
static protected $custom_fields_class;
/**
/**
* Member cache
* Member cache
*
*
* @var array
* @var array
*/
*/
static protected $memberCache = array();
static protected $memberCache = array();
/**
/**
* Ignore cache
* Ignore cache
*
*
* @var boolean
* @var boolean
*/
*/
static protected $ignoreCache = FALSE;
static protected $ignoreCache = FALSE;
/**
/**
* Debug data
* Debug data
*
*
* @var array
* @var array
*/
*/
static public $debugData = array();
static public $debugData = array();
/**
/**
* memberFunctions object reference
* memberFunctions object reference
*
*
* @var object
* @var object
*/
*/
static protected $_memberFunctions;
static protected $_memberFunctions;
/**
/**
* Parsed signatures to save resources
* Parsed signatures to save resources
*
*
* @var array
* @var array
*/
*/
static protected $_parsedSignatures = array();
static protected $_parsedSignatures = array();
/**
/**
* Parsed custom fields to save resources
* Parsed custom fields to save resources
*
*
* @var array
* @var array
*/
*/
static protected $_parsedCustomFields = array();
static protected $_parsedCustomFields = array();
/**
/**
* Parsed custom fields to save resources
* Parsed custom fields to save resources
*
*
* @var array
* @var array
*/
*/
static protected $_parsedCustomGroups = array();
static protected $_parsedCustomGroups = array();
/**
/**
* Ban filters cache
* Ban filters cache
*
*
* @var array
* @var array
*/
*/
static public $_banFiltersCache = NULL;
static public $_banFiltersCache = NULL;
/**
/**
* Signature parser object
* Signature parser object
* @var unknown_type
* @var unknown_type
*/
*/
static protected $_sigParser = null;
static protected $_sigParser = null;
/**
/**
* Remove Member during merge.
* Remove Member during merge.
* @bool
* @bool
* @brief See ticket 874824 - When merging on an IPS Connect linked slave IPB, the login handler attempts to remove the second account on the master. In this instance, we shouldn't do that.
* @brief See ticket 874824 - When merging on an IPS Connect linked slave IPB, the login handler attempts to remove the second account on the master. In this instance, we shouldn't do that.
* Checks to see if the logged in user can recieve mobile notifications
* Checks to see if the logged in user can recieve mobile notifications
*
*
* @param array $memberData Optional, logged in user will be used if this is not passed in
* @param array $memberData Optional, logged in user will be used if this is not passed in
* @return BOOL
* @return BOOL
*/
*/
static public function canReceiveMobileNotifications( $memberData=array() )
static public function canReceiveMobileNotifications( $memberData=array() )
{
{
/* Mobile notifications are currently deprecated http://community.invisionpower.com/resources/bugs.html/_/ip-board/remove-push-notification-references-r40643 */
/* Mobile notifications are currently deprecated http://community.---.com/resources/bugs.html/_/ip-board/remove-push-notification-references-r40643 */
if( $finalTables['members']['members_display_name'] AND $finalTables['members']['name'] AND $finalTables['members']['email'] AND $finalTables['members']['email'] != $finalTables['members']['name'] . '@' . $finalTables['members']['joined'] )
if( $finalTables['members']['members_display_name'] AND $finalTables['members']['name'] AND $finalTables['members']['email'] AND $finalTables['members']['email'] != $finalTables['members']['name'] . '@' . $finalTables['members']['joined'] )