/** * Inserts the update message into the inbox of each user * * @param string $description * @param string $url */ public static function broadcastUpdate($description, $url) { $taskContent = "{$description} - " . __('ACCOUNT_MISC_READ_MORE_ON_OUR_BLOG') . " {$url}."; foreach (PcListPeer::getAllInboxes() as $inbox) { $task = new PcTask(); $task->setDescription($taskContent)->setListId($inbox->getId())->setIsFromSystem(1)->save(); } }