You are here

public static function CRM_Utils_Type::escapeAll in CiviCRM Entity 8.3

Helper function to call escape on arrays.

See also

escape

File

tests/src/Type.php, line 174

Class

CRM_Utils_Type
@package CRM @copyright CiviCRM LLC (c) 2004-2017

Code

public static function escapeAll($data, $type, $abort = TRUE) {
  foreach ($data as $key => $value) {
    $data[$key] = CRM_Utils_Type::escape($value, $type, $abort);
  }
  return $data;
}