modResource.getResourceGroupNames
Последнее обновление not available | История страницы | Улучшить эту страницу | Сообщить о проблеме
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
$194 per month—let's make that $500!
Learn moremodResource.getResourceGroupNames¶
Возвращает имена групп ресурсов, членом которых является ресурс, — обычным массивом строк. Коллекция групп получается через getCollectionGraph() по связи ResourceGroupResources.
isMember() и проверка членства внутри joinGroup() построены на этом методе.
Синтаксис¶
array getResourceGroupNames ()
Пример¶
$resource = $modx->getObject('modResource', array('id' => 5));
$names = $resource->getResourceGroupNames();
Смотрите также¶
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
$194 per month—let's make that $500!
Learn more










