403Webshell
Server IP : 43.130.17.34  /  Your IP : 216.73.217.6
Web Server : nginx/1.28.0
System : Linux VM-4-12-opencloudos 6.6.92-34.1.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 25 21:32:13 CST 2025 x86_64
User : www ( 1000)
PHP Version : 8.0.26
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 : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/yespkg.com/wp-content/plugins/admin-columns-pro.5.1.3/classes/Export/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/yespkg.com/wp-content/plugins/admin-columns-pro.5.1.3/classes/Export//Exporter.php
<?php

namespace ACP\Export;

/**
 * Base class for exporters, which handle the construction of the file content for an an exported
 * list screen. Extending classes should generally implement exporting functionality for a specific
 * file format, such as CSV
 * @since 1.0
 */
abstract class Exporter {

	/**
	 * Rows to be exported. Format: array of associative arrays, where each associative array
	 * denotes a row; a key should be the column name, and the values should be the corresponding
	 * value
	 * @since 1.0
	 * @var array
	 */
	private $data;

	/**
	 * Column header labels. Should, for each column key, contain the corresponding label to be
	 * outputted in the exported file
	 * @since 1.0
	 * @var array
	 */
	private $column_labels;

	/**
	 * Export the data to a temporary file. The file should be the CSV, Excel or other export file
	 * such that it can be downloaded by the user
	 *
	 * @param resource $fh File reference pointer of file to write to
	 *
	 * @return string
	 * @since 1.0
	 */
	abstract public function export( $fh );

	/**
	 * Load an array of data to the exporter
	 *
	 * @param array $data Data array. See the property $data for the expected format
	 *
	 * @since 1.0
	 */
	public function load_data( $data ) {
		$this->data = $data;
	}

	/**
	 * Retrieve the data loaded to the exporter
	 * @return array Data array. See the property $data for the returned format
	 * @since 1.0
	 */
	public function get_data() {
		return $this->data;
	}

	/**
	 * Load an array of column labels to the exporter
	 *
	 * @param array $column_labels Column labels array. See the property $column_labels for the
	 *                             expected format
	 *
	 * @since 1.0
	 */
	public function load_column_labels( $column_labels ) {
		$this->column_labels = $column_labels;
	}

	/**
	 * Retrieve the column labels loaded to the exporter
	 * @return array Column labels array. See the property $data for the returned format
	 * @since 1.0
	 */
	public function get_column_labels() {
		return $this->column_labels;
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit