function getArray()
 {
     $groups = $this->getGroups();
     $properties = array();
     /** @var PropertyValue $property */
     foreach ($this->collection as $k => $property) {
         $p = $property->getProperty();
         if (!isset($p["ID"])) {
             $p["ID"] = "n" . $property->getId();
         }
         $value = $property->getValue();
         $value = $property->getValueId() ? $value : ($value ? $value : $p['DEFAULT_VALUE']);
         $value = array_values(Input\Manager::asMultiple($p, $value));
         $p['VALUE'] = $value;
         $properties[] = $p;
     }
     return array('groups' => $groups, 'properties' => $properties);
 }