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

Budget

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

Learn more