Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 20dfcd2025b439230f37dde734a38157 > files > 42

php-ZendFramework-extras-1.12.3-3.mga4.noarch.rpm

<!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><title>Zend Framework Extras API Documentation</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta><link rel="stylesheet" href="../css/template.css" type="text/css"></link><script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script><script type="text/javascript" src="../js/jquery.tools.min.js"></script><script type="text/javascript" src="../js/jquery-ui-1.8.2.custom.min.js"></script><script type="text/javascript" src="../js/template.js"></script></head><body><div id="content"><h1 class="file">JQuery/View/Helper/AjaxLink.php</h1><div id="file-nav-box"><div id="file-nav-options">
              Show:
              <img src="../images/icons/visibility_public.png" alt="Public" id="show-public"></img><img src="../images/icons/visibility_protected.png" alt="Protected" id="show-protected"></img><img src="../images/icons/visibility_private.png" alt="Private" id="show-private"></img><span class="attribute" id="show-inherited">inherited</span></div><div id="file-nav-container"><ul id="file-nav"><li><a href="#classes"><img src="../images/icons/class.png" alt="Class" height="14"></img>
                          Classes
                      </a><ul><li><a href="#\ZendX_JQuery_View_Helper_AjaxLink">\ZendX_JQuery_View_Helper_AjaxLink</a></li></ul></li></ul><div style="clear: left;"></div></div><div id="file-nav-tab">
              Table of Contents
          </div></div><a name="top" class="anchor"></a><div id="file-description"><div class="short-description">Zend Framework</div><div class="long-description"><p>LICENSE</p>

<p>This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.</p></div></div><dl class="file-info"><dt>Category</dt><dd>ZendX
         
    </dd><dt>Copyright</dt><dd>Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
         
    </dd><dt>License</dt><dd><a href="http://framework.zend.com/license/new-bsd">New BSD License</a>
         
    </dd><dt>Package</dt><dd>ZendX_JQuery
         
    </dd><dt>Subpackage</dt><dd>View
         
    </dd><dt>Version</dt><dd>$Id: AjaxLink.php 24400 2011-08-26 08:55:28Z padraic $
         
    </dd></dl><a name="classes" class="anchor"></a><a id="\ZendX_JQuery_View_Helper_AjaxLink" class="anchor"></a><h2 class="class">\ZendX_JQuery_View_Helper_AjaxLink<div class="to-top"><a href="#top">jump to top</a></div></h2><div class="class"><small class="package"><b>Package: </b>ZendX\JQuery\View</small><div class="short-description">jQuery Accordion Pane, goes with Accordion Container</div><div class="long-description"></div><dl class="class-info"><dt>Parent(s)</dt><dd>\Zend_View_Helper_HtmlElement</dd><dt>Copyright</dt><dd>Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
         
    </dd><dt>License</dt><dd><a href="http://framework.zend.com/license/new-bsd">New BSD License</a>
         
    </dd><dt>Uses</dt><dd>\global\Zend_Json
         
    </dd></dl><h3>Properties</h3><div><a id="\ZendX_JQuery_View_Helper_AjaxLink::$currentLinkCallbackId" class="anchor"></a><div class="property private"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_private.png" style="margin-right: 5px" alt="private"></img><span class="highlight">$currentLinkCallbackId</span> = 1</code><div class="description"><span class="attribute">static</span><div class="short-description">Static because multiple instances accross views of AjaxLink could reset the counter and a
subcontainer because of this single private class variable seems too much overhead.</div></div><div class="code-tabs"><div class="long-description"></div><strong>Default value</strong><code>1</code><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>n/a</dd><dt>Staticvar</dt><dd>Integer
         
    </dd></dl></div><div class="clear"></div></div></div><h3>Methods</h3><div><a id="\ZendX_JQuery_View_Helper_AjaxLink::_determineRequestHandler()" class="anchor"></a><div class="method protected"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img><span class="highlight">_determineRequestHandler</span><span class="nb-faded-text">(Array $options, Boolean $hasParams)</span> : String</code><div class="description"><p class="short_description">Determine which request method (GET or POST) should be used.</p></div><div class="code-tabs"><div class="long-description"><p>Normally the request method is determined implicitly by the rule,
if addiotional params are sent, POST, if not GET. You can overwrite
this behaviiour by implicitly setting $options['method'] = "POST|GET";</p></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$options</th><td>Array</td><td><em></em></td></tr><tr><th>$hasParams</th><td>Boolean</td><td><em></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>String</td><td></td></tr></table></div><div class="clear"></div></div><a id="\ZendX_JQuery_View_Helper_AjaxLink::ajaxLink()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">ajaxLink</span><span class="nb-faded-text">(String $label, String $url, Array $options = null, Array $params = null)</span> : String</code><div class="description"><p class="short_description">Create an anchor that enables ajax-based requests and handling of the response.</p></div><div class="code-tabs"><div class="long-description"><p>This helper creates links that make XmlHttpRequests to the server. It allows to
inject the response into the DOM. Fancy effects going with the links can be enabled
via simple callback shortnames. The functionality is mostly controlled by the $options
array:</p>

<p>$options
 Key                Behaviour
 =================================================================================
 'update'        Update a container with the content fetched from $url
 'method'        Explicit Requesting method mimicing the jQuery functionality: GET, POST
 'inline'        True or false, wheater to inline the javascript in onClick=""
                    atttribute or append it to jQuery onLoad Stack.
 'complete'      String specifies javascript called after successful request or a
                    shortname of a jQuery effect that should be applied to the 'update' element.
 'beforeSend'   String specifies javascript called before the request is sent, or a
                    shortname of a jQuery effect that should be applied to the link clicked.
 'noscript'     True/false, include a noscript variant that directly requests
                    the given $url (make sure to check $request->isXmlHttpRequest())
 'dataType'     What type of data is the response returning? text, html, json?
 'title'            HTML Attribute title of the Anchor
 'class'            HTML Attribute class of the Anchor
 'id'           HTML Attribute id of the Anchor
 'attribs'      Array of Key-Value pairs with HTML Attribute names and their content.</p>

<p>BeforeSend Callback:
Can include shortcuts as a string assignment to fire of effects before sending of request.
Possible shortcuts are 'fadeOut', 'fadeOutSlow', 'hide', 'hideSlow', 'slideUp', 'flash',</p></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$label</th><td>String</td><td><em><p>Urls Title</p></em></td></tr><tr><th>$url</th><td>String</td><td><em><p>Link to Point to</p></em></td></tr><tr><th>$options</th><td>Array</td><td><em></em></td></tr><tr><th>$params</th><td>Array</td><td><em><p>Key Value Pairs of GET/POST Parameters</p>
</em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>String</td><td></td></tr></table><strong>Details</strong><dl class="function-info"><dt>Example</dt><dd>$options = array('beforeSend' => 'hideSlow', 'complete' => 'show');
         
    </dd><dt>Link</dt><dd><a href="http://docs.jquery.com/Ajax">http://docs.jquery.com/Ajax</a>
         
    </dd></dl></div><div class="clear"></div></div></div></div></div><small class="footer">
            Documentation was generated by
            <a href="http://phpdoc.org">phpDocumentor
                2.0.0a12</a>.
        </small></body></html>