NextDom\Market\MarketItem
Class MarketItem
Synopsis
class MarketItem
{
- // members
- private integer $REFRESH_TIME_LIMIT = 86400;
- private $id;
- private $gitName;
- private $gitId;
- private $fullName;
- private $description;
- private $url;
- private $name;
- private $author;
- private $category;
- private DataStorage $dataStorage;
- private $iconPath;
- private $defaultBranch;
- private $branchesList;
- private $licence;
- private $documentationLink;
- private $changelogLink;
- private $sourceName;
- private $updateData;
- private $screenshots;
- // methods
- public void __construct()
- public static MarketItem createFromGit()
- public void initWithGlobalInformations()
- public static MarketItem createFromCache()
- public bool readCache()
- public static MarketItem createFromJson()
- public void initWithJsonInformations()
- public bool isNeedUpdate()
- public bool refresh()
- public void addPluginInformations()
- public void downloadIcon()
- public void writeCache()
- public array getDataInArray()
- private void initUpdateData()
- public bool isInstalled()
- private array|bool getInstalledBranchData()
- public bool downloadBranchesInformations()
- public void updateBranchDataFromInstalled()
- public string getGitName()
- public string getFullName()
- public MarketItem setFullName()
- public string getDescription()
- public string getUrl()
- public string getId()
- public string getAuthor()
- public string getCategory()
- public string getName()
- public string getGitId()
- public array getBranchesList()
- public string getIconPath()
Tasks
Line | Task |
---|---|
135 | A supprimer |
Members
private
- $REFRESH_TIME_LIMIT — int
- $branchesList — array
- $category — string
- $changelogLink — string
- $dataStorage — NextDom\Helpers\DataStorage
- $defaultBranch — string
- $description — string
- $documentationLink — string
- $fullName — string
- $gitId — string
- $gitName — string
- $iconPath — string
- $id — string
- $licence — string
- $name — string
- $screenshots — array
- $sourceName — string
- $updateData — array
- $url — string
Methods
private
- getInstalledBranchData()
- initUpdateData() — Initialize the Jeedom data on the plugin
public
- __construct() — Builder initializing basic information
- addPluginInformations() — Add the information contained in the plugin's info.json file
- createFromCache() — Create an item from the cache
- createFromGit() — Create an element from the data of a GitHub repository
- createFromJson() — Create an element from data in a JSON
- downloadBranchesInformations() — Update branch data
- downloadIcon() — Download the plugin icon
- getAuthor() — Obtenir l'auteur
- getBranchesList() — Get the list of branches of the plugin
- getCategory() — Obtenir la catégorie
- getDataInArray() — Get all the information in an associative array
- getDescription() — Obtenir la description du dépot
- getFullName() — Get the full name
- getGitId() — Obtenir l'utilisateur GitHub
- getGitName() — Get the name of the depot.
- getIconPath()
- getId() — Obtenir l'identifiant
- getName() — Obtenir le nom
- getUrl() — Obtenir le lien
- initWithGlobalInformations() — Lire les informations obtenus par GitHub
- initWithJsonInformations()
- isInstalled() — Test if the plugin is installed
- isNeedUpdate() — Test if an update is needed
- readCache() — Read the cache file
- refresh() — Updates the data of the element
- setFullName() — Define the name of the deposit full
- updateBranchDataFromInstalled()
- writeCache() — Write the cache file in JSON format