CodeIgniter v4.7 API

PropertiesTrait

Trait PropertiesTrait

Provides utilities for reading and writing class properties, primarily for limiting access to public properties.

Table of Contents

Methods

fill()  : self
Attempts to set the values of public class properties.
getNonPublicProperties()  : array<string|int, mixed>
Get the protected and private properties of the class and return as an array.
getPublicProperties()  : array<string, mixed>
Get the public properties of the class and return as an array.

Methods

fill()

Attempts to set the values of public class properties.

public final fill(array<string|int, mixed> $params) : self
Parameters
$params : array<string|int, mixed>
Return values
self

getNonPublicProperties()

Get the protected and private properties of the class and return as an array.

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

getPublicProperties()

Get the public properties of the class and return as an array.

public final getPublicProperties() : array<string, mixed>
Return values
array<string, mixed>
On this page

Search results