Jump to main content Jump to doc navigation

xPDOObject::loadCollection()

Эта функция отвечает за загрузку коллекции экземпляров объектов из строк в таблице базы данных, представленной определенным классом.

Синтаксис

API Docs: http://api.modxcms.com/xpdo/om/xPDOObject.html#loadCollection

static array loadCollection(
    xPDO &$xpdo,
    string $className,
    [mixed $criteria = null],
    [boolean|integer $cacheFlag = true]
)

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • Jens Wittmann – Gestaltung & Entwicklung
  • Digital Penguin
  • eydolan
  • deJaya
  • Following Sea
  • Sepia River Studios
  • Nick Clark
  • Lefthandmedia
  • YJ
  • Murray Wood
  • Dannevang Digital
  • Richard

Budget

$217 per month—let's make that $500!

Learn more