Server IP : 172.67.216.182 / Your IP : 162.158.189.191 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/api/ |
Upload File : |
<?php class Caldera_Forms_API_Response_Factory { /** * Form not found error response * * @since unknown * * @return Caldera_Forms_API_Error */ public static function error_form_not_found(){ return new Caldera_Forms_API_Error( 'form-not-found', __( 'Form not found', 'caldera-forms' ) ); } /** * Form not created error response * * @since 1.8.0 * * @return Caldera_Forms_API_Error */ public static function error_form_not_created(){ return new Caldera_Forms_API_Error( 'form-not-created', __( 'Form not created', 'caldera-forms' ) ); } /** * Entry not found error response * * @since unknown * * @return Caldera_Forms_API_Error */ public static function error_entry_not_found(){ return new Caldera_Forms_API_Error( 'form-entry-not-found', __( 'Form entry not found', 'caldera-forms' ) ); } /** * Entry data response * * @since unknown * * @param $data * @param null $total * @param bool $total_pages * @return Caldera_Forms_API_Response */ public static function entry_data($data, $total = null, $total_pages = false ){ if( null === $total ){ $total = count( $data ); } $response = new Caldera_Forms_API_Response( $data, 200, array() ); $response->set_total_header( $total ); if ( is_numeric( $total_pages ) ) { $response->set_total_pages_header( $total_pages ); } return $response; } /** * Response for general settings * * @since 1.7.3 * * @param array $style_includes Style includes settings * @param bool $cdn_enable Is CDN enabled? * @param int $status Optional. Status code. Default is 200 * @return Caldera_Forms_API_Response */ public static function general_settings_response($style_includes, $cdn_enable, $status = 200 ) { return new Caldera_Forms_API_Response( [ 'styleIncludes' => $style_includes, 'cdnEnable' => $cdn_enable ], $status, array() ); } }