MemberNews
in package
uses
TraitData, TraitGeoSQL
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- getDataInstance() : Data
- getGeoSQLInstance() : GeoSQL
- getNewsletterEdit() : mixed
- setUnsubscribe() : bool
- Unsubscribes from newsletter
- fetchLatLonByLocation() : array<string|int, mixed>
- getCountryID() : array<string|int, mixed>
- getCountryName() : array<string|int, mixed>
- getFilterField() : array{filter_town: string, filter_lineup: string}
- getMemberSubscriptions() : array<string|int, mixed>
- getRecent() : string
- getSubscriberCountry() : array<string|int, mixed>
- getSubscriberSQLFilter() : array{filter_info: string, filter: string, user_id: int}
- Gets an array for this member
- translateSubscriberCountries() : string
Properties
$country
private
Country
$country
$data
private
Data
$data
$memberNewsDate
private
MemberNewsDate
$memberNewsDate
$user read-only
private
User
$user
Methods
__construct()
public
__construct(User $user) : mixed
Parameters
- $user : User
getDataInstance()
public
getDataInstance() : Data
Return values
DatagetGeoSQLInstance()
public
getGeoSQLInstance() : GeoSQL
Return values
GeoSQLgetNewsletterEdit()
public
getNewsletterEdit(string $pageContent) : mixed
Parameters
- $pageContent : string
setUnsubscribe()
Unsubscribes from newsletter
public
setUnsubscribe() : bool
Return values
boolfetchLatLonByLocation()
private
fetchLatLonByLocation(array<string|int, mixed> $saRow) : array<string|int, mixed>
Parameters
- $saRow : array<string|int, mixed>
Return values
array<string|int, mixed>getCountryID()
private
getCountryID() : array<string|int, mixed>
Return values
array<string|int, mixed>getCountryName()
private
getCountryName() : array<string|int, mixed>
Return values
array<string|int, mixed>getFilterField()
private
getFilterField() : array{filter_town: string, filter_lineup: string}
Return values
array{filter_town: string, filter_lineup: string}getMemberSubscriptions()
private
getMemberSubscriptions(int $nMemberID) : array<string|int, mixed>
Parameters
- $nMemberID : int
Return values
array<string|int, mixed>getRecent()
private
getRecent() : string
Return values
stringgetSubscriberCountry()
private
getSubscriberCountry([int $member_id = 0 ]) : array<string|int, mixed>
Parameters
- $member_id : int = 0
Return values
array<string|int, mixed>getSubscriberSQLFilter()
Gets an array for this member
private
getSubscriberSQLFilter([int $nMemberID = 0 ]) : array{filter_info: string, filter: string, user_id: int}
Parameters
- $nMemberID : int = 0
Return values
array{filter_info: string, filter: string, user_id: int}translateSubscriberCountries()
private
translateSubscriberCountries(array<string|int, mixed> $saCountry) : string
Parameters
- $saCountry : array<string|int, mixed>