Files
luos/workflow/engine/src/ProcessMaker/Plugins/Interfaces/PluginDetail.php

302 lines
6.1 KiB
PHP
Raw Normal View History

2017-07-21 16:56:44 -04:00
<?php
namespace ProcessMaker\Plugins\Interfaces;
2017-08-01 12:16:06 -04:00
use ProcessMaker\Plugins\Traits\Attributes;
/**
* Class PluginDetail
* @package ProcessMaker\Plugins\Interfaces
*/
2017-07-21 16:56:44 -04:00
class PluginDetail
{
2017-08-01 12:16:06 -04:00
use Attributes;
/** @var string */
public $sNamespace;
2017-08-01 12:16:06 -04:00
/** @var string */
public $sDescription = '';
2017-08-01 12:16:06 -04:00
/** @var string */
public $sClassName;
2017-08-01 12:16:06 -04:00
/** @var string */
public $sFriendlyName = '';
2017-08-01 12:16:06 -04:00
/** @var string */
public $sFilename;
2017-08-01 12:16:06 -04:00
/** @var string */
public $sPluginFolder = '';
2017-08-01 12:16:06 -04:00
/** @var string */
public $sSetupPage = '';
2017-08-01 12:16:06 -04:00
/** @var string */
public $sCompanyLogo = '';
2017-08-01 12:16:06 -04:00
/** @var array */
public $aWorkspaces = [];
2017-08-01 12:16:06 -04:00
/** @var bool */
public $enabled = false;
2017-08-01 12:16:06 -04:00
/** @var bool */
public $bPrivate = false;
2017-08-01 12:16:06 -04:00
/** @var int */
public $iVersion = 0;
2017-07-21 16:56:44 -04:00
/**
* This function is the constructor of the pluginDetail class
* @param string $sNamespace
* @param string $sClassName
* @param string $sFilename
* @param string $sFriendlyName
* @param string $sPluginFolder
* @param string $sDescription
* @param string $sSetupPage
2017-08-01 12:16:06 -04:00
* @param string $sCompanyLogo
* @param array $aWorkspaces
* @param bool $enable
* @param bool $bPrivate
2017-07-21 16:56:44 -04:00
* @param integer $iVersion
*/
public function __construct(
$sNamespace,
$sClassName,
$sFilename,
$sFriendlyName = '',
$sPluginFolder = '',
$sDescription = '',
$sSetupPage = '',
2017-08-01 12:16:06 -04:00
$iVersion = 0,
$sCompanyLogo = '',
$aWorkspaces = [],
$enable = false,
$bPrivate = false
2017-07-21 16:56:44 -04:00
) {
$this->sNamespace = $sNamespace;
2017-08-01 12:16:06 -04:00
$this->sDescription = $sDescription;
2017-07-21 16:56:44 -04:00
$this->sClassName = $sClassName;
$this->sFriendlyName = $sFriendlyName;
$this->sFilename = $sFilename;
2017-08-01 12:16:06 -04:00
$this->sPluginFolder = $sNamespace;
if ($sPluginFolder) {
2017-07-21 16:56:44 -04:00
$this->sPluginFolder = $sPluginFolder;
}
2017-08-01 12:16:06 -04:00
$this->sSetupPage = $sSetupPage;
$this->sCompanyLogo = $sCompanyLogo;
$this->aWorkspaces = $aWorkspaces;
$this->enabled = $enable;
$this->bPrivate = $bPrivate;
$this->iVersion = $iVersion;
}
/**
* Get name of plugin
* @return string
*/
public function getNamespace()
{
return $this->sNamespace;
}
/**
* Set name of plugin
* @param string $PluginNamespace
*/
public function setNamespace($PluginNamespace)
{
$this->sNamespace = $PluginNamespace;
}
/**
* Get description
* @return string
*/
public function getDescription()
{
return $this->sDescription;
}
/**
* Set description
* @param string $PluginDescription
*/
public function setDescription($PluginDescription)
{
$this->sDescription = $PluginDescription;
}
/**
* Get class name
* @return string
*/
public function getClassName()
{
return $this->sClassName;
}
/**
* Set class name
* @param string $PluginClassName
*/
public function setClassName($PluginClassName)
{
$this->sClassName = $PluginClassName;
}
/**
* Get friendly name
* @return string
*/
public function getFriendlyName()
{
return $this->sFriendlyName;
}
/**
* Set friendly name
* @param string $PluginFriendlyName
*/
public function setFriendlyName($PluginFriendlyName)
{
$this->sFriendlyName = $PluginFriendlyName;
}
/**
* Get path file
* @return string
*/
public function getFile()
{
return $this->sFilename;
}
/**
* Set path file
* @param string $PluginFile
*/
public function setFile($PluginFile)
{
$this->sFilename = $PluginFile;
}
/**
* Get name folder
* @return string
*/
public function getFolder()
{
return $this->sPluginFolder;
}
/**
* Set name folder
* @param string $PluginFolder
*/
public function setFolder($PluginFolder)
{
$this->sPluginFolder = $PluginFolder;
}
/**
* Get setup page
* @return string
*/
public function getSetupPage()
{
return $this->sSetupPage;
}
/**
* Set setup page
* @param string $PluginSetupPage
*/
public function setSetupPage($PluginSetupPage)
{
$this->sSetupPage = $PluginSetupPage;
}
/**
* Get company logo
* @return string
*/
public function getCompanyLogo()
{
return $this->sCompanyLogo;
}
/**
* Set company logo
* @param string $PluginCompanyLogo
*/
public function setCompanyLogo($PluginCompanyLogo)
{
$this->sCompanyLogo = $PluginCompanyLogo;
}
/**
* Get workspace allowed
* @return array
*/
public function getWorkspaces()
{
return $this->aWorkspaces;
}
/**
* Set workspace allowed
* @param array $PluginWorkspaces
*/
public function setWorkspaces($PluginWorkspaces)
{
$this->aWorkspaces = $PluginWorkspaces;
}
/**
* Get plugin is enable
* @return bool
*/
public function isEnabled()
{
return $this->enabled;
}
/**
* Set status plugin
* @param bool $PluginEnable
*/
public function setEnabled($PluginEnable)
{
$this->enabled = $PluginEnable;
}
/**
* Get if plugin is private
* @return bool
*/
public function isPrivate()
{
return $this->bPrivate;
}
/**
* Set status private
* @param bool $PluginPrivate
*/
public function setPrivate($PluginPrivate)
{
$this->bPrivate = $PluginPrivate;
}
/**
* Get version of plugin
* @return int
*/
public function getVersion()
{
return $this->iVersion;
}
/**
* Set version of plugin
* @param int $PluginVersion
*/
public function setVersion($PluginVersion)
{
$this->iVersion = $PluginVersion;
2017-07-21 16:56:44 -04:00
}
}