| <!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", "", ">", "Home", "pdt_table_of_contents.htm"); |
| document.write("<a href=\"tasks.htm\">Tasks<\/a> > 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="";h=location.href;t=document.title;e = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (e!=null) location="mailto:documentation@zend.com" + "?Subject= Feedback on PDT for page " + escape(t) + "&Body=" + escape(e).replace(/ /g, "+") + crlf + " "; 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 "Search" tab in |
| the "Search" dialog, read below. To learn more about the additional |
| tabs in the "Search" 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;"> </p></td> |
| <td style="width: 92.907%; padding-right: 10px; padding-left: 10px;"><p |
| style="font-weight: bold;"> </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 "PHP Search" 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>     You can make your search case |
| sensitive by selecting the "Case sensitive" 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 |
| "Search the Interpreter system libraries" 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 "Search" |
| 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 "Search string" 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> Checks/unchecks |
| the "Case Sensitive" 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 |
| "Type" in the "Search For" 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 |
| "Method" in the "Search For" 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 |
| "Field" in the "Search For" 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 |
| "Declarations" in the "Limit To" 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 |
| "References" in the "Limit To" 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 |
| "All occurrences" in the "Limit To" 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 "Search the Interpreter system libraries"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 |
| "Workspace" in the "Scope" 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 |
| "Selected resources" in the "Scope" 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 |
| "Enclosing projects" in the "Scope" 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 |
| "Working set" in the "Scope" 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 "Select Working Sets" 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 "Search Page Selection" 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;"> </p></td> |
| <td style="width: 92.907%; |
| padding-right: 10px; padding-left: 10px;"><p> </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;"> </p></td> |
| <td style="width: 92.907%; |
| padding-right: 10px; padding-left: 10px;"><p> </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> |