HM\BackUpWordPress\Backup_Engine::get_errors PHP 메소드

get_errors() 공개 메소드

Get the array of errors encountered during the backup process.
public get_errors ( string | null $context = null ) : array
$context string | null The context for the error, usually the Backup Engine that encountered the error.
리턴 array The array of errors.
    public function get_errors($context = null)
    {
        // Only return a specific contexts errors.
        if (!empty($context)) {
            return isset($this->errors[$context]) ? $this->errors[$context] : array();
        }
        return $this->errors;
    }