Documentation

Involvement_PostTypeSettings
in package

Contains the settings for a single Involvement Post Type. This is instantiated as an array of these objects.

Table of Contents

Constants

POST_TYPE_PREFIX  = "inv_"

Properties

$contactKeywords  : array<string|int, int>
$excludeIf  : array<string|int, string>
$filters  : array<string|int, string>
$groupBy  : string
$hierarchical  : bool
$hostTypes  : array<string|int, string>
$importDivs  : array<string|int, string>
$joinKeywords  : array<string|int, int>
$leaderTypes  : array<string|int, string>
$namePlural  : string
$nameSingular  : string
$postType  : string
$slug  : string
$taskOwner  : string
$useGeo  : bool
$useImages  : bool

Methods

__construct()  : mixed
__get()  : mixed
getForInvType()  : Involvement_PostTypeSettings|null
Gets the Involvement Post Type Settings object for a given inv type.
getPostTypes()  : array<string|int, string>
Gets an array of the postType strings.
getPostTypesWithGeoEnabled()  : array<string|int, string>
Gets an array of the postType strings for post type that use Geo.
hostTypeInts()  : array<string|int, int>|null
Get the host member types, as an array of ints. Will be null if useGeo is false.
instance()  : array<string|int, Involvement_PostTypeSettings>
leaderTypeInts()  : array<string|int, int>
Get the leader member types, as an array of ints
postTypeWithoutPrefix()  : string
postTypeWithPrefix()  : string
validateNewSettings()  : string

Constants

Properties

Methods

getPostTypes()

Gets an array of the postType strings.

public final static getPostTypes() : array<string|int, string>
Return values
array<string|int, string>

getPostTypesWithGeoEnabled()

Gets an array of the postType strings for post type that use Geo.

public final static getPostTypesWithGeoEnabled() : array<string|int, string>
Return values
array<string|int, string>

hostTypeInts()

Get the host member types, as an array of ints. Will be null if useGeo is false.

public hostTypeInts() : array<string|int, int>|null
Return values
array<string|int, int>|null

leaderTypeInts()

Get the leader member types, as an array of ints

public leaderTypeInts() : array<string|int, int>
Return values
array<string|int, int>

validateNewSettings()

public static validateNewSettings(string $new) : string
Parameters
$new : string
Return values
string
Loading…
On this page

Search results