-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_w_p_upgrader_skin_8php_source.html
98 lines (96 loc) · 19.6 KB
/
_w_p_upgrader_skin_8php_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GravityView: WPUpgraderSkin.php Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="custom-doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">GravityView
 <span id="projectnumber">2.17</span>
</div>
<div id="projectbrief">The best, easiest way to display Gravity Forms entries on your website.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_c18ef6374e5a604878aeced0c5671a4f.html">vendor_prefixed</a></li><li class="navelem"><a class="el" href="dir_86b19f5df6747de098149f7d19a9f494.html">gravitykit</a></li><li class="navelem"><a class="el" href="dir_cef91bdb3eb284f59d80e56ba3584b5f.html">foundation</a></li><li class="navelem"><a class="el" href="dir_43934aaf9842616eb4dc1cec03c6d866.html">src</a></li><li class="navelem"><a class="el" href="dir_80e37e0f6a2cd9d5c47166d75818752a.html">Licenses</a></li><li class="navelem"><a class="el" href="dir_af8c3f6bda0a95754b421048338ee005.html">WP</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">WPUpgraderSkin.php</div> </div>
</div><!--header-->
<div class="contents">
<a href="_w_p_upgrader_skin_8php.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <?php<span class="comment"></span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/**</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * @license GPL-2.0-or-later</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Modified by gravityview on 13-January-2023 using Strauss.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * @see https://github.com/BrianHenryIE/strauss</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> </div><div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="namespace_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p.html"> 9</a></span> <span class="keyword">namespace </span><a class="code" href="namespace_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p.html">GravityKit\GravityView\Foundation\Licenses\WP</a>;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> use <a class="code" href="namespace_w_p___upgrader___skin.html">WP_Upgrader_Skin</a>;</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> use <a class="code" href="namespace_exception.html">Exception</a>;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">/**</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * This is class is used to catch errors and suppress output during product installation/update.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> *</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> *</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * @since 1.0.0</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> *</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * @see WP_Upgrader_Skin</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> */</span></div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html"> 22</a></span> <span class="keyword">class </span><a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html">WPUpgraderSkin</a> <span class="keyword">extends</span> <a class="code" href="namespace_w_p___upgrader___skin.html">WP_Upgrader_Skin</a> {<span class="comment"></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> /**</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * @inheritDoc Silences header display.</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> *</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> * @since 1.0.0</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> *</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> * @return void</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> */</span></div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html#aafc568a720a06040aa70083c38435804"> 30</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html#aafc568a720a06040aa70083c38435804">header</a>() {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  }</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"></span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"> /**</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"> * @inheritDoc Silences footer display.</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"> *</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"> *</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment"> * @since 1.0.0</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment"> *</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment"> * @return void</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment"> */</span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html#ae5058e5b790e8cea2dd33c1c9bbcbbd4"> 41</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html#ae5058e5b790e8cea2dd33c1c9bbcbbd4">footer</a>() {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment"></span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment"> /**</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"> * @inheritDoc Silences results.</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"> *</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"> * @since 1.0.0</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment"> *</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment"> * @return void</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment"> */</span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html#af672b16b6add06305941cfc72f1e0b4e"> 51</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html#af672b16b6add06305941cfc72f1e0b4e">feedback</a>( $feedback, ...<a class="code" href="search-field-submit_8php.html#a67e94494731d99ed23b123e95175bc10">$args</a> ) {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment"></span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment"> /**</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment"> * Throws an error when one (or multiple) is encountered.</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment"> *</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment"> * @since 1.0.0</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment"> *</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"> * @throws Exception</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"> *</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment"> * @return void</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment"> */</span></div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html#ac4ccf388427bba799fe84a9033c8f3f7"> 63</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html#ac4ccf388427bba799fe84a9033c8f3f7">error</a>( $errors ) {</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="edit__link_8php.html#a73004ce9cd673c1bfafd1dc351134797">$output</a> = $errors;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">if</span> ( is_wp_error( $errors ) && $errors->has_errors() ) {</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">// One error is enough to get a sense of why the installation failed.</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="edit__link_8php.html#a73004ce9cd673c1bfafd1dc351134797">$output</a> = $errors->get_error_messages()[0];</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  }</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">throw</span> <span class="keyword">new</span> <a class="code" href="namespace_exception.html">Exception</a>( <a class="code" href="edit__link_8php.html#a73004ce9cd673c1bfafd1dc351134797">$output</a> );</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> }</div><div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin_html_aafc568a720a06040aa70083c38435804"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html#aafc568a720a06040aa70083c38435804">GravityKit\GravityView\Foundation\Licenses\WP\WPUpgraderSkin\header</a></div><div class="ttdeci">header()</div><div class="ttdoc">Silences header display. </div><div class="ttdef"><b>Definition:</b> <a href="_w_p_upgrader_skin_8php_source.html#l00030">WPUpgraderSkin.php:30</a></div></div>
<div class="ttc" id="namespace_exception_html"><div class="ttname"><a href="namespace_exception.html">Exception</a></div></div>
<div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin_html"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html">GravityKit\GravityView\Foundation\Licenses\WP\WPUpgraderSkin</a></div><div class="ttdoc">This is class is used to catch errors and suppress output during product installation/update. </div><div class="ttdef"><b>Definition:</b> <a href="_w_p_upgrader_skin_8php_source.html#l00022">WPUpgraderSkin.php:22</a></div></div>
<div class="ttc" id="search-field-submit_8php_html_a67e94494731d99ed23b123e95175bc10"><div class="ttname"><a href="search-field-submit_8php.html#a67e94494731d99ed23b123e95175bc10">$args</a></div><div class="ttdeci">$args</div><div class="ttdef"><b>Definition:</b> <a href="search-field-submit_8php_source.html#l00015">search-field-submit.php:15</a></div></div>
<div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin_html_ae5058e5b790e8cea2dd33c1c9bbcbbd4"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html#ae5058e5b790e8cea2dd33c1c9bbcbbd4">GravityKit\GravityView\Foundation\Licenses\WP\WPUpgraderSkin\footer</a></div><div class="ttdeci">footer()</div><div class="ttdoc">Silences footer display. </div><div class="ttdef"><b>Definition:</b> <a href="_w_p_upgrader_skin_8php_source.html#l00041">WPUpgraderSkin.php:41</a></div></div>
<div class="ttc" id="namespace_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_html"><div class="ttname"><a href="namespace_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p.html">GravityKit\GravityView\Foundation\Licenses\WP</a></div><div class="ttdoc">GPL-2.0-or-later </div><div class="ttdef"><b>Definition:</b> <a href="_w_p_upgrader_skin_8php_source.html#l00009">WPUpgraderSkin.php:9</a></div></div>
<div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin_html_ac4ccf388427bba799fe84a9033c8f3f7"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html#ac4ccf388427bba799fe84a9033c8f3f7">GravityKit\GravityView\Foundation\Licenses\WP\WPUpgraderSkin\error</a></div><div class="ttdeci">error( $errors)</div><div class="ttdoc">Throws an error when one (or multiple) is encountered. </div><div class="ttdef"><b>Definition:</b> <a href="_w_p_upgrader_skin_8php_source.html#l00063">WPUpgraderSkin.php:63</a></div></div>
<div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin_html_af672b16b6add06305941cfc72f1e0b4e"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_licenses_1_1_w_p_1_1_w_p_upgrader_skin.html#af672b16b6add06305941cfc72f1e0b4e">GravityKit\GravityView\Foundation\Licenses\WP\WPUpgraderSkin\feedback</a></div><div class="ttdeci">feedback( $feedback,... $args)</div><div class="ttdoc">Silences results. </div><div class="ttdef"><b>Definition:</b> <a href="_w_p_upgrader_skin_8php_source.html#l00051">WPUpgraderSkin.php:51</a></div></div>
<div class="ttc" id="edit__link_8php_html_a73004ce9cd673c1bfafd1dc351134797"><div class="ttname"><a href="edit__link_8php.html#a73004ce9cd673c1bfafd1dc351134797">$output</a></div><div class="ttdeci">$output</div><div class="ttdef"><b>Definition:</b> <a href="edit__link_8php_source.html#l00018">edit_link.php:18</a></div></div>
<div class="ttc" id="namespace_w_p___upgrader___skin_html"><div class="ttname"><a href="namespace_w_p___upgrader___skin.html">WP_Upgrader_Skin</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/>
<script type="text/javascript">
jQuery( document ).ready( function( $ ) {
$( 'a.anchor[id^=_filters],a.anchor[id^=_actions]' ).each( function() {
$( this )
.text('#')
.attr( 'href', function() {
return '#' + $( this ).attr( 'id' );
}).prependTo( $( this ).parent('dt' ).next('dd') );
});
});
</script>
</body>
</html>