Oihana PHP System

Alter uses ConstantsTrait

Enumeration of all transformation or filter operations that can be applied to an object property or an array key.

Each constant represents a type of alteration that can be performed when normalizing or processing data within models or collections.

Examples of usage include:

  • Converting a value to a specific type (INT, FLOAT)
  • Cleaning or normalizing arrays or strings (CLEAN, NORMALIZE)
  • Parsing or serializing JSON (JSON_PARSE, JSON_STRINGIFY)
  • Applying custom callbacks (CALL)
  • Extracting values via getters (GET)
  • Handling URLs or array transformations (URL, ARRAY)
Tags
author

Marc Alcaraz

since
1.0.0
see
AlterDocumentTrait

For usage of alter rules in models.

Table of Contents

Constants

ARRAY  = 'array'
CALL  = 'call'
CLEAN  = 'clean'
FLOAT  = 'float'
GET  = 'get'
HYDRATE  = 'hydrate'
INT  = 'int'
JSON_PARSE  = 'jsonParse'
JSON_STRINGIFY  = 'jsonStringify'
LIST  = 'list'
NORMALIZE  = 'normalize'
NOT  = 'not'
URL  = 'url'
VALUE  = 'value'

Constants

ARRAY

public mixed ARRAY = 'array'

CALL

public mixed CALL = 'call'

CLEAN

public mixed CLEAN = 'clean'

FLOAT

public mixed FLOAT = 'float'

GET

public mixed GET = 'get'

HYDRATE

public mixed HYDRATE = 'hydrate'

INT

public mixed INT = 'int'

JSON_PARSE

public mixed JSON_PARSE = 'jsonParse'

JSON_STRINGIFY

public mixed JSON_STRINGIFY = 'jsonStringify'

LIST

public mixed LIST = 'list'

NORMALIZE

public mixed NORMALIZE = 'normalize'

NOT

public mixed NOT = 'not'

URL

public mixed URL = 'url'

VALUE

public mixed VALUE = 'value'

        
On this page

Search results