Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You have seen how to load a specific record by ID usingĀ KenedoModel::getRecord(), here we talk about getting multiple records with filters and ordering. For use in paginated views, you can set start and limit.

Quick example:

Code Block
breakoutModewide
languagephp
$model = KenedoModel::getModel('ConfigboxModelProducts');

// Returns data of all ConfigBox products with no filters or specific ordering.
$products = $model->getRecords();

// with all parameters (see descriptions below)
$products = $model->getRecords($filters, $pagination, $ordering, $languageTag);

...