/** * Get all forms and return them as array * * @return array */ public function getForms() { $arrResult = array(); $arrGroups = $this->getGroups(); foreach ($arrGroups as $strId => $strName) { $objCleverReach = new CleverReach(); $arrGroups = $objCleverReach->getFormList($strId); foreach ($arrGroups as $objGroup) { $arrResult[$objGroup->id] = sprintf('<span style="color:#b3b3b3">[%s]</span> %s', $objGroup->name, $strName); } } return $arrResult; }