public function __construct(&$consumer = NULL, $new = FALSE)
 {
     parent::__construct($consumer, $new);
     $this->fields = $this->fields();
     $this->consumers = ldap_authorization_get_consumers(NULL, TRUE);
     if ($new) {
         foreach ($this->consumer->defaultConsumerConfProperties as $property => $value) {
             $this->{$property} = $value;
         }
     }
 }
 public function __construct(&$consumer = NULL, $new = FALSE)
 {
     parent::__construct($consumer, $new);
     $this->fields = $this->fields();
     $this->consumers = ldap_authorization_get_consumers(NULL, TRUE);
     if ($new) {
         foreach ($this->consumer->defaultableConsumerConfProperties as $property) {
             $default_prop_name = $property . 'Default';
             $this->{$property} = $this->consumer->{$default_prop_name};
         }
     }
 }