vpx_funcparam_add

Versions
mediamosa-174
vpx_funcparam_add(&$a_funcparam, $a_args, $s_key, $vpx_type, $required = FALSE, $default = NULL, $value_min = FALSE, $value_max = FALSE, $custom_error = ERRORCODE_VALIDATE_FAILED, $s_key_where = "get", $is_array = FALSE)

▾ 186 functions call vpx_funcparam_add()

ftp_user_get in ftp_users/ftp_users.module
ftp_user_get in ftp_users/ftp_users.module
ftp_user_get in ftp_users/ftp_users.module
ftp_user_update in ftp_users/ftp_users.module
ftp_user_update in ftp_users/ftp_users.module
ftp_user_update in ftp_users/ftp_users.module
media_management_create_metadata in media_management/media_management_asset_metadata.inc
media_management_create_metadata in media_management/media_management_asset_metadata.inc
media_management_create_metadata in media_management/media_management_asset_metadata.inc
media_management_delete_mediafile in media_management/media_management_mediafile.inc
media_management_delete_mediafile in media_management/media_management_mediafile.inc
media_management_delete_mediafile in media_management/media_management_mediafile.inc
media_management_get_asset in media_management/media_management_asset.inc
This function retrieves all info about the given asset id
media_management_get_asset in media_management/media_management_asset.inc
This function retrieves all info about the given asset id
media_management_get_asset in media_management/media_management_asset.inc
This function retrieves all info about the given asset id
media_management_get_asset_1_6_0 in media_management/media_management_asset.inc
This function retrieves all info about the given asset id (Version 1.5.0)
media_management_get_asset_1_6_0 in media_management/media_management_asset.inc
This function retrieves all info about the given asset id (Version 1.5.0)
media_management_get_asset_1_6_0 in media_management/media_management_asset.inc
This function retrieves all info about the given asset id (Version 1.5.0)
media_management_get_asset_mediafiles in media_management/media_management_mediafile.inc
This function lists all mediafiles of the given asset id
media_management_get_asset_mediafiles in media_management/media_management_mediafile.inc
This function lists all mediafiles of the given asset id
media_management_get_asset_mediafiles in media_management/media_management_mediafile.inc
This function lists all mediafiles of the given asset id
media_management_get_asset_search in media_management/media_management_asset.inc
Search and return found assets
media_management_get_asset_search in media_management/media_management_asset.inc
Search and return found assets
media_management_get_asset_search in media_management/media_management_asset.inc
Search and return found assets
media_management_get_collection in media_management/media_management_collection.inc
REST call collection/$coll_id
media_management_get_collection in media_management/media_management_collection.inc
REST call collection/$coll_id
media_management_get_collection in media_management/media_management_collection.inc
REST call collection/$coll_id
media_management_get_collection_search in media_management/media_management_collection.inc
REST call asset/$asset_id/collection collection
media_management_get_collection_search in media_management/media_management_collection.inc
REST call asset/$asset_id/collection collection
media_management_get_collection_search in media_management/media_management_collection.inc
REST call asset/$asset_id/collection collection
media_management_get_mediafile in media_management/media_management_mediafile.inc
This function retrieves all info about the given mediafile id
media_management_get_mediafile in media_management/media_management_mediafile.inc
This function retrieves all info about the given mediafile id
media_management_get_mediafile in media_management/media_management_mediafile.inc
This function retrieves all info about the given mediafile id
media_management_metadata_definition_get in media_management/media_management_asset_metadata.inc
media_management_metadata_definition_get in media_management/media_management_asset_metadata.inc
media_management_metadata_definition_get in media_management/media_management_asset_metadata.inc
media_management_update_asset in media_management/media_management_asset.inc
media_management_update_asset in media_management/media_management_asset.inc
media_management_update_asset in media_management/media_management_asset.inc
user_management_get_user in user_management/user_management.module
REST CALL | GET user/$user_id
user_management_get_user in user_management/user_management.module
REST CALL | GET user/$user_id
user_management_get_user in user_management/user_management.module
REST CALL | GET user/$user_id
user_management_list_group in user_management/user_management.module
user_management_list_group in user_management/user_management.module
user_management_list_group in user_management/user_management.module
user_management_list_user in user_management/user_management.module
REST CALL | GET user
user_management_list_user in user_management/user_management.module
REST CALL | GET user
user_management_list_user in user_management/user_management.module
REST CALL | GET user
user_management_update_user in user_management/user_management.module
user_management_update_user in user_management/user_management.module
user_management_update_user in user_management/user_management.module
vpx_acl_asset_delete_rights in vpx_acl/vpx_acl.module
Asset delete rights asset/{asset_id}/acl/delete POST: user_id
vpx_acl_asset_delete_rights in vpx_acl/vpx_acl.module
Asset delete rights asset/{asset_id}/acl/delete POST: user_id
vpx_acl_asset_delete_rights in vpx_acl/vpx_acl.module
Asset delete rights asset/{asset_id}/acl/delete POST: user_id
vpx_acl_asset_get_rights in vpx_acl/vpx_acl.module
Asset get rights asset/{asset_id}/acl
vpx_acl_asset_get_rights in vpx_acl/vpx_acl.module
Asset get rights asset/{asset_id}/acl
vpx_acl_asset_get_rights in vpx_acl/vpx_acl.module
Asset get rights asset/{asset_id}/acl
vpx_acl_asset_set_rights in vpx_acl/vpx_acl.module
Asset set rights asset/{asset_id}/acl POST: user_id
vpx_acl_asset_set_rights in vpx_acl/vpx_acl.module
Asset set rights asset/{asset_id}/acl POST: user_id
vpx_acl_asset_set_rights in vpx_acl/vpx_acl.module
Asset set rights asset/{asset_id}/acl POST: user_id
vpx_acl_collection_delete_rights in vpx_acl/vpx_acl.module
/collection/{coll_id}/acl/delete [POST]
vpx_acl_collection_delete_rights in vpx_acl/vpx_acl.module
/collection/{coll_id}/acl/delete [POST]
vpx_acl_collection_delete_rights in vpx_acl/vpx_acl.module
/collection/{coll_id}/acl/delete [POST]
vpx_acl_collection_get_rights in vpx_acl/vpx_acl.module
/collection/$coll_id/acl [GET]
vpx_acl_collection_get_rights in vpx_acl/vpx_acl.module
/collection/$coll_id/acl [GET]
vpx_acl_collection_get_rights in vpx_acl/vpx_acl.module
/collection/$coll_id/acl [GET]
vpx_acl_collection_set_rights in vpx_acl/vpx_acl.module
/collection/$coll_id/acl [POST]
vpx_acl_collection_set_rights in vpx_acl/vpx_acl.module
/collection/$coll_id/acl [POST]
vpx_acl_collection_set_rights in vpx_acl/vpx_acl.module
/collection/$coll_id/acl [POST]
vpx_acl_group_create in vpx_acl/vpx_acl.module
REST CALL | POST
vpx_acl_group_create in vpx_acl/vpx_acl.module
REST CALL | POST
vpx_acl_group_create in vpx_acl/vpx_acl.module
REST CALL | POST
vpx_acl_group_delete in vpx_acl/vpx_acl.module
REST CALL | GET
vpx_acl_group_delete in vpx_acl/vpx_acl.module
REST CALL | GET
vpx_acl_group_delete in vpx_acl/vpx_acl.module
REST CALL | GET
vpx_acl_group_get in vpx_acl/vpx_acl.module
/autorisation_group/$groupname/ | GET
vpx_acl_group_get in vpx_acl/vpx_acl.module
/autorisation_group/$groupname/ | GET
vpx_acl_group_get in vpx_acl/vpx_acl.module
/autorisation_group/$groupname/ | GET
vpx_acl_group_hostname_add in vpx_acl/vpx_acl.module
REST CALL | POST
vpx_acl_group_hostname_add in vpx_acl/vpx_acl.module
REST CALL | POST
vpx_acl_group_hostname_add in vpx_acl/vpx_acl.module
REST CALL | POST
vpx_acl_group_hostname_delete in vpx_acl/vpx_acl.module
REST CALL | POST
vpx_acl_group_hostname_delete in vpx_acl/vpx_acl.module
REST CALL | POST
vpx_acl_group_hostname_delete in vpx_acl/vpx_acl.module
REST CALL | POST
vpx_acl_group_hostname_get in vpx_acl/vpx_acl.module
/autorisation_group/$groupname/hostname/ | GET
vpx_acl_group_hostname_get in vpx_acl/vpx_acl.module
/autorisation_group/$groupname/hostname/ | GET
vpx_acl_group_hostname_get in vpx_acl/vpx_acl.module
/autorisation_group/$groupname/hostname/ | GET
vpx_acl_group_list in vpx_acl/vpx_acl.module
/autorisation_group/
vpx_acl_group_list in vpx_acl/vpx_acl.module
/autorisation_group/
vpx_acl_group_list in vpx_acl/vpx_acl.module
/autorisation_group/
vpx_acl_group_update in vpx_acl/vpx_acl.module
REST CALL | POST
vpx_acl_group_update in vpx_acl/vpx_acl.module
REST CALL | POST
vpx_acl_group_update in vpx_acl/vpx_acl.module
REST CALL | POST
vpx_acl_mediafile_delete_rights in vpx_acl/vpx_acl.module
vpx_acl_mediafile_delete_rights in vpx_acl/vpx_acl.module
vpx_acl_mediafile_delete_rights in vpx_acl/vpx_acl.module
vpx_acl_mediafile_get_rights in vpx_acl/vpx_acl.module
vpx_acl_mediafile_get_rights in vpx_acl/vpx_acl.module
vpx_acl_mediafile_get_rights in vpx_acl/vpx_acl.module
vpx_acl_mediafile_set_rights in vpx_acl/vpx_acl.module
vpx_acl_mediafile_set_rights in vpx_acl/vpx_acl.module
vpx_acl_mediafile_set_rights in vpx_acl/vpx_acl.module
vpx_acl_rest_owner_check in vpx_acl/vpx_acl.module
vpx_acl_rest_owner_check in vpx_acl/vpx_acl.module
vpx_acl_rest_owner_check in vpx_acl/vpx_acl.module
vpx_ftp_batch_assets_add in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_assets_add in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_assets_add in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_assets_get in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | GET
vpx_ftp_batch_assets_get in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | GET
vpx_ftp_batch_assets_get in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | GET
vpx_ftp_batch_create in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_create in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_create in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_delete in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_delete in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_delete in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_get in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | GET
vpx_ftp_batch_get in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | GET
vpx_ftp_batch_get in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | GET
vpx_ftp_batch_list in vpx_ftp_batch/vpx_ftp_batch.module
/ftp_batch/
vpx_ftp_batch_list in vpx_ftp_batch/vpx_ftp_batch.module
/ftp_batch/
vpx_ftp_batch_list in vpx_ftp_batch/vpx_ftp_batch.module
/ftp_batch/
vpx_ftp_batch_update in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_update in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_ftp_batch_update in vpx_ftp_batch/vpx_ftp_batch.module
REST CALL | POST
vpx_funcparam_add in vpx_shared/vpx_shared.module
vpx_funcparam_add in vpx_shared/vpx_shared.module
vpx_funcparam_add in vpx_shared/vpx_shared.module
vpx_funcparam_add_array in vpx_shared/vpx_shared.module
Add an parameter to my array, and validate it Input will end up as array, not as single value
vpx_funcparam_add_array in vpx_shared/vpx_shared.module
Add an parameter to my array, and validate it Input will end up as array, not as single value
vpx_funcparam_add_array in vpx_shared/vpx_shared.module
Add an parameter to my array, and validate it Input will end up as array, not as single value
vpx_funcparam_add_post in vpx_shared/vpx_shared.module
Wrapper for parameter taken from POST
vpx_funcparam_add_post in vpx_shared/vpx_shared.module
Wrapper for parameter taken from POST
vpx_funcparam_add_post in vpx_shared/vpx_shared.module
Wrapper for parameter taken from POST
vpx_funcparam_add_post_array in vpx_shared/vpx_shared.module
vpx_funcparam_add_post_array in vpx_shared/vpx_shared.module
vpx_funcparam_add_post_array in vpx_shared/vpx_shared.module
vpx_funcparam_add_uri in vpx_shared/vpx_shared.module
Wrapper for parameter taken from URI
vpx_funcparam_add_uri in vpx_shared/vpx_shared.module
Wrapper for parameter taken from URI
vpx_funcparam_add_uri in vpx_shared/vpx_shared.module
Wrapper for parameter taken from URI
vpx_shared_rest_errorcodes_get in vpx_shared/vpx_shared_rest.inc
vpx_shared_rest_errorcodes_get in vpx_shared/vpx_shared_rest.inc
vpx_shared_rest_errorcodes_get in vpx_shared/vpx_shared_rest.inc
vpx_statistics_get_historical_uploaded_mediafiles in vpx_statistics/vpx_statistics.module
vpx_statistics_get_historical_uploaded_mediafiles in vpx_statistics/vpx_statistics.module
vpx_statistics_get_historical_uploaded_mediafiles in vpx_statistics/vpx_statistics.module
vpx_statistics_get_most_popular_collections in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de 50 meest populaire collections. RTO:4
vpx_statistics_get_most_popular_collections in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de 50 meest populaire collections. RTO:4
vpx_statistics_get_most_popular_collections in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de 50 meest populaire collections. RTO:4
vpx_statistics_get_most_popular_mediafiles in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de 50 meest populaire mediafiles. RTO:2
vpx_statistics_get_most_popular_mediafiles in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de 50 meest populaire mediafiles. RTO:2
vpx_statistics_get_most_popular_mediafiles in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de 50 meest populaire mediafiles. RTO:2
vpx_statistics_get_most_popular_streams in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van populaire streams STATS:7
vpx_statistics_get_most_popular_streams in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van populaire streams STATS:7
vpx_statistics_get_most_popular_streams in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van populaire streams STATS:7
vpx_statistics_get_most_popular_words in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de meest gezochte woorden STATS:8
vpx_statistics_get_most_popular_words in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de meest gezochte woorden STATS:8
vpx_statistics_get_most_popular_words in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de meest gezochte woorden STATS:8
vpx_statistics_get_newest_collections in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de 50 nieuwste collections. RTO:3
vpx_statistics_get_newest_collections in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de 50 nieuwste collections. RTO:3
vpx_statistics_get_newest_collections in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de 50 nieuwste collections. RTO:3
vpx_statistics_get_newest_mediafiles in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de laatste 50 mediafiles. RTO:1
vpx_statistics_get_newest_mediafiles in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de laatste 50 mediafiles. RTO:1
vpx_statistics_get_newest_mediafiles in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de laatste 50 mediafiles. RTO:1
vpx_statistics_get_requested_streams in vpx_statistics/vpx_statistics.module
vpx_statistics_get_requested_streams in vpx_statistics/vpx_statistics.module
vpx_statistics_get_requested_streams in vpx_statistics/vpx_statistics.module
vpx_statistics_get_searchrequest in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de meest gezochte woorden STATS:9
vpx_statistics_get_searchrequest in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de meest gezochte woorden STATS:9
vpx_statistics_get_searchrequest in vpx_statistics/vpx_statistics.module
Opvragen van een overzicht van de meest gezochte woorden STATS:9
vpx_statistics_get_used_diskspace in vpx_statistics/vpx_statistics.module
vpx_statistics_get_used_diskspace in vpx_statistics/vpx_statistics.module
vpx_statistics_get_used_diskspace in vpx_statistics/vpx_statistics.module
vpx_statistics_set_historical_uploaded_mediafiles in vpx_statistics/vpx_statistics.module
To log an upload (via an internal call, from the xml-parser). [POST - with GET parameters] STATS:1
vpx_statistics_set_historical_uploaded_mediafiles in vpx_statistics/vpx_statistics.module
To log an upload (via an internal call, from the xml-parser). [POST - with GET parameters] STATS:1
vpx_statistics_set_historical_uploaded_mediafiles in vpx_statistics/vpx_statistics.module
To log an upload (via an internal call, from the xml-parser). [POST - with GET parameters] STATS:1
vpx_upload_uploadprogress_get in vpx_upload/vpx_upload.module
vpx_upload_uploadprogress_get in vpx_upload/vpx_upload.module
vpx_upload_uploadprogress_get in vpx_upload/vpx_upload.module
_vpx_jobs_cancel_job in vpx_jobs/vpx_jobs.module
Verwijderen van een job Een job kan alleen verwijderd worden wanneer de status WAITING, FINISHED of FAILED is, en deze niet is toegewezen aan een server.
_vpx_jobs_cancel_job in vpx_jobs/vpx_jobs.module
Verwijderen van een job Een job kan alleen verwijderd worden wanneer de status WAITING, FINISHED of FAILED is, en deze niet is toegewezen aan een server.
_vpx_jobs_cancel_job in vpx_jobs/vpx_jobs.module
Verwijderen van een job Een job kan alleen verwijderd worden wanneer de status WAITING, FINISHED of FAILED is, en deze niet is toegewezen aan een server.
_vpx_jobs_create_new_job_upload in vpx_jobs/vpx_jobs.module
Functie voor het toevoegen van een nieuwe upload job aan de database Voor een upload job wordt de file_size opgegeven. Deze wordt gecontroleerd tegen het uiteindelijk upgeloade bestand om te bepalen of de upload gelukt is
_vpx_jobs_create_new_job_upload in vpx_jobs/vpx_jobs.module
Functie voor het toevoegen van een nieuwe upload job aan de database Voor een upload job wordt de file_size opgegeven. Deze wordt gecontroleerd tegen het uiteindelijk upgeloade bestand om te bepalen of de upload gelukt is
_vpx_jobs_create_new_job_upload in vpx_jobs/vpx_jobs.module
Functie voor het toevoegen van een nieuwe upload job aan de database Voor een upload job wordt de file_size opgegeven. Deze wordt gecontroleerd tegen het uiteindelijk upgeloade bestand om te bepalen of de upload gelukt is

Code

vpx_shared/vpx_shared.module, line 388

<?php
function vpx_funcparam_add(&$a_funcparam, $a_args, $s_key, $vpx_type, $required = FALSE, $default = NULL, $value_min = FALSE, $value_max = FALSE, $custom_error = ERRORCODE_VALIDATE_FAILED, $s_key_where = "get", $is_array = FALSE) {

  // Multi key name
  // De eerste in de array is de key die de waarde van variable(n) zal bevaten
  // De rest in de array wordt gebruikt om de waarde te vinden.
  // Je kunt hiermee variabelen die vervangen worden blijven ondersteunen;
  // array("nieuw_var", "old_var", ....)
  if (is_array($s_key)) {
    // If we get here the array was empty...
    if (!count($s_key)) {
      throw new vpx_exception_error_unexpected_error();
    }

    // Ga in volgorde langs tot we een waarde tegen komen.
    foreach ($s_key as $s_key_2) {
      try {
        vpx_funcparam_add($a_funcparam, $a_args, $s_key_2, $vpx_type, TRUE/*maak het verplicht, zo we weten welke aanwezig is*/, $default, $value_min, $value_max, $custom_error, $s_key_where, $is_array);
      }
      catch (vpx_exception_error $e) {
        continue; // skip as not set
      }

      // Als we hier komen hebben we een waarde gevonden...

      $s_key = reset($s_key); // eerste key waar de waarde wordt opgeslagen.
      if ($s_key != $s_key_2) {
        $a_funcparam['a_parameters'][$s_key] = $a_funcparam['a_parameters'][$s_key_2];
        unset($a_funcparam['a_parameters'][$s_key_2]);
      }

      return;
    }

    // None was set..
    if ($required) {
      throw new vpx_exception_error(ERRORCODE_VALIDATE_REQUIRED_PARAMETER, array("@param" => $s_key, "@type" => $vpx_type));
    }

    return; // hmm not required, so ignore.
  }

  $value = vpx_get_parameter_2((isset($a_args[$s_key_where]) ? $a_args[$s_key_where] : array()), $s_key, ($required ? NULL : $default));

  if (!$is_array && is_array($value)) {
    $value = reset($value);
  }
  elseif ($is_array && !is_array($value) && !is_null($value)) {
    $value = array($value);
  }

  if ($required && (is_null($value) || ($is_array && empty($value)))) {
    throw new vpx_exception_error(ERRORCODE_VALIDATE_REQUIRED_PARAMETER, array("@param" => $s_key, "@type" => $vpx_type));
  }

  if (!$required && is_null($value)) {
    return; // not required, not set, skip
  }

  $a_funcparam['a_parameters'][$s_key] = array(
    'value' => $value, // can be array now too
    'type' => $vpx_type,
    'required' => $required,
  );

  if ($value_min !== FALSE) {
    $a_funcparam['a_parameters'][$s_key]['value_min'] = $value_min;
  }
  if ($value_max !== FALSE) {
    $a_funcparam['a_parameters'][$s_key]['value_max'] = $value_max;
  }

  // check if app is active
  if ($s_key == 'app_id') {
    $app_id = $a_funcparam['a_parameters'][$s_key]['value'];

    if ((!$is_array && $app_id) || $is_array) {
      $a_app_ids = ($is_array ? $app_id : array($app_id));

      if (count($a_app_ids)) {
        if (!vpx_shared_app_is_active($a_app_ids)) {
          throw new vpx_exception_error(ERRORCODE_APP_DISABLED);
        }
      }
    }
  }

  if ($vpx_type == VPX_TYPE_ENUM) {
    assert(is_array($value_min));
    $a_funcparam['a_parameters'][$s_key]['enum_values'] = $value_min;// Use value_min for enum values
    unset($a_funcparam['a_parameters'][$s_key]['value_min']);
  }
  elseif ($vpx_type == VPX_TYPE_CQL_ASSET) { // Here because of the app_ids....
    // Check if the format of the CQL is correct
    $a_app_ids = vpx_funcparam_get_value($a_funcparam, 'app_id');
    if (!vpx_cql_verify_asset($value, $a_app_ids, $error_text)) {
      throw new vpx_exception_error($custom_error, array("@param" => $s_key ."=". $value . "; error reported: " . $error_text, "@type" => $vpx_type));
    }
  }
  elseif ($vpx_type == VPX_TYPE_CQL_COLLECTION) {// Here because of the app_ids....
    // Check if the format of the CQL is correct
    $a_app_ids = vpx_funcparam_get_value($a_funcparam, 'app_id');
    if (!vpx_cql_verify_collection($value, $a_app_ids, $error_text)) {
      throw new vpx_exception_error($custom_error, array("@param" => $s_key ."=". $value . "; error reported: " . $error_text, "@type" => $vpx_type));
    }
  }

  if (is_array($a_funcparam['a_parameters'][$s_key]['value'])) {
    $a_value = $a_funcparam['a_parameters'][$s_key]['value'];
    $a_result = NULL;
    foreach ($a_value as $tmp_value) {
      $a_funcparam['a_parameters'][$s_key]['value'] = $tmp_value;

      $a_result = _vpx_validate_helper($a_funcparam['a_parameters'][$s_key]);
      if (vpx_check_result_for_error($a_result)) {
        break;
      }
    }

    // restore it back to it was
    $a_funcparam['a_parameters'][$s_key]['value'] = $a_value;
  }
  else {
    // valideer waarde
    $a_result = _vpx_validate_helper($a_funcparam['a_parameters'][$s_key]);
  }

  if (vpx_check_result_for_error($a_result)) {
    throw new vpx_exception_error($custom_error, array("@param" => $s_key ."=". $a_funcparam[$s_key]['value'], "@type" => $vpx_type));
  }
}
?>