API:getDocumentChildrenTVarOutput

From MODx Wiki
Jump to: navigation, search
File: manager/includes/document.parser.class.inc.php
Line: 1797
  1. function getDocumentChildrenTVarOutput($parentid= 0, $tvidnames= array (), $published= 1, $docsort= "menuindex", $docsortdir= "ASC") {
  2. $docs= $this->getDocumentChildren($parentid, $published, 0, '*', '', $docsort, $docsortdir);
  3. if (!$docs)
  4. return false;
  5. else {
  6. $result= array ();
  7. for ($i= 0; $i < count($docs); $i++) {
  8. $tvs= $this->getTemplateVarOutput($tvidnames, $docs[$i]["id"], $published);
  9. if ($tvs)
  10. $result[$docs[$i]['id']]= $tvs; // Use docid as key - netnoise 2006/08/14
  11. }
  12. return $result;
  13. }
  14. }
Personal tools