Ejemplo n.º 1
0
 /**
  * Get all groups and return them as array
  *
  * @return array
  */
 public function getGroups()
 {
     if (isset($this->arrCache['clr_groups'])) {
         return $this->arrCache['clr_groups'];
     }
     $this->arrCache['clr_groups'] = array();
     $objCleverReach = new CleverReach();
     $arrGroups = $objCleverReach->getGroupList();
     foreach ($arrGroups as $objGroup) {
         $this->arrCache['clr_groups'][$objGroup->id] = $objGroup->name;
     }
     return $this->arrCache['clr_groups'];
 }