~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to doc/doxygen/html/agStaffHelper_8class_8php_source.html

  • Committer: Chad Heuschober
  • Date: 2011-05-04 18:50:43 UTC
  • mfrom: (1.1.971 trunk)
  • Revision ID: chad.heuschober@mail.cuny.edu-20110504185043-k91xu7u2hbzxlblx
Merged in most recent changes from cuny-sps-trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
<a name="l00018"></a><a class="code" href="classagStaffHelper.html">00018</a> <span class="keyword">class </span><a class="code" href="classagStaffHelper.html" title="Provides bulk-staff manipulation methods.">agStaffHelper</a>
66
66
<a name="l00019"></a>00019 {
67
67
<a name="l00020"></a>00020 
68
 
<a name="l00021"></a>00021   <span class="keyword">public</span> <span class="keyword">static</span> function getStaffResourceTypes()
 
68
<a name="l00021"></a>00021   <span class="keyword">public</span> <span class="keyword">static</span> function getStaffResourceTypes($returnAbbr = FALSE)
69
69
<a name="l00022"></a>00022   {
70
 
<a name="l00023"></a>00023     $staffResourceTypes = agDoctrineQuery::create()
71
 
<a name="l00024"></a>00024             -&gt;select(<span class="stringliteral">&#39;id, staff_resource_type&#39;</span>)
72
 
<a name="l00025"></a>00025             -&gt;from(<span class="stringliteral">&#39;agStaffResourceType&#39;</span>)
73
 
<a name="l00026"></a>00026             -&gt;execute(array(), <span class="stringliteral">&#39;key_value_pair&#39;</span>);
74
 
<a name="l00027"></a>00027     <span class="keywordflow">return</span> $staffResourceTypes;
75
 
<a name="l00028"></a>00028   }
76
 
<a name="l00029"></a>00029 
77
 
<a name="l00030"></a>00030 }
 
70
<a name="l00023"></a>00023     $typeField = <span class="stringliteral">&#39;staff_resource_type&#39;</span>;
 
71
<a name="l00024"></a>00024 
 
72
<a name="l00025"></a>00025     <span class="keywordflow">if</span> ($returnAbbr) { $typeField = <span class="stringliteral">&#39;staff_resource_type_abbr&#39;</span>; }
 
73
<a name="l00026"></a>00026 
 
74
<a name="l00027"></a>00027     $staffResourceTypes = agDoctrineQuery::create()
 
75
<a name="l00028"></a>00028             -&gt;select(<span class="stringliteral">&#39;id, &#39;</span> . $typeField)
 
76
<a name="l00029"></a>00029             -&gt;from(<span class="stringliteral">&#39;agStaffResourceType&#39;</span>)
 
77
<a name="l00030"></a>00030             -&gt;execute(array(), <span class="stringliteral">&#39;key_value_pair&#39;</span>);
 
78
<a name="l00031"></a>00031     <span class="keywordflow">return</span> $staffResourceTypes;
 
79
<a name="l00032"></a>00032   }
 
80
<a name="l00033"></a>00033 
 
81
<a name="l00034"></a>00034 }
78
82
</pre></div></div>
79
83
</div>
80
84
<!--- window showing the filter options -->