CoreViewCellProvider
in package
Core View Cell Provider
Provides view cells for core app features (non-plugin functionality). Registers mobile menu items for Calendar, My RSVPs, and other core features.
Table of Contents
Methods
- getViewCells() : array<string|int, mixed>
- Get view cells for core features
- countOpenTodos() : int
- countPendingApprovals() : int
Methods
getViewCells()
Get view cells for core features
public
static getViewCells(array<string|int, mixed> $urlParams[, Member|null $user = null ]) : array<string|int, mixed>
Parameters
- $urlParams : array<string|int, mixed>
-
URL parameters from the current request
- $user : Member|null = null
-
The current authenticated user
Return values
array<string|int, mixed> —Array of view cell configurations
countOpenTodos()
private
static countOpenTodos(int $memberId) : int
Parameters
- $memberId : int
-
Current member ID
Return values
int —Open to-do count
countPendingApprovals()
private
static countPendingApprovals(int $memberId) : int
Parameters
- $memberId : int
-
Current member ID
Return values
int —Pending approval count