InfosAbstract
in package
Tags
Table of Contents
- $author : array<string|int, Author>
- $copyright : mixed
- $createDate : string
- $description : array<string|int, string>
- $homepageURL : mixed
- $id : string
- $label : array<string|int, string>
- $license : mixed
- $licenseURL : mixed
- $name : string
- $notes : mixed
- $updateURL : mixed
- $version : string
- $versionDate : string
- $versionStability : mixed
- $_exists : mixed
- $isXml : mixed
- $path : string
- __construct() : mixed
- InfosAbstract constructor.
- exists() : bool
- getDescription() : mixed
- getFilePath() : string
- getItemPath() : mixed
- getLabel() : mixed
- isXmlFile() : bool
- save() : mixed
- save the informations into the original file.
- getLocale() : mixed
Properties
$author
public
array<string|int, Author>
$author
= array()
Tags
$copyright
public
mixed
$copyright
= ''
Tags
$createDate
public
string
$createDate
= ''
the birthdate of the module/app. optional
Tags
$description
public
array<string|int, string>
$description
= array()
key is the locale code
Tags
$homepageURL
public
mixed
$homepageURL
= ''
Tags
$id
public
string
$id
= ''
unique id (e.g. 'name@company')
Tags
$label
public
array<string|int, string>
$label
= array()
key is the locale code
Tags
$license
public
mixed
$license
= ''
Tags
$licenseURL
public
mixed
$licenseURL
= ''
Tags
$name
public
string
$name
= ''
the name of the module, used as identifier in jelix selectors or other part of the code
Tags
$notes
public
mixed
$notes
= ''
Tags
$updateURL
public
mixed
$updateURL
= ''
Tags
$version
public
string
$version
= ''
version of the module/app. required for modules
Tags
$versionDate
public
string
$versionDate
= ''
the release date of the module/app. required for modules
Tags
$versionStability
public
mixed
$versionStability
= ''
Tags
$_exists
protected
mixed
$_exists
= false
Tags
$isXml
protected
mixed
$isXml
= false
Tags
$path
protected
string
$path
= ''
the path to the module/app information file
Tags
Methods
__construct()
InfosAbstract constructor.
public
__construct(string $filePath, bool $isXml) : mixed
Parameters
- $filePath : string
-
the path of the xml file to read
- $isXml : bool
Tags
Return values
mixed —exists()
public
exists() : bool
Tags
Return values
bool —getDescription()
public
getDescription([mixed $locale = '' ]) : mixed
Parameters
- $locale : mixed = ''
Tags
Return values
mixed —getFilePath()
public
getFilePath() : string
Tags
Return values
string —the path of the file to read/write
getItemPath()
public
getItemPath() : mixed
Tags
Return values
mixed —getLabel()
public
getLabel([mixed $locale = '' ]) : mixed
Parameters
- $locale : mixed = ''
Tags
Return values
mixed —isXmlFile()
public
isXmlFile() : bool
Tags
Return values
bool —save()
save the informations into the original file.
public
abstract save() : mixed
Tags
Return values
mixed —getLocale()
protected
getLocale(mixed $locale) : mixed
Parameters
- $locale : mixed