Universeorange.com/Docs/

R3m/framework Features Filter class

Introduction

The filter class extends the data class. it uses an array as where.

Example

{
  "6aa5e5b8-7288-4a51-a39b-ff40df387953": {
    "label": [
      "9c02f203-4a5d-4996-a323-73d60469d454"
    ],
    "content": "...",
    "uuid": "6aa5e5b8-7288-4a51-a39b-ff40df387953",
    "title": "...",
    "ctime": 1609157496,
    "mtime": 1609157496
  },
  ...
}
$result = Filter::list($result)->where(['isClosed' => ['exist' => false]]);

Filter a list object where attribute isClosed doesn't exists.

$result = Filter::list($result)->where(['isClosed' => ['exist' => true]]);

Filter a list object where attribute isClosed does exists.

$result = Filter::list($result)->where(['isClosed' => ['operator'=> '!=', 'value' => null]]);

Filter a list object where attribute isClosed not is null.

Operators:

Last modified: 2021-06-07

© 2021 universeorange.com