示例#1
0
 /**
  * (re)sets the all the attribute values for this object
  *
  * Overrides the core version to allow decoding of manually escaped values
  *
  * @param array $values
  *      Associative array of field names and their values
  */
 public function setValues(array $values = null)
 {
     if (!is_null($values)) {
         foreach ($values as $field => $sanitizedValue) {
             $decodedValue = SDBStatement::DecodeValue($sanitizedValue);
             $this->{$field} = $sanitizedValue;
         }
     }
 }