CodeIgniter v4.5 API

PropertiesTrait

Trait PropertiesTrait

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

Table of Contents

Methods

fill()  : $this
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|int, 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) : $this
Parameters
$params : array<string|int, mixed>
Return values
$this

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|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results