blob: 8f338e6a1efd083db33160f840c24a4f2456bbb6 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Adobe RoboHelp 8">
<title>Searching for PHP Elements</title>
<link rel="StyleSheet" href="default.css" type="text/css">
<style type="text/css">
<!--
body { border-left-style:None;
border-right-style:None;
border-bottom-style:None;
background-color:Transparent;
border-top-style:None; }
-->
</style>
<style type="text/css">
<!--
body { border-left-style:None;
border-right-style:None;
border-bottom-style:None;
background-color:Transparent;
border-top-style:None; }
-->
</style>
<script type="text/javascript" language="JavaScript">
//<![CDATA[
function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();
}
if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
origWidth = innerWidth;
origHeight = innerHeight;
onresize = reDo;
}
onerror = null;
//]]>
</script>
<style type="text/css">
<!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
p.WebHelpNavBar { text-align:right; }
-->
</style>
<script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>
<script type="text/javascript" language="javascript" src="whver.js"></script>
<script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>
<script type="text/javascript" language="javascript1.2" src="whutils.js"></script>
<script type="text/javascript" language="javascript1.2" src="whlang.js"></script>
<script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>
<script type="text/javascript" language="javascript1.2">//<![CDATA[
<!--
if (window.gbWhTopic)
{
var strUrl = document.location.href;
var bc = 0;
var n = strUrl.toLowerCase().indexOf("bc-");
if(n != -1)
{
document.location.href = strUrl.substring(0, n);
bc = strUrl.substring(n+3);
}
if (window.setRelStartPage)
{
addTocInfo("Tasks\nSearching for PHP Elements");
addAvenueInfo("Tasks","using_code_folding.htm","opening_php_elements.htm");
}
document.write("<p style=\"text-align:left\"> ");
AddMasterBreadcrumbs("ide_help.htm", "", "&gt;", "Home", "pdt_table_of_contents.htm");
document.write("<a href=\"tasks.htm\">Tasks<\/a> &gt; Searching for PHP Elements<\/p>");
if (window.setRelStartPage)
{
setRelStartPage("ide_help.htm");
autoSync(0);
sendSyncInfo();
sendAveInfoOut();
}
}
else
if (window.gbIE4)
document.location.reload();
//-->
//]]></script>
</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5"><script type="text/javascript" language="javascript1.2">//<![CDATA[
<!--
if (window.writeIntopicBar)
writeIntopicBar(4);
//-->
//]]></script>
<div style="width: 100%; position: relative;" id="header">
<p align="right"><a
title="Documentation Survey" href="http://spreadsheets.google.com/viewform?formkey=dC1scEswTjFia2tDQ3Y5TVJBbkNQcWc6MQ">Documentation
Survey</a>
| <a href="javascript:crlf=&quot;&quot;;h=location.href;t=document.title;e = &quot;&quot; + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (e!=null) location=&quot;mailto:documentation@zend.com&quot; + &quot;?Subject= Feedback on PDT for page &quot; + escape(t) + &quot;&amp;Body=&quot; + escape(e).replace(/ /g, &quot;+&quot;) + crlf + &quot; &quot;; void 0"><span
style="background-color: #ffffff;">Submit Documentation</span><span
style="background-color: #ffffff;"> Feedback</span></a><span
style="background-color: #ffffff;"></span><span style="background-color: #ffffff;">
</span><span style="background-color: #ffffff;">|
</span><span
style="background-color: #ffffff;"><a title="View Latest Version and Get PDF Online"
href="http://www.zend.com/en/resources/zend-documentation/"
target="_blank">View Latest
Version and Get PDF Online</a></span></p>
</div>
<h1>Searching for PHP Elements
</h1>
<p>Searching for PHP elements is a functionality that allows you to search
for PHP elements with your defined specifications. PHP elements are classes,
functions, constants, types, methods and references/declarations that
are used in your code. Use this option if you want to locate one of these
elements in your workspace, project or in a single file.</p>
<p class="Note">Note:</p>
<p class="NoteText">For information about the &quot;Search&quot; tab in
the &quot;Search&quot; dialog, read below. To learn more about the additional
tabs in the &quot;Search&quot; dialog see <a href="../../plugins_root/org.eclipse.platform.doc.user/reference/ref-45.htm">File
Search</a> in the <a href="../../nav/10">Workbench User Guide</a>. If
you are using the Remote Search option, be aware that it does not search
all of the resources of the remote server.</p>
<p>This procedure describes how to search for PHP elements (classes, functions
and constants) within your files and projects.</p>
<table cellspacing="0" width="100%">
<col style="width: 7.093%;">
<col style="width: 92.907%;">
<tr style="vertical-align: top;">
<td style="width: 7.093%; padding-right: 10px; padding-left: 10px;"><p
style="font-size: 6pt;">&#160;</p></td>
<td style="width: 92.907%; padding-right: 10px; padding-left: 10px;"><p
style="font-weight: bold;">&#160;</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="width: 7.093%; padding-right: 10px; padding-left: 10px;"><p
style="font-size: 6pt;"><img src="ref_icon.png" alt="ref_icon.png" style="border: none;" width="28" height="33" border="0"></p></td>
<td style="width: 92.907%; padding-right: 10px; padding-left: 10px;"><p
style="font-weight: bold;">To search for a PHP element:</p>
<ol type="1">
<li class="p" style="margin-left: -20px;"><p>From the Menu
Bar go to <span style="font-weight: bold;"><b>Search | Search</b></span>
-or- press <span style="font-weight: bold;"><b>Ctrl+H</b></span>.<br>
The &quot;PHP Search&quot; dialog will open.</p></li>
</ol>
<p class="FIgureCaption"><img src="php_search_screen_pdt.png" alt="PHP Search" title="PHP Search Dialog" style="border: none;" width="500" height="381" border="0"></p>
<ol start="2" type="1">
<li class="p" style="margin-left: -20px;"><p>Enter a search
string. You have the option of using <a href="../../plugins_root/org.eclipse.platform.doc.user/reference/ref-45.htm"
target="_blank">Wildcards</a>.</p></li>
</ol>
<p>&#160;&#160;&#160;&#160;&#160;You can make your search case
sensitive by selecting the &quot;Case sensitive&quot; box.</p>
<ol start="3" type="1">
<li class="p" style="margin-left: -20px;"><p>Select whether
to search for a:</p></li>
</ol>
<ul type="square">
<li><p><span style="font-weight: bold;"><b>Type</b></span> - A class
(This option will search for both methods and fields.)</p></li>
<li><p><span style="font-weight: bold;"><b>Method</b></span> - A function</p></li>
<li><p><span style="font-weight: bold;"><b>Field</b></span> - A constant</p></li>
</ul>
<ol start="4" type="1">
<li class="p" style="margin-left: -20px;"><p>Select whether
to limit your search to:</p></li>
</ol>
<ul type="square">
<li><p><span style="font-weight: bold;"><b>Declarations</b></span>
- The location where the type, method, or field are defined.</p></li>
<li><p><span style="font-weight: bold;"><b>References</b></span> -
Anywhere the type, method, or field are referred to.</p></li>
<li><p><span style="font-weight: bold;"><b>All occurrences</b></span>
- Anywhere the type, method, or field are referred to or declared.</p></li>
</ul>
<ol start="5" type="1">
<li class="p" style="margin-left: -20px;"><p>To extend your
search to include interpreter system libraries, select the
&quot;Search the Interpreter system libraries&quot; box. This
allows PDT
to search in the libraries of the PHP version you have selected
in the <a href="php_interpreter.htm">PHP Interpreter Preferences</a>.</p></li>
<li class="p" style="margin-left: -20px;"><p>Select whether
to search in your:</p></li>
</ol>
<ul type="square">
<li><p><span style="font-weight: bold;"><b>Workspace</b></span> -
The entire workspace.</p></li>
<li><p><span style="font-weight: bold;"><b>Selected resources</b></span>
- Select these in PHP Explorer view before opening the &quot;Search&quot;
dialog. All sub-files and sub-folders within the selected
resource will be included in the search.</p></li>
<li><p><span style="font-weight: bold;"><b>Enclosing projects</b></span>
- The projects which the selected resources are in.</p></li>
<li><p><span style="font-weight: bold;"><b>Working Set</b></span>
- Click <span style="font-weight: bold;"><b>Choose...</b></span>
to select the required Working Set.</p></li>
</ul>
<ol start="7">
<li class="p" style="margin-left: -20px;"><p>Click <span style="font-weight: bold;"><b>Search</b></span></p></li>
</ol></td>
</tr>
<tr style="vertical-align: top;">
<td colspan="2" style="width: 100%; padding-right: 10px; padding-left: 10px;"><p>The
Search view will open displaying the results of the search.</p>
<p>To go to an element, double-click the required option from the
search view.</p>
<p class="picture"><img src="search_results.png" alt="search_results.png" title="Search Results" style="border: none;" width="527" height="159" border="0"></p></td>
</tr>
</table>
<p class="Note">Note:</p>
<p class="NoteText">By default, the File Search, Remote Search, Task Search,
Java Search and JavaScript Search dialogs will be tabbed
with the PHP Search dialog. To make these unavailable, click <span style="font-weight: bold;"><b>Customize...</b></span>
within the PHP Search dialog and unmark required options.</p>
<h2>Hotkeys</h2>
<p><span style="font-weight: bold;"><b>The following hotkeys are available</b></span>:</p>
<table cellspacing="0" width="74.373%">
<col style="width: 23.951%;">
<col style="width: 76.049%;">
<tr style="vertical-align: top;">
<td style="border: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p style="font-weight: bold;">Action</p></td>
<td style="border-top: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 76.049%; padding-right: 10px;
padding-left: 10px;"><p style="font-weight: bold;">Shortcut</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Esc / Alt+F4</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Closes
the Search dialog.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt + A</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Brings
the cursor to the &quot;Search string&quot; field.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt + I</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>&#160;Checks/unchecks
the &quot;Case Sensitive&quot; checkbox.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt + T</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Checks
&quot;Type&quot; in the &quot;Search For&quot; box.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt +M</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Checks
&quot;Method&quot; in the &quot;Search For&quot; box.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt +F</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Checks
&quot;Field&quot; in the &quot;Search For&quot; field.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt +L</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Checks
&quot;Declarations&quot; in the &quot;Limit To&quot; field.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt +R</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Checks
&quot;References&quot; in the &quot;Limit To&quot; field.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt +O</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Checks
&quot;All occurrences&quot; in the &quot;Limit To&quot; field.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt +Y</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Checks/unchecks
the &quot;Search the Interpreter system libraries&quot;field.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt + W</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Selects
&quot;Workspace&quot; in the &quot;Scope&quot; field.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt + D</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Selects
&quot;Selected resources&quot; in the &quot;Scope&quot; field.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt + J</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Selects
&quot;Enclosing projects&quot; in the &quot;Scope&quot; field.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt + K</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Selects
&quot;Working set&quot; in the &quot;Scope&quot; field.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt + H</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Opens
the &quot;Select Working Sets&quot; dialog.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt + S</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Performs
the search and shows the results in the Search view.</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="border-left: Solid 1px #000000; border-right: Solid 1px #000000;
border-bottom: Solid 1px #000000; width: 23.951%; padding-right: 10px;
padding-left: 10px;"><p>Alt +Z</p></td>
<td style="border-right: Solid 1px #000000; border-bottom: Solid 1px #000000;
width: 76.049%; padding-right: 10px; padding-left: 10px;"><p>Opens
the &quot;Search Page Selection&quot; dialog and allows you to
customize the search page.</p></td>
</tr>
</table>
<table cellspacing="0" width="100%">
<col style="width: 7.093%;">
<col style="width: 92.907%;">
<tr style="vertical-align: top;">
<td style="width: 7.093%; padding-right: 10px;
padding-left: 10px;"><p
style="font-size: 6pt;">&#160;</p></td>
<td style="width: 92.907%;
padding-right: 10px; padding-left: 10px;"><p>&#160;</p></td>
</tr>
<tr style="vertical-align: top;">
<td style="width: 7.093%; padding-right: 10px;
padding-left: 10px;"><p
style="font-size: 6pt;"><img src="link_icon.png" alt="link_icon.png" style="border: none;" width="32" height="40" border="0"> </p></td>
<td style="width: 92.907%;
padding-right: 10px; padding-left: 10px;"><p
style="font-weight: bold;">Related Links:</p>
<p style="font-weight: normal;"><a href="search.htm">Search Menu</a></p></td>
</tr>
<tr style="vertical-align: top;">
<td style="width: 7.093%; padding-right: 10px;
padding-left: 10px;"><p
style="font-size: 6pt;">&#160;</p></td>
<td style="width: 92.907%;
padding-right: 10px; padding-left: 10px;"><p>&#160;</p></td>
</tr>
</table>
<div style="width: 100%; position: relative;" id="footer">
<p style="text-decoration: underline; "
align="center">PHP Development
Tools</p>
</div>
<script type="text/javascript" language="javascript1.2">//<![CDATA[
<!--
if (window.writeIntopicBar)
writeIntopicBar(0);
highlightSearch();
//-->
//]]></script>
</body>
</html>