kernel/write.c
/*
 * Add data validations to a worksheet
 */
Add data validations to a worksheet
Add data validations to a worksheet
void validation(xls_resource_write_t *res, zend_string *range, lxw_data_validation *validation)
{
    char *rangeStr = ZSTR_VAL(range);
    if (strchr(rangeStr, ':')) {
	    worksheet_data_validation_range(res->worksheet, RANGE(rangeStr), validation);
    } else {
	    worksheet_data_validation_cell(res->worksheet, CELL(rangeStr), validation);
    }
}
void validation ( xls_resource_write_t * res , zend_string * range , lxw_data_validation * validation ) { char * rangeStr = ZSTR_VAL ( range ) ; if ( strchr ( rangeStr , ' ' ) ) { worksheet_data_validation_range ( res -> worksheet , RANGE ( rangeStr ) , validation ) ; } else { worksheet_data_validation_cell ( res -> worksheet , CELL ( rangeStr ) , validation ) ; } }
Add data validations to a worksheet
Add data validations to a worksheet