public function __construct($name, $enum = NULL, $default = NULL)
 {
     // MultiEnum needs to take care of its own defaults
     parent::__construct($name, $enum, null);
     // Validate and assign the default
     $this->default = null;
     if ($default) {
         $defaults = preg_split('/ *, */', trim($default));
         foreach ($defaults as $thisDefault) {
             if (!in_array($thisDefault, $this->enum)) {
                 user_error("Enum::__construct() The default value '{$thisDefault}' does not match " . "any item in the enumeration", E_USER_ERROR);
                 return;
             }
         }
         $this->default = implode(',', $defaults);
     }
 }
 /**
  * Create a new DBClassName field
  *
  * @param string $name Name of field
  * @param string|null $baseClass Optional base class to limit selections
  */
 public function __construct($name = null, $baseClass = null)
 {
     $this->setBaseClass($baseClass);
     parent::__construct($name);
 }