ext.util.mixedcollection.html.svn-base
来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SVN-BASE 代码 · 共 1,095 行 · 第 1/5 页
SVN-BASE
1,095 行
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MixedCollection</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.util.MixedCollection-clone"></a>
<b>clone</b>() : MixedCollection <div class="mdesc">
<div class="short">Creates a duplicate of this collection</div>
<div class="long">
Creates a duplicate of this collection <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>MixedCollection</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MixedCollection</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.util.MixedCollection-contains"></a>
<b>contains</b>( <code>Object o</code> ) : Boolean <div class="mdesc">
<div class="short">Returns true if the collection contains the passed Object as an item.</div>
<div class="long">
Returns true if the collection contains the passed Object as an item. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>o</code> : Object<div class="sub-desc">The Object to look for in the collection.</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Boolean</code><div class="sub-desc">True if the collection contains the Object as an item.</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MixedCollection</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.util.MixedCollection-containsKey"></a>
<b>containsKey</b>( <code>String key</code> ) : Boolean <div class="mdesc">
<div class="short">Returns true if the collection contains the passed Object as a key.</div>
<div class="long">
Returns true if the collection contains the passed Object as a key. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>key</code> : String<div class="sub-desc">The key to look for in the collection.</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Boolean</code><div class="sub-desc">True if the collection contains the Object as a key.</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MixedCollection</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.util.MixedCollection-each"></a>
<b>each</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc">
<div class="short">Executes the specified function once for every item in the collection, passing the following arguments:item : Mixed...</div>
<div class="long">
Executes the specified function once for every item in the collection, passing the following arguments:<div class="mdetail-params"><ul><li><b>item</b> : Mixed<p class="sub-desc">The collection item</p></li><li><b>index</b> : Number<p class="sub-desc">The item's index</p></li><li><b>length</b> : Number<p class="sub-desc">The total number of items in the collection</p></li></ul></div>The function should return a boolean value. Returning false from the function will stop the iteration. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>fn</code> : Function<div class="sub-desc">The function to execute for each item.</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the function.</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MixedCollection</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.util.MixedCollection-eachKey"></a>
<b>eachKey</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc">
<div class="short">Executes the specified function once for every key in the collection, passing eachkey, and its associated item as th...</div>
<div class="long">
Executes the specified function once for every key in the collection, passing eachkey, and its associated item as the first two parameters. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>fn</code> : Function<div class="sub-desc">The function to execute for each item.</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the function.</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MixedCollection</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.util.MixedCollection-filter"></a>
<b>filter</b>( <code>String property</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span> ) : MixedCollection <div class="mdesc">
<div class="short">Filter the <i>objects</i> in this collection by a specific property.Returns a new collection that has been filtered.</div>
<div class="long">
Filter the <i>objects</i> in this collection by a specific property.Returns a new collection that has been filtered. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>property</code> : String<div class="sub-desc">A property on your objects</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either string that the property valuesshould start with or a RegExp to test against the property</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part of the string, not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison (defaults to False).</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>MixedCollection</code><div class="sub-desc">The new filtered collection</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MixedCollection</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.util.MixedCollection-filterBy"></a>
<b>filterBy</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : MixedCollection <div class="mdesc">
<div class="short">Filter by a function. Returns a new collection that has been filtered.The passed function will be called with each o...</div>
<div class="long">
Filter by a function. Returns a <i>new</i> collection that has been filtered.The passed function will be called with each object in the collection.If the function returns true, the value is included otherwise it is filtered. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called, it will receive the args o (the object), k (the key)</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>MixedCollection</code><div class="sub-desc">The new filtered collection</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MixedCollection</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.util.MixedCollection-find"></a>
<b>find</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : Object <div class="mdesc">
<div class="short">Returns the first item in the collection which elicits a true return value from thepassed selection function.</div>
<div class="long">
Returns the first item in the collection which elicits a true return value from thepassed selection function. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>fn</code> : Function<div class="sub-desc">The selection function to execute for each item.</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the function.</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Object</code><div class="sub-desc">The first item in the collection which returned true from the selection function.</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MixedCollection</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.util.MixedCollection-findIndex"></a>
<b>findIndex</b>( <code>String property</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Number start</code>]</span>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span> ) : Number <div class="mdesc">
<div class="short">Finds the index of the first matching object in this collection by a specific property/value.</div>
<div class="long">
Finds the index of the first matching object in this collection by a specific property/value. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>property</code> : String<div class="sub-desc">The name of a property on your objects.</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">A string that the property valuesshould start with or a RegExp to test against the property.</div></li><li><code>start</code> : Number<div class="sub-desc">(optional) The index to start searching at (defaults to 0).</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part of the string, not just the beginning.</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison.</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Number</code><div class="sub-desc">The matched index or -1</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MixedCollection</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.util.MixedCollection-findIndexBy"></a>
<b>findIndexBy</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Number start</code>]</span> ) : Number <div class="mdesc">
<div class="short">Find the index of the first matching object in this collection by a function.If the function returns true it is cons...</div>
<div class="long">
Find the index of the first matching object in this collection by a function.If the function returns <i>true</i> it is considered a match. <div class="mdetail-params">
<strong>Parameters:</strong>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?