Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Admin_Page_Status::get_logs()

Retrieve an array of log files


Description Description


Return Return

(array) log key => log file name


Top ↑

Source Source

File: includes/admin/class.llms.admin.page.status.php

	private static function get_logs() {

		$files  = @scandir( LLMS_LOG_DIR );
		$result = array();
		if ( ! empty( $files ) ) {
			foreach ( $files as $key => $value ) {
				if ( ! in_array( $value, array( '.', '..' ) ) ) {
					if ( ! is_dir( $value ) && strstr( $value, '.log' ) ) {
						$result[ sanitize_title( $value ) ] = $value;
					}
				}
			}
		}
		return $result;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.11.2 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: