Peace/doc/lib/Peace/Model/Application.pm.html

176 lines
5.1 KiB
HTML

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Peace::Model::Application - The application object representation.</title>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<link href="mailto:Alpine@build-edge-aarch64.nonet" rev="made" />
</head>
<body>
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#SYNOPSIS">SYNOPSIS</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#INSTANCE-METHODS">INSTANCE METHODS</a>
<ul>
<li><a href="#new">new</a></li>
</ul>
</li>
<li><a href="#METHODS">METHODS</a>
<ul>
<li><a href="#uuid">uuid</a></li>
<li><a href="#date_creation">date_creation</a></li>
<li><a href="#name">name</a></li>
<li><a href="#description">description</a></li>
<li><a href="#url">url</a></li>
<li><a href="#developer">developer</a></li>
<li><a href="#price">price</a></li>
<li><a href="#git_repo">git_repo</a></li>
<li><a href="#flatpak_builder_file">flatpak_builder_file</a></li>
<li><a href="#verified">verified</a></li>
</ul>
</li>
<li><a href="#SEE-ALSO">SEE ALSO</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>Peace::Model::Application - The application object representation.</p>
<h1 id="SYNOPSIS">SYNOPSIS</h1>
<pre><code>my $application = Peace::Model::Application-&gt;new(
name =&gt; $name,
description =&gt; $description,
url =&gt; $url,
developer =&gt; $developer,
price =&gt; $price,
git_repo =&gt; $git_repo,
flatpak_builder_file =&gt; $flatpak_builder_file,
verified =&gt; $verified,
);</code></pre>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>Describes a application from Peace for sale.</p>
<h1 id="INSTANCE-METHODS">INSTANCE METHODS</h1>
<p>Peace::Model::Application implements the following instance methods:</p>
<h2 id="new">new</h2>
<pre><code>my $application = Peace::Model::Application-&gt;new(
uuid =&gt; $uuid, # optional
date_creation =&gt; $date_creation, # optional
name =&gt; $name,
description =&gt; $description,
url =&gt; $url,
developer =&gt; $developer, # required or developer_uuid should be passed.
developer_uuid =&gt; $developer_uuid, # required or developer should be passed.
dbh =&gt; $dbh, # needed if developer_uuid is passed.
price =&gt; $price,
git_repo =&gt; $git_repo,
flatpak_builder_file =&gt; $flatpak_builder_file,
verified =&gt; $verified,
);</code></pre>
<h1 id="METHODS">METHODS</h1>
<p>Peace::Model::Application implements the following methods:</p>
<h2 id="uuid">uuid</h2>
<pre><code>my $uuid = $application-&gt;uuid;
$application-&gt;uuid($uuid);</code></pre>
<p>Allows to retrieve and set the application&#39;s uuid.</p>
<h2 id="date_creation">date_creation</h2>
<pre><code>my $date_creation = $application-&gt;date_creation;
$application-&gt;date_creation($date_creation);</code></pre>
<p>Allows to retrieve and set the application&#39;s date_creation.</p>
<h2 id="name">name</h2>
<pre><code>my $name = $application-&gt;name;
$application-&gt;name($name);</code></pre>
<p>Allows to retrieve and set the application&#39;s name.</p>
<h2 id="description">description</h2>
<pre><code>my $description = $application-&gt;description;
$application-&gt;description($description);</code></pre>
<p>Allows to retrieve and set the application&#39;s description.</p>
<h2 id="url">url</h2>
<pre><code>my $url = $application-&gt;url;
$application-&gt;url($url);</code></pre>
<p>Allows to retrieve and set the application&#39;s url.</p>
<h2 id="developer">developer</h2>
<pre><code>my $developer = $application-&gt;developer;
$application-&gt;developer($developer);</code></pre>
<p>Allows to retrieve and set the application&#39;s developer which is a <a href="Developer.pm.html">Peace::Model::Developer</a>.</p>
<h2 id="price">price</h2>
<pre><code>my $price = $application-&gt;price;
$application-&gt;price($price);</code></pre>
<p>Allows to retrieve and set the application&#39;s price.</p>
<h2 id="git_repo">git_repo</h2>
<pre><code>my $git_repo = $application-&gt;git_repo;
$application-&gt;git_repo($git_repo);</code></pre>
<p>Allows to retrieve and set the application&#39;s git_repo.</p>
<h2 id="flatpak_builder_file">flatpak_builder_file</h2>
<pre><code>my $flatpak_builder_file = $application-&gt;flatpak_builder_file;
$application-&gt;flatpak_builder_file($flatpak_builder_file);</code></pre>
<p>Allows to retrieve and set the application&#39;s flatpak_builder_file.</p>
<h2 id="verified">verified</h2>
<pre><code>my $verified = $application-&gt;verified;
$application-&gt;verified($verified);</code></pre>
<p>Allows to retrieve and set the application&#39;s verified status.</p>
<h1 id="SEE-ALSO">SEE ALSO</h1>
<p><a href="Developer.pm.html">Peace::Model::Developer</a>, <a href="../DAO/Application.pm.html">Peace::DAO::Application</a></p>
</body>
</html>