Blesta Source Documentation

ClientsCredits extends Report uses Container

ClientsCredits report

Table of Contents

Methods

__construct() Load language
errors() Returns any errors
fetchAll() Execute the report
getFormats() Retrieves a list of formats supported by this report
getKeyInfo() Retrieves a list of data keys included in the report and information about them
getName() Retrieves the name of this report
getOptions() Retrieves the view containing any additional fields to filter on for the report
getFromContainer() Fetch an item from the container
Methods

errors()

Returns any errors

public errors() : mixed
Return values
mixed

An array of errors, false if no errors set

fetchAll()

Execute the report

public fetchAll(mixed $company_id, array<string|int, mixed> $vars) : Iterator
Parameters
$company_id : mixed

The ID of the company to generate the report from

$vars : array<string|int, mixed>

A list of fields as given as options to the view

Return values
Iterator

An iterable object containing the report data

getFormats()

Retrieves a list of formats supported by this report

public getFormats() : string
Return values
string

The list of formats supported by this report

getKeyInfo()

Retrieves a list of data keys included in the report and information about them

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

A list of key/value pairs indicating the field, its name, and any formatting to apply

getName()

Retrieves the name of this report

public getName() : string
Return values
string

The name of the report

getOptions()

Retrieves the view containing any additional fields to filter on for the report

public getOptions(mixed $company_id[, array<string|int, mixed> $vars = [] ]) : string
Parameters
$company_id : mixed

The ID of the company to generate the report from

$vars : array<string|int, mixed> = []
Return values
string

The view

getFromContainer()

Fetch an item from the container

protected getFromContainer(string $service) : mixed
Parameters
$service : string

The name of the service from the container to fetch

Return values
mixed

The service if found, otherwise null

Tags
subpackage

components.reports.clients_credits

copyright

Copyright (c) 2025, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results