/**
  * Initialize this object with provided values. This override adds a little
  * data massaging prior to calling its parent.
  *
  * @param mixed $params
  *   An associative array of name/value pairs or a CRM_Core_DAO object
  *
  * @return boolean      did we copy all null values into the object
  * @access public
  */
 public function copyValues(&$params)
 {
     if (is_a($params, 'CRM_Core_DAO')) {
         $params = get_object_vars($params);
     }
     if (array_key_exists('is_active', $params)) {
         /*
          * don't force is_active to have a value if none was set, to allow searches
          * where the is_active state of Projects is irrelevant
          */
         $params['is_active'] = CRM_Volunteer_BAO_Project::isOff($params['is_active']) ? 0 : 1;
     }
     return parent::copyValues($params);
 }