© Сделано на MODx
Дизайн - ©2009 MODx RED Group
MySQL: 0.0030 s, запросы - 0 , PHP: 0.0084 s, Всего: 0.0113 s, документ взят из cache.
Замечание: если не задан список требуемых параметров, то метод вернет пустой массив.
string getDocumentChildrenTVars(int $parentid, array $tvidnames[, int $published[, string $docsort[, string $docsortdir[,string $tvfields[, string $tvsort[, string $tvsortdir]]]]]]);
Array
(
[0] => Array
(
[0] => Array
(
[id] => 4
[type] => text
[name] => МойПараметр
[caption] => Заголовок
[description] => Описание
[editor_type] => 0
[category] => 0
[locked] => 0
[elements] => Текст
[rank] => 0
[display] =>
[display_params] =>
[default_text] =>
[value] => Это мой текст
)
[1] => Array
(
[name] => id
[value] => 16
)
[2] => Array
(
[name] => type
[value] => document
)
)
...
)
Структура документов:
$txt = $modx->getDocumentChildrenTVars(11,array('id','type','МойПараметр'));
вернет информацию по основным параметрам id, type и дополнительному параметру МойПараметр для документов 111 и 112.