| <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN"> |
| <html> |
| <head> |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
| <meta name="generator" content="Adobe RoboHelp - www.adobe.com"> |
| <title>Creating a New PHP Interface</title> |
| <link rel="stylesheet" href="default_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss"> |
| <!-- |
| if (navigator.appName !="Netscape") |
| { document.write("<link rel='stylesheet' href='default.css'>");} |
| //--> |
| </script> |
| <style> |
| <!-- |
| 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"> |
| <!-- |
| h1.whs1 { color:#00709e; } |
| table.whs2 { x-cell-content-align:top; width:100%; border-spacing:0px; } |
| col.whs3 { width:7.093%; } |
| col.whs4 { width:92.907%; } |
| tr.whs5 { x-cell-content-align:top; } |
| td.whs6 { width:7.093%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-right-style:none; border-left-style:none; border-top-style:none; } |
| p.whs7 { font-size:6pt; } |
| td.whs8 { width:92.907%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-top-style:none; border-right-style:none; } |
| p.whs9 { font-weight:bold; } |
| td.whs10 { width:7.093%; padding-right:10px; padding-left:10px; border-left-style:none; border-right-style:none; border-bottom-style:none; } |
| img_whs11 { border:none; width:28px; height:33px; float:none; border-style:none; } |
| td.whs12 { width:92.907%; padding-right:10px; padding-left:10px; border-right-style:none; border-bottom-style:none; } |
| ol.whs13 { list-style:decimal; } |
| p.whs14 { font-weight:normal; } |
| img_whs15 { border:none; width:343px; height:358px; float:none; border-style:none; } |
| td.whs16 { width:100%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-right-style:none; border-left-style:none; } |
| img_whs17 { border:none; width:300px; height:232px; float:none; border-style:none; } |
| table.whs18 { x-cell-content-align:top; width:100%; x-condition:Online; border-spacing:0px; } |
| tr.whs19 { x-cell-content-align:top; height:16px; x-condition:Online; } |
| td.whs20 { width:7.093%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-bottom-style:none; border-top-style:none; x-condition:Online; } |
| td.whs21 { width:92.907%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-right-style:none; border-top-style:none; x-condition:Online; } |
| tr.whs22 { x-cell-content-align:top; height:35px; x-condition:Online; } |
| td.whs23 { width:7.093%; padding-right:10px; padding-left:10px; border-left-style:none; border-right-style:none; border-bottom-style:none; x-condition:Online; } |
| img_whs24 { border:none; width:28px; height:18px; float:none; x-condition:Online; border-style:none; } |
| td.whs25 { width:92.907%; padding-right:10px; padding-left:10px; border-right-style:none; border-bottom-style:none; x-condition:Online; } |
| tr.whs26 { x-cell-content-align:top; height:19px; x-condition:Online; } |
| div.whs27 { width:100%; } |
| p.whs28 { text-align:right; x-condition:Product, Online; } |
| p.whs29 { text-align:right; x-condition:Online; } |
| p.whs30 { text-align:center; x-condition:PDT; text-decoration:underline; } |
| --> |
| </style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript"> |
| <!-- |
| 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"> |
| <!-- |
| if (window.gbWhTopic) |
| { |
| if (window.setRelStartPage) |
| { |
| |
| } |
| |
| |
| if(1) |
| { |
| |
| } |
| |
| if (window.setRelStartPage) |
| { |
| setRelStartPage("IDE_Help.htm"); |
| |
| autoSync(1); |
| 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"> |
| <!-- |
| if (window.writeIntopicBar) |
| writeIntopicBar(4); |
| //--> |
| </script> |
| <h1 class="whs1">Creating a New PHP Interface</h1> |
| <p>This procedure demonstrates how to create a new PHP interface using |
| the new PHP Interface wizard.</p> |
| <table x-use-null-cells cellspacing="0" width="100%" class="whs2"> |
| <col class="whs3"> |
| <col class="whs4"> |
| |
| <tr valign="top" class="whs5"> |
| <td colspan="1" rowspan="1" width="7.093%" class="whs6"> |
| <p class="whs7"> </td> |
| <td colspan="1" rowspan="1" width="92.907%" class="whs8"> |
| <p class="whs9"> </td></tr> |
| <tr valign="top" class="whs5"> |
| <td width="7.093%" class="whs10"> |
| <p class="whs7"><img src="ref_icon.png" x-maintain-ratio="TRUE" alt="Instructions on how to complete a procedure" width="28px" height="33px" border="0" class="img_whs11"></td> |
| <td width="92.907%" class="whs12"> |
| <p class="whs9">To create a new PHP interface:</p> |
| <ol type="1" class="whs13"> |
| <li style="margin-left: -20px; font-weight: normal; " class=p><p class="whs14">In |
| PHP Explorer view, right-click the project/file in which you want to create |
| the new interface and select New | Interface.<br> |
| The New PHP Interface wizard is displayed.</p></li> |
| </ol> |
| <p class=picture><img src="new_php_interface_dialog.png" x-maintain-ratio="TRUE" width="343px" height="358px" border="0" class="img_whs15"></p> |
| <ol start="2" type="1" class="whs13"> |
| <li style="margin-left: -20px;" class=p><p>Enter the following details:</p></li> |
| <li style="margin-left: -20px;" class=p-ListBullet1><p class=ListBullet1>Source |
| Folder - If necessary, click Browse to change the soruce folder.</p></li> |
| <li style="margin-left: -20px;" class=p-ListBullet1><p class=ListBullet1>Interface |
| location - Select one of the following options:</p></li> |
| <li style="margin-left: -20px;" class=p-ListBullet2><p class=ListBullet2>Create |
| New File - A new PHP file will be created in which the new interface will |
| be insered</p></li> |
| <li style="margin-left: -20px;" class=p-ListBullet2><p class=ListBullet2>Add |
| in existing file - The interface will be created in an existing file.<br> |
| Click Browse to select the file in which it will be created and select |
| whether it will be created as the 1st PHP Block in the file or as a New |
| PHP Block at the end of the file.</p></li> |
| <li style="margin-left: -20px;" class=p-ListBullet1><p class=ListBullet1>Interface |
| Name - Enter the name for the interface. If you chose the Create New File |
| option, this will also be the name of the file.</p></li> |
| <li style="margin-left: -20px;" class=p-ListBullet1><p class=ListBullet1>Extended |
| Interfaces - Click Add to select interfaces to extend/implement.</p></li> |
| <li style="margin-left: -20px;" class=p-ListBullet1><p class=ListBullet1>Generate |
| PHPDoc Blocks - Mark this checkbox for PHPDoc Blocks to be automatically |
| created for this item.</p></li> |
| </ol> |
| <ol start="3" type="1" class="whs13"> |
| <li style="margin-left: -20px;" class=p><p>Click Finish.</p></li> |
| </ol></td></tr> |
| <tr valign="top" class="whs5"> |
| <td rowspan="1" colspan="2" width="100%" class="whs16"> |
| <p>The new interface will be created with the required code.</p> |
| <p class=picture><img src="new_php_interface.png" x-maintain-ratio="TRUE" width="300px" height="232px" border="0" class="img_whs17"></p> |
| </td> |
| </tr> |
| </table> |
| <table x-use-null-cells cellspacing="0" width="100%" class="whs18"> |
| <col class="whs3"> |
| <col class="whs4"> |
| |
| <tr valign="top" class="whs19"><td colspan="1" rowspan="1" width="7.093%" class="whs20"> |
| <p class="whs7"> </td> |
| <td colspan="1" rowspan="1" width="92.907%" class="whs21"> |
| <p> </td></tr> |
| <tr valign="top" class="whs22"><td width="7.093%" class="whs23"> |
| <p class="whs7"><img src="link_icon.png" x-maintain-ratio="TRUE" alt="Related Links" width="28px" height="18px" border="0" class="img_whs24"></td> |
| <td width="92.907%" class="whs25"> |
| <p class="whs9">Related Links:</p> |
| <p>Creating PHP Elements<br> |
| <a href="creating_a_new_php_class.htm">Creating a New PHP Class</a></p> |
| <p><a href="creating_php_projects.htm">Creating PHP Projects</a></p> |
| <p><a href="file_creation.htm">Creating PHP Files</a></td></tr> |
| <tr valign="top" class="whs26"><td colspan="1" rowspan="1" width="7.093%" class="whs23"> |
| <p class="whs7"> </td> |
| <td colspan="1" rowspan="1" width="92.907%" class="whs25"> |
| <p> </td></tr> |
| </table> |
| <div placeholder id="footer" class="whs27"> |
| <p align="right" class="whs28"><span |
| style="background-color: #ffffff; x-condition: Online, Product;">V</span>iew |
| the Zend Product <a href="http://www.zend.com/en/resources/zend-documentation/zend-studio/zend-studio.htm" |
| style="color: #000000; x-condition: Product, Online;">Online Documentation</a> |
| for the most up-to-date information.</p> |
| <p align="right" class="whs29"><span style="background-color: #ffffff;"><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 " + escape(t) + "&Body=" + escape(e).replace(/ /g, "+") + crlf + " "; void 0" |
| style="x-condition: Online;">Submit Documentation Feedback</a></span></p> |
| <p align="center" class="whs30">PHP Development |
| Tools</p> |
| </div> |
| <script type="text/javascript" language="javascript1.2"> |
| <!-- |
| highlightSearch(); |
| if (window.writeIntopicBar) |
| writeIntopicBar(0); |
| if(0) |
| { |
| |
| } |
| //--> |
| </script> |
| </body> |
| </html> |