PHP 8.4 library and CLI tools to read, modify, and generate ProPresenter 7 files: songs (.pro), playlists (.proplaylist), bundles (.probundle), themes, and the global library files (Macros, Labels, Groups, ClearGroups, CCLI, Messages, Timers, Stage, Workspace, Props, TestPatterns, Calendar, KeyMappings, CommunicationDevices). Built on the MIT-licensed ProPresenter7-Proto schema by greyshirtguy (v7.16.2). Includes 18 CLI parsers, comprehensive API docs in doc/, binary-format specs, and a synthetic 369-test PHPUnit suite covering RTF extraction, translation slides, ZIP64 repair, round-trip fidelity, and end-to-end generation.
114 lines
2.9 KiB
PHP
114 lines
2.9 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: timers.proto
|
|
|
|
namespace Rv\Data\Clock;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Clock.Format</code>
|
|
*/
|
|
class Format extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Clock.Format.DateFormatterStyle date_type = 2;</code>
|
|
*/
|
|
protected $date_type = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Clock.Format.DateFormatterStyle time_format = 3;</code>
|
|
*/
|
|
protected $time_format = 0;
|
|
/**
|
|
* Generated from protobuf field <code>bool military_time_enabled = 4;</code>
|
|
*/
|
|
protected $military_time_enabled = false;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $date_type
|
|
* @type int $time_format
|
|
* @type bool $military_time_enabled
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Timers::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Clock.Format.DateFormatterStyle date_type = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getDateType()
|
|
{
|
|
return $this->date_type;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Clock.Format.DateFormatterStyle date_type = 2;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setDateType($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Data\Clock\Format\DateFormatterStyle::class);
|
|
$this->date_type = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Clock.Format.DateFormatterStyle time_format = 3;</code>
|
|
* @return int
|
|
*/
|
|
public function getTimeFormat()
|
|
{
|
|
return $this->time_format;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Clock.Format.DateFormatterStyle time_format = 3;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setTimeFormat($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Data\Clock\Format\DateFormatterStyle::class);
|
|
$this->time_format = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool military_time_enabled = 4;</code>
|
|
* @return bool
|
|
*/
|
|
public function getMilitaryTimeEnabled()
|
|
{
|
|
return $this->military_time_enabled;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool military_time_enabled = 4;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setMilitaryTimeEnabled($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->military_time_enabled = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|