getStages(); $stages = array_reverse($stages); $owner = $pad->getOwner(); if (obj::typeOf($owner->guid) === "user") { $owner_glyph = "glyphicon-user"; $owner_url = (user::getCurrent()->guid === $owner->guid ? "pads" : "#"); $owner_name = $owner->name; } else { $owner_glyph = "glyphicon-th"; $owner_url = $owner->guid; $owner_name = $owner->name; } $issues = array(); foreach ($stages as $s) { $i = $s->getIssues_ordByDueByNumb(); $issues = array_merge($issues, $i); } $closed_issues = $pad->getClosedIssues_ordByClosed(); ?>