-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculation_8php_source.html
94 lines (92 loc) · 7.98 KB
/
calculation_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
<!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: calculation.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_096b0de097b3e98f91191e9d894d4363.html">templates</a></li><li class="navelem"><a class="el" href="dir_ec5b3714d0ece4d73a2deb1322dd37b1.html">deprecated</a></li><li class="navelem"><a class="el" href="dir_b0d46e1b4744c0c00581e2eaaee03bdd.html">fields</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">calculation.php</div> </div>
</div><!--header-->
<div class="contents">
<a href="calculation_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"> * Calculation field output</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"> * @package GravityView</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * @subpackage GravityView/templates/fields</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="calculation_8php.html#add47a7f886e74847997a4044e9903a0a"> 9</a></span> <a class="code" href="calculation_8php.html#add47a7f886e74847997a4044e9903a0a">$gravityview_view</a> = <a class="code" href="class_gravity_view___view.html#a675d8b1454543d5bcef330c3686aff61">GravityView_View::getInstance</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> extract( <a class="code" href="calculation_8php.html#add47a7f886e74847997a4044e9903a0a">$gravityview_view</a>->getCurrentField() );</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> echo <a class="code" href="class-api_8php.html#a023eaeb09f343deeb696cb198f1667dd">gravityview_get_field_value</a>( <a class="code" href="notes_8php.html#aa5233ed44daaa56d417d58cc4d8f64c2">$entry</a>, <a class="code" href="time_8php.html#a391bb7936af986b27b996d1a6c2e142c">$field_id</a>, <a class="code" href="field-address-csv_8php.html#a3bc46d9836191735ed5edee7c38b3722">$display_value</a> );</div><div class="ttc" id="class-api_8php_html_a023eaeb09f343deeb696cb198f1667dd"><div class="ttname"><a href="class-api_8php.html#a023eaeb09f343deeb696cb198f1667dd">gravityview_get_field_value</a></div><div class="ttdeci">gravityview_get_field_value( $entry, $field_id, $display_value)</div><div class="ttdoc">Handle getting values for complex Gravity Forms fields. </div><div class="ttdef"><b>Definition:</b> <a href="class-api_8php_source.html#l01034">class-api.php:1034</a></div></div>
<div class="ttc" id="class_gravity_view___view_html_a675d8b1454543d5bcef330c3686aff61"><div class="ttname"><a href="class_gravity_view___view.html#a675d8b1454543d5bcef330c3686aff61">GravityView_View\getInstance</a></div><div class="ttdeci">static getInstance( $passed_post=NULL)</div><div class="ttdef"><b>Definition:</b> <a href="class-template_8php_source.html#l00195">class-template.php:195</a></div></div>
<div class="ttc" id="field-address-csv_8php_html_a3bc46d9836191735ed5edee7c38b3722"><div class="ttname"><a href="field-address-csv_8php.html#a3bc46d9836191735ed5edee7c38b3722">$display_value</a></div><div class="ttdeci">$display_value</div><div class="ttdef"><b>Definition:</b> <a href="field-address-csv_8php_source.html#l00017">field-address-csv.php:17</a></div></div>
<div class="ttc" id="calculation_8php_html_add47a7f886e74847997a4044e9903a0a"><div class="ttname"><a href="calculation_8php.html#add47a7f886e74847997a4044e9903a0a">$gravityview_view</a></div><div class="ttdeci">$gravityview_view</div><div class="ttdef"><b>Definition:</b> <a href="calculation_8php_source.html#l00009">calculation.php:9</a></div></div>
<div class="ttc" id="notes_8php_html_aa5233ed44daaa56d417d58cc4d8f64c2"><div class="ttname"><a href="notes_8php.html#aa5233ed44daaa56d417d58cc4d8f64c2">$entry</a></div><div class="ttdeci">$entry</div><div class="ttdef"><b>Definition:</b> <a href="notes_8php_source.html#l00027">notes.php:27</a></div></div>
<div class="ttc" id="time_8php_html_a391bb7936af986b27b996d1a6c2e142c"><div class="ttname"><a href="time_8php.html#a391bb7936af986b27b996d1a6c2e142c">$field_id</a></div><div class="ttdeci">if(false !==strpos( $value, '00:00')) $field_id</div><div class="ttdoc">string $field_id ID of the field being displayed </div><div class="ttdef"><b>Definition:</b> <a href="time_8php_source.html#l00022">time.php:22</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>