-
Notifications
You must be signed in to change notification settings - Fork 2
tp TouchPointWP Utilities StringableArray
James K. edited this page Jun 9, 2025
·
8 revisions
A collection of things that can be cast to a string by gluing them together with a simple implode().
- Class name: StringableArray
- Namespace: \tp\TouchPointWP\Utilities
- Parent class: ArrayObject
mixed tp\TouchPointWP\Utilities\StringableArray::__construct(object|array array, int flags, string iteratorClass)
StringableArray constructor.
- Visibility: public
- array object|array* flags int* iteratorClass string
- mixed
int tp\TouchPointWP\Utilities\StringableArray::count()
Length of array.
- Visibility: public
- int -
mixed tp\TouchPointWP\Utilities\StringableArray::prepend(mixed value, null key)
Append to the start of the array.
- Visibility: public
- value mixed* key null
- mixed
array tp\TouchPointWP\Utilities\StringableArray::toArray()
Get the stringable array, as an array.
- Visibility: public
- array -
bool tp\TouchPointWP\Utilities\StringableArray::contains(mixed needle)
Determine if the stringable array (haystack) contains the given needle
- Visibility: public
- needle mixed
- bool -
array tp\TouchPointWP\Utilities\StringableArray::keys()
Get the keys of the array.
- Visibility: public
- array -
string tp\TouchPointWP\Utilities\StringableArray::__toString()
Standard method to stringify.
- Visibility: public
- string -
string tp\TouchPointWP\Utilities\StringableArray::join(string|null separator, string|null prefix, string|null postfix)
Link the items together with a given separator, which may be different from the separator used in the constructor.
- Visibility: public
- separator string|null* prefix string|null* postfix string|null
- string -
string tp\TouchPointWP\Utilities\StringableArray::toListString(int limit, bool andOthers)
Convert the array to a list string with ampersands and such.
- Visibility: public
- limit int* andOthers bool
- string -
Documentation generated November 19, 2025 1:15am.
- Simple RSVP
- People Lists
- Involvements
- Outreach Partners
- SQL & Python Reports
- Events Calendar from Meetings (Beta)
- Events Calendar Plugin Integration (Deprecated)
- tp
- tp\TouchPointWP
- Api
- Auth
- tp\TouchPointWP\Blocks
- CalendarGrid
- EventsCalendar
- ExtraValueHandler
- Geo
- tp\TouchPointWP\Interfaces
- Involvement
- Involvement_PostTypeSettings
- InvolvementMembership
- Location
- Meeting
- MeetingArray
- Partner
- Person
- PostTypeCapable
- RegistrationType
- Report
- Rsvp
- Settings
- Stats
- StatusWidget
- Taxonomies
- TouchPointWP
- TouchPointWP_AdminAPI
- TouchPointWP_Exception
- TouchPointWP_WPError
- Utilities
- tp\TouchPointWP