Пример #1
0
 /**
  * Get all subscriber attributes
  * @param SubscriberEntity $subscriber
  * @return array
  */
 public function getCleanAttributes(SubscriberEntity $scrEntity)
 {
     if (!$scrEntity->hasAttributes()) {
         $this->loadAttributes($scrEntity);
     }
     $clean_attributes = array();
     foreach ($scrEntity->getAttributes() as $key => $val) {
         ## in the help, we only list attributes with "strlen < 20"
         if (strlen($key) < 20) {
             $clean_attributes[String::cleanAttributeName($key)] = $val;
         }
     }
     return $clean_attributes;
 }