339 lines
13 KiB
HTML
339 lines
13 KiB
HTML
<!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" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>
|
|
Class: WpPlugin
|
|
|
|
— Documentation by YARD 0.8.6.1
|
|
|
|
</title>
|
|
|
|
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
|
|
|
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
hasFrames = window.top.frames.main ? true : false;
|
|
relpath = '';
|
|
framesUrl = "frames.html#!" + escape(window.location.href);
|
|
</script>
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
|
|
|
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
<div id="header">
|
|
<div id="menu">
|
|
|
|
<a href="_index.html">Index (W)</a> »
|
|
|
|
|
|
<span class="title">WpPlugin</span>
|
|
|
|
|
|
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
</div>
|
|
|
|
<div id="search">
|
|
|
|
<a class="full_list_link" id="class_list_link"
|
|
href="class_list.html">
|
|
Class List
|
|
</a>
|
|
|
|
<a class="full_list_link" id="method_list_link"
|
|
href="method_list.html">
|
|
Method List
|
|
</a>
|
|
|
|
<a class="full_list_link" id="file_list_link"
|
|
href="file_list.html">
|
|
File List
|
|
</a>
|
|
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<iframe id="search_frame"></iframe>
|
|
|
|
<div id="content"><h1>Class: WpPlugin
|
|
|
|
|
|
|
|
</h1>
|
|
|
|
<dl class="box">
|
|
|
|
<dt class="r1">Inherits:</dt>
|
|
<dd class="r1">
|
|
<span class="inheritName"><span class='object_link'><a href="WpItem.html" title="WpItem (class)">WpItem</a></span></span>
|
|
|
|
<ul class="fullTree">
|
|
<li>Object</li>
|
|
|
|
<li class="next"><span class='object_link'><a href="WpItem.html" title="WpItem (class)">WpItem</a></span></li>
|
|
|
|
<li class="next">WpPlugin</li>
|
|
|
|
</ul>
|
|
<a href="#" class="inheritanceTree">show all</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dt class="r2">Includes:</dt>
|
|
<dd class="r2"><span class='object_link'><a href="WpPlugin/Vulnerable.html" title="WpPlugin::Vulnerable (module)">Vulnerable</a></span></dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt class="r1 last">Defined in:</dt>
|
|
<dd class="r1 last">lib/common/models/wp_plugin.rb<span class="defines">,<br />
|
|
lib/common/models/wp_plugin/vulnerable.rb</span>
|
|
</dd>
|
|
|
|
</dl>
|
|
<div class="clear"></div>
|
|
|
|
<h2>Defined Under Namespace</h2>
|
|
<p class="children">
|
|
|
|
|
|
<strong class="modules">Modules:</strong> <span class='object_link'><a href="WpPlugin/Vulnerable.html" title="WpPlugin::Vulnerable (module)">Vulnerable</a></span>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2>Instance Attribute Summary</h2>
|
|
|
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="WpItem.html" title="WpItem (class)">WpItem</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem.html#found_from-instance_method" title="WpItem#found_from (method)">#found_from</a></span>, <span class='object_link'><a href="WpItem.html#name-instance_method" title="WpItem#name (method)">#name</a></span>, <span class='object_link'><a href="WpItem.html#path-instance_method" title="WpItem#path (method)">#path</a></span>, <span class='object_link'><a href="WpItem.html#version%3D-instance_method" title="WpItem#version= (method)">#version</a></span>, <span class='object_link'><a href="WpItem.html#wp_content_dir-instance_method" title="WpItem#wp_content_dir (method)">#wp_content_dir</a></span>, <span class='object_link'><a href="WpItem.html#wp_plugins_dir-instance_method" title="WpItem#wp_plugins_dir (method)">#wp_plugins_dir</a></span></p>
|
|
|
|
|
|
|
|
<h3 class="inherited">Attributes included from <span class='object_link'><a href="WpItem/Vulnerable.html" title="WpItem::Vulnerable (module)">WpItem::Vulnerable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem/Vulnerable.html#vulns_file-instance_method" title="WpItem::Vulnerable#vulns_file (method)">#vulns_file</a></span>, <span class='object_link'><a href="WpItem/Vulnerable.html#vulns_xpath-instance_method" title="WpItem::Vulnerable#vulns_xpath (method)">#vulns_xpath</a></span></p>
|
|
|
|
|
|
|
|
<h2>
|
|
Instance Method Summary
|
|
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
</h2>
|
|
|
|
<ul class="summary">
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#forge_uri-instance_method" title="#forge_uri (instance method)">- (void) <strong>forge_uri</strong>(target_base_uri) </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'>
|
|
<p>Sets the @uri.</p>
|
|
</div></span>
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpPlugin/Vulnerable.html" title="WpPlugin::Vulnerable (module)">Vulnerable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpPlugin/Vulnerable.html#vulns_file-instance_method" title="WpPlugin::Vulnerable#vulns_file (method)">#vulns_file</a></span>, <span class='object_link'><a href="WpPlugin/Vulnerable.html#vulns_xpath-instance_method" title="WpPlugin::Vulnerable#vulns_xpath (method)">#vulns_xpath</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="WpItem.html" title="WpItem (class)">WpItem</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem.html#%3C%3D%3E-instance_method" title="WpItem#<=> (method)">#<=></a></span>, <span class='object_link'><a href="WpItem.html#%3D%3D-instance_method" title="WpItem#== (method)">#==</a></span>, <span class='object_link'><a href="WpItem.html#%3D%3D%3D-instance_method" title="WpItem#=== (method)">#===</a></span>, <span class='object_link'><a href="WpItem.html#allowed_options-instance_method" title="WpItem#allowed_options (method)">#allowed_options</a></span>, <span class='object_link'><a href="WpItem.html#initialize-instance_method" title="WpItem#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="WpItem.html#set_options-instance_method" title="WpItem#set_options (method)">#set_options</a></span>, <span class='object_link'><a href="WpItem.html#uri-instance_method" title="WpItem#uri (method)">#uri</a></span>, <span class='object_link'><a href="WpItem.html#url-instance_method" title="WpItem#url (method)">#url</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpItem/Output.html" title="WpItem::Output (module)">WpItem::Output</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem/Output.html#output-instance_method" title="WpItem::Output#output (method)">#output</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpItem/Infos.html" title="WpItem::Infos (module)">WpItem::Infos</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem/Infos.html#changelog_url-instance_method" title="WpItem::Infos#changelog_url (method)">#changelog_url</a></span>, <span class='object_link'><a href="WpItem/Infos.html#error_log_url-instance_method" title="WpItem::Infos#error_log_url (method)">#error_log_url</a></span>, <span class='object_link'><a href="WpItem/Infos.html#has_changelog%3F-instance_method" title="WpItem::Infos#has_changelog? (method)">#has_changelog?</a></span>, <span class='object_link'><a href="WpItem/Infos.html#has_directory_listing%3F-instance_method" title="WpItem::Infos#has_directory_listing? (method)">#has_directory_listing?</a></span>, <span class='object_link'><a href="WpItem/Infos.html#has_error_log%3F-instance_method" title="WpItem::Infos#has_error_log? (method)">#has_error_log?</a></span>, <span class='object_link'><a href="WpItem/Infos.html#has_readme%3F-instance_method" title="WpItem::Infos#has_readme? (method)">#has_readme?</a></span>, <span class='object_link'><a href="WpItem/Infos.html#readme_url-instance_method" title="WpItem::Infos#readme_url (method)">#readme_url</a></span>, <span class='object_link'><a href="WpItem/Infos.html#url_is_200%3F-instance_method" title="WpItem::Infos#url_is_200? (method)">#url_is_200?</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpItem/Existable.html" title="WpItem::Existable (module)">WpItem::Existable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem/Existable.html#exists%3F-instance_method" title="WpItem::Existable#exists? (method)">#exists?</a></span>, <span class='object_link'><a href="WpItem/Existable.html#exists_from_response%3F-instance_method" title="WpItem::Existable#exists_from_response? (method)">#exists_from_response?</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpItem/Vulnerable.html" title="WpItem::Vulnerable (module)">WpItem::Vulnerable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem/Vulnerable.html#vulnerabilities-instance_method" title="WpItem::Vulnerable#vulnerabilities (method)">#vulnerabilities</a></span>, <span class='object_link'><a href="WpItem/Vulnerable.html#vulnerable_to%3F-instance_method" title="WpItem::Vulnerable#vulnerable_to? (method)">#vulnerable_to?</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpItem/Versionable.html" title="WpItem::Versionable (module)">WpItem::Versionable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpItem/Versionable.html#to_s-instance_method" title="WpItem::Versionable#to_s (method)">#to_s</a></span>, <span class='object_link'><a href="WpItem/Versionable.html#version-instance_method" title="WpItem::Versionable#version (method)">#version</a></span></p>
|
|
<div id="constructor_details" class="method_details_list">
|
|
<h2>Constructor Details</h2>
|
|
|
|
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="WpItem.html#initialize-instance_method" title="WpItem#initialize (method)">WpItem</a></span></p>
|
|
|
|
</div>
|
|
|
|
|
|
<div id="instance_method_details" class="method_details_list">
|
|
<h2>Instance Method Details</h2>
|
|
|
|
|
|
<div class="method_details first">
|
|
<h3 class="signature first" id="forge_uri-instance_method">
|
|
|
|
- (<tt>void</tt>) <strong>forge_uri</strong>(target_base_uri)
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
<p class="note returns_void">This method returns an undefined value.</p>
|
|
<p>Sets the @uri</p>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
<p class="tag_title">Parameters:</p>
|
|
<ul class="param">
|
|
|
|
<li>
|
|
|
|
<span class='name'>target_base_uri</span>
|
|
|
|
|
|
<span class='type'>(<tt><span class='object_link'><a href="URI.html" title="URI (module)">URI</a></span></tt>)</span>
|
|
|
|
|
|
|
|
—
|
|
<div class='inline'>
|
|
<p>The URI of the wordpress blog</p>
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
13
|
|
14
|
|
15</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_plugin.rb', line 13</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_forge_uri'>forge_uri</span><span class='lparen'>(</span><span class='id identifier rubyid_target_base_uri'>target_base_uri</span><span class='rparen'>)</span>
|
|
<span class='ivar'>@uri</span> <span class='op'>=</span> <span class='id identifier rubyid_target_base_uri'>target_base_uri</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='const'>URI</span><span class='period'>.</span><span class='id identifier rubyid_encode'>encode</span><span class='lparen'>(</span><span class='id identifier rubyid_wp_plugins_dir'>wp_plugins_dir</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/</span><span class='tstring_end'>'</span></span> <span class='op'>+</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="footer">
|
|
Generated on Sun Jun 9 16:05:18 2013 by
|
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
0.8.6.1 (ruby-1.9.3).
|
|
</div>
|
|
|
|
</body>
|
|
</html> |