public function load($user, $storage = 'mysql')
	{
		if (!empty($storage) && !in_array($storage, array('mysql', 'author', 'xregistration')))
		{
			$this->setError('Invalid storage option requested [' . $storage . ']');
			return false;
		}

		if ($storage == 'mysql')
		{
			return $this->_mysql_load($user);
		}

		if ($storage == 'author')
		{
			return $this->_mysql_load_author($user);
		}

		if ($storage == 'xregistration')
		{
			return $this->_xregistration_load($user);
		}

		return true;
	}
public function load($user, $storage = 'mysql')
	{
		if (!empty($storage) && !in_array($storage, array('mysql', 'author', 'xregistration')))
		{
			$this->setError('Invalid storage option requested [' . $storage . ']');
			return false;
		}

		if ($storage == 'mysql')
		{
			return $this->_mysql_load($user);
		}

		if ($storage == 'author')
		{
			return $this->_mysql_load_author($user);
		}

		if ($storage == 'xregistration')
		{
			return $this->_xregistration_load($user);
		}

		return true;
	}
public function load ( $ user , $ storage = 'mysql' ) { if ( ! empty ( $ storage ) && ! in_array ( $ storage , array ( 'mysql' , 'author' , 'xregistration' ) ) ) { $ this -> setError ( 'Invalid storage option requested [' . $ storage . ']' ) ; return false ; } if ( $ storage == 'mysql' ) { return $ this -> _mysql_load ( $ user ) ; } if ( $ storage == 'author' ) { return $ this -> _mysql_load_author ( $ user ) ; } if ( $ storage == 'xregistration' ) { return $ this -> _xregistration_load ( $ user ) ; } return true ; }
Load a record

@param   mixed    $user     User data
@param   string   $storage  Storage type
@return  boolean  True on success, False on error
Load a record