PHP Класс genEmailUpdates, ojs

Наследование: extends CommandLineTool
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$newTag
$oldTag string Name of the old git tag to use

Открытые методы

Метод Описание
__construct ( $argv = [] ) Constructor.
execute ( ) Execute the command
fetchFileVersion ( $repository, $filename, $tag ) : mixed Fetch a particular version of a file from github.
parseEmails ( $contents ) : array Parse into structures the XML contents of an email data file.
usage ( ) Print command usage information.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( $argv = [] )
$argv array command-line arguments If specified, the first argument should be the file to parse

execute() публичный Метод

Execute the command
public execute ( )

fetchFileVersion() публичный Метод

Fetch a particular version of a file from github.
public fetchFileVersion ( $repository, $filename, $tag ) : mixed
$repository string ojs, pkp-lib, etc.
$filename string
$tag string
Результат mixed string file contents on success, false on failure.

parseEmails() публичный Метод

Parse into structures the XML contents of an email data file.
public parseEmails ( $contents ) : array
$contents string
Результат array

usage() публичный Метод

Print command usage information.
public usage ( )

Описание свойств

$newTag публичное свойство

public $newTag

$oldTag публичное свойство

string Name of the old git tag to use
public $oldTag