function getProfiles() { $repeats = Notice::listGet('repeat_of', array($this->notice->getID())); $profiles = array(); foreach ($repeats[$this->notice->getID()] as $rep) { $profiles[] = $rep->profile_id; } return $profiles; }
function _allNotices($notices) { $convId = array(); foreach ($notices as $notice) { $convId[] = $notice->conversation; } $convId = array_unique($convId); $allMap = Notice::listGet('conversation', $convId); $allArray = array(); foreach ($allMap as $convId => $convNotices) { $allArray = array_merge($allArray, $convNotices); } return $allArray; }