Server IP : 104.21.38.3 / Your IP : 162.158.107.16 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/coircraft.com/wp-content/plugins/caldera-forms/classes/csv/ |
Upload File : |
<?php /** * Utility functions for CSV related work * * @package Caldera_Forms * @author Josh Pollock <[email protected]> * @license GPL-2.0+ * @link * @copyright 2016 CalderaWP LLC */ class Caldera_Forms_CSV_Util { /** * Get the character encoding for CSV files * * @since 1.4.4 * * @param array $form Form config. Technically optional, but should always be passed for benefit of filter. * * @return string */ public static function character_encoding( array $form = array() ){ /** * Change the character encoding for CSV * * Used for entry export and email attachments * * @since 1.4.4 * * @param string $encoding. Default is 'utf-8' * @param array $form Current form configuration. Might be empty */ return apply_filters( 'caldera_forms_csv_character_encoding', 'utf-8', $form ); } /** * Check if CSV export should show time in localized or UTC time. * * @since 1.5.6 * * @param array $form * * @return bool */ public static function should_localize_time( array $form = array() ){ /** * Change if localized or UTC timestamp should be used in CSV export * * @since 1.5.6 * * @param bool $localize. Default is false. Change to true to use localized time, instead of UTC. * @param array $form Current form configuration. Might be empty */ return apply_filters( 'caldera_forms_csv_localize_time', false, $form ); } /** * Get the file type for CSV -- tsv or csv * * @since 1.5.6 * * @param array $form Form config. Technically optional, but should always be passed for benefit of filter. * * @return string */ public static function file_type( array $form = array() ){ /** * Change the file type for CSV -- tsv or csv * * @since 1.5.6 * * @param string $type. Default is 'csv' * @param array $form Current form configuration. Might be empty */ return apply_filters( 'caldera_forms_csv_file_type', 'csv', $form ); } }