517 lines
18 KiB
HTML
517 lines
18 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: WpTheme
|
|
|
|
— Documentation by YARD 0.8.5.2
|
|
|
|
</title>
|
|
|
|
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
|
|
|
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" 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">WpTheme</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: WpTheme
|
|
|
|
|
|
|
|
</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">WpTheme</li>
|
|
|
|
</ul>
|
|
<a href="#" class="inheritanceTree">show all</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
|
|
<dt class="r2">Extended by:</dt>
|
|
<dd class="r2"><span class='object_link'><a href="WpTheme/Findable.html" title="WpTheme::Findable (module)">Findable</a></span></dd>
|
|
|
|
|
|
|
|
|
|
<dt class="r1">Includes:</dt>
|
|
<dd class="r1"><span class='object_link'><a href="WpTheme/Versionable.html" title="WpTheme::Versionable (module)">Versionable</a></span>, <span class='object_link'><a href="WpTheme/Vulnerable.html" title="WpTheme::Vulnerable (module)">Vulnerable</a></span></dd>
|
|
|
|
|
|
|
|
|
|
|
|
<dt class="r2 last">Defined in:</dt>
|
|
<dd class="r2 last">lib/common/models/wp_theme.rb<span class="defines">,<br />
|
|
lib/common/models/wp_theme/findable.rb,<br /> lib/common/models/wp_theme/vulnerable.rb,<br /> lib/common/models/wp_theme/versionable.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="WpTheme/Findable.html" title="WpTheme::Findable (module)">Findable</a></span>, <span class='object_link'><a href="WpTheme/Versionable.html" title="WpTheme::Versionable (module)">Versionable</a></span>, <span class='object_link'><a href="WpTheme/Vulnerable.html" title="WpTheme::Vulnerable (module)">Vulnerable</a></span>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
<ul class="summary">
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#style_url-instance_method" title="#style_url (instance method)">- (String) <strong>style_url</strong> </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'>
|
|
<p>The url to the theme stylesheet.</p>
|
|
</div></span>
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<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="#allowed_options-instance_method" title="#allowed_options (instance method)">- (Object) <strong>allowed_options</strong> </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
|
|
</li>
|
|
|
|
|
|
<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="WpTheme/Findable.html" title="WpTheme::Findable (module)">Findable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpTheme/Findable.html#find-instance_method" title="WpTheme::Findable#find (method)">find</a></span>, <span class='object_link'><a href="WpTheme/Findable.html#find_from_css_link-instance_method" title="WpTheme::Findable#find_from_css_link (method)">find_from_css_link</a></span>, <span class='object_link'><a href="WpTheme/Findable.html#find_from_wooframework-instance_method" title="WpTheme::Findable#find_from_wooframework (method)">find_from_wooframework</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpTheme/Vulnerable.html" title="WpTheme::Vulnerable (module)">Vulnerable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpTheme/Vulnerable.html#vulns_file-instance_method" title="WpTheme::Vulnerable#vulns_file (method)">#vulns_file</a></span>, <span class='object_link'><a href="WpTheme/Vulnerable.html#vulns_xpath-instance_method" title="WpTheme::Vulnerable#vulns_xpath (method)">#vulns_xpath</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="WpTheme/Versionable.html" title="WpTheme::Versionable (module)">Versionable</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="WpTheme/Versionable.html#version-instance_method" title="WpTheme::Versionable#version (method)">#version</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#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_attr_details" class="attr_details">
|
|
<h2>Instance Attribute Details</h2>
|
|
|
|
|
|
<span id="style_url=-instance_method"></span>
|
|
<div class="method_details first">
|
|
<h3 class="signature first" id="style_url-instance_method">
|
|
|
|
- (<tt>String</tt>) <strong>style_url</strong>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
<p>The url to the theme stylesheet</p>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
<p class="tag_title">Returns:</p>
|
|
<ul class="return">
|
|
|
|
<li>
|
|
|
|
|
|
<span class='type'>(<tt>String</tt>)</span>
|
|
|
|
|
|
|
|
—
|
|
<div class='inline'>
|
|
<p>The url to the theme stylesheet</p>
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
26
|
|
27
|
|
28
|
|
29
|
|
30
|
|
31</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_theme.rb', line 26</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_style_url'>style_url</span>
|
|
<span class='kw'>unless</span> <span class='ivar'>@style_url</span>
|
|
<span class='ivar'>@style_url</span> <span class='op'>=</span> <span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>style.css</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
|
<span class='kw'>end</span>
|
|
<span class='ivar'>@style_url</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
</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="allowed_options-instance_method">
|
|
|
|
- (<tt>Object</tt>) <strong>allowed_options</strong>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
14</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_theme.rb', line 14</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_allowed_options'>allowed_options</span><span class='semicolon'>;</span> <span class='kw'>super</span> <span class='op'><<</span> <span class='symbol'>:style_url</span> <span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="method_details ">
|
|
<h3 class="signature " 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">
|
|
|
|
|
|
21
|
|
22
|
|
23</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/common/models/wp_theme.rb', line 21</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_content_dir'>wp_content_dir</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/themes/</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 Fri Jul 19 23:10:17 2013 by
|
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
0.8.5.2 (ruby-1.9.3).
|
|
</div>
|
|
|
|
</body>
|
|
</html> |