Проект для складирования кода ZF 1.x
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

229 lines
12 KiB

<!DOCTYPE html><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>Zend Framework Extras API Documentation » \ZendX_JQuery_View_Helper_AjaxLink</title>
<meta name="author" content="Mike van Riel">
<meta name="description" content="">
<link href="../css/template.css" rel="stylesheet" media="all">
<script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
<link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner"><div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Zend Framework Extras API Documentation</a><div class="nav-collapse"><ul class="nav">
<li class="dropdown">
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
<li><a>Packages</a></li>
<li><a href="../packages/Default.html"><i class="icon-folder-open"></i> Default</a></li>
<li><a href="../packages/ZendX.html"><i class="icon-folder-open"></i> ZendX</a></li>
<li><a href="../packages/ZendX_Application.html"><i class="icon-folder-open"></i> ZendX_Application</a></li>
<li><a href="../packages/ZendX_Console.html"><i class="icon-folder-open"></i> ZendX_Console</a></li>
<li><a href="../packages/ZendX_Db.html"><i class="icon-folder-open"></i> ZendX_Db</a></li>
<li><a href="../packages/ZendX_JQuery.html"><i class="icon-folder-open"></i> ZendX_JQuery</a></li>
</ul>
</li>
<li class="dropdown" id="reports-menu">
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
Reports <b class="caret"></b></a><ul class="dropdown-menu">
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
<span class="label label-info">38</span></a></li>
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
<ul></ul></a></li>
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
<span class="label label-info">4</span></a></li>
</ul>
</li>
</ul></div>
</div></div>
<div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
</div>
<div id="___" class="container">
<noscript><div class="alert alert-warning">
Javascript is disabled; several features are only available
if Javascript is enabled.
</div></noscript>
<div class="row">
<div class="span4">
<div xmlns:php="http://php.net/xsl" class="btn-toolbar">
<div class="btn-group visibility" data-toggle="buttons-checkbox">
<button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button>
</div>
<div class="btn-group view pull-right" data-toggle="buttons-radio">
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
</div>
</div>
<ul xmlns:php="http://php.net/xsl" class="side-nav nav nav-list">
<li class="nav-header">
<i title="Methods" class="icon-custom icon-method"></i> Methods
<ul><li class="method public "><a href="#method_ajaxLink" title="ajaxLink() :: Create an anchor that enables ajax-based requests and handling of the response."><span class="description">Create an anchor that enables ajax-based requests and handling of the response.</span><pre>ajaxLink()</pre></a></li></ul>
</li>
<li class="nav-header protected">» Protected
<ul><li class="method protected "><a href="#method__determineRequestHandler" title="_determineRequestHandler() :: Determine which request method (GET or POST) should be used."><span class="description">Determine which request method (GET or POST) should be used.</span><pre>_determineRequestHandler()</pre></a></li></ul>
</li>
<li class="nav-header">
<i title="Properties" class="icon-custom icon-property"></i> Properties
<ul></ul>
</li>
<li class="nav-header private">» Private
<ul><li class="property private "><a href="#property_currentLinkCallbackId" title="$currentLinkCallbackId() :: 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."><span class="description"></span><pre>$currentLinkCallbackId</pre></a></li></ul>
</li>
</ul>
</div>
<div class="span8">
<a xmlns:php="http://php.net/xsl" id="\ZendX_JQuery_View_Helper_AjaxLink"></a><ul xmlns:php="http://php.net/xsl" class="breadcrumb">
<li>
<a href="../index.html"><i title="Classes" class="icon-custom icon-class"></i></a><span class="divider">\</span>
</li>
<li class="active">
<span class="divider">\</span><a href="../classes/ZendX_JQuery_View_Helper_AjaxLink.html">ZendX_JQuery_View_Helper_AjaxLink</a>
</li>
</ul>
<div xmlns:php="http://php.net/xsl" class="element class">
<p class="short_description">jQuery Accordion Pane, goes with Accordion Container</p>
<div class="details">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>uses</th>
<td><a href="Zend_Json"></a></td>
</tr>
<tr>
<th>package</th>
<td><a href="../packages/ZendX_JQuery.View.html">ZendX_JQuery</a></td>
</tr>
<tr>
<th>subpackage</th>
<td>View</td>
</tr>
<tr>
<th>copyright</th>
<td>Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)</td>
</tr>
<tr>
<th>license</th>
<td><a href="http://framework.zend.com/license/new-bsd">New BSD License</a></td>
</tr>
</table>
<h3>
<i title="Methods" class="icon-custom icon-method"></i> Methods</h3>
<a id="method_ajaxLink"></a><div class="element clickable method public method_ajaxLink " data-toggle="collapse" data-target=".method_ajaxLink .collapse" title="public">
<h2>Create an anchor that enables ajax-based requests and handling of the response.</h2>
<pre>ajaxLink(String $label, String $url, Array $options<code> = null</code>, Array $params<code> = null</code>) : String</pre>
<div class="labels"></div>
<div class="row collapse">
<div class="span4">
<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>
<h1>$options
Key Behaviour</h1>
<p>'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=&quot;&quot;
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-&gt;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>
<table class="table table-bordered">
<tr>
<th>example</th>
<td>= array('beforeSend' => 'hideSlow', 'complete' => 'show');</td>
</tr>
<tr>
<th>link</th>
<td><a href="http://docs.jquery.com/Ajax">http://docs.jquery.com/Ajax</a></td>
</tr>
</table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$label</h4>
<code>String</code><p>Urls Title</p></div>
<div class="subelement argument">
<h4>$url</h4>
<code>String</code><p>Link to Point to</p></div>
<div class="subelement argument">
<h4>$options</h4>
<code>Array</code>
</div>
<div class="subelement argument">
<h4>$params</h4>
<code>Array</code><p>Key Value Pairs of GET/POST Parameters</p></div>
<h3>Returns</h3>
<div class="subelement response"><code>String</code></div>
</div>
<div class="span4">
<h3>Examples</h3>
<pre class="prettyprint linenums"></pre>
</div>
</div>
</div>
<a id="method__determineRequestHandler"></a><div class="element clickable method protected method__determineRequestHandler " data-toggle="collapse" data-target=".method__determineRequestHandler .collapse" title="protected">
<h2>Determine which request method (GET or POST) should be used.</h2>
<pre>_determineRequestHandler(Array $options, Boolean $hasParams) : String</pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<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'] = &quot;POST|GET&quot;;</p></div>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$options</h4>
<code>Array</code>
</div>
<div class="subelement argument">
<h4>$hasParams</h4>
<code>Boolean</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>String</code></div>
</div></div>
</div>
<h3>
<i title="Properties" class="icon-custom icon-property"></i> Properties</h3>
<a id="property_currentLinkCallbackId"> </a><div class="element clickable property private property_currentLinkCallbackId" data-toggle="collapse" data-target=".property_currentLinkCallbackId .collapse" title="private">
<h2>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.</h2>
<pre>$currentLinkCallbackId </pre>
<div class="row collapse"><div class="detail-description">
<h3>Default</h3>
<div class="subelement argument"><code>1</code></div>
</div></div>
<div class="labels"><span class="label">Static</span></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered"><tr>
<th>staticvar</th>
<td>Integer</td>
</tr></table>
</div></div>
</div>
</div>
</div>
</div>
</div>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.8.5</a> and<br>
generated on 2016-09-08T10:35:38-05:00.<br></footer></div>
</div>
</body>
</html>