Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
Add settings file
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
sjelfull committed Feb 21, 2019
1 parent 491beea commit f4ade82
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.0.3 - 2019-02-21
### Fixed
- Fixed missing settings model

## 1.0.2 - 2019-02-14
### Added
- Added support for multiple custom labels and templates
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "superbig/craft-batchpdfexport",
"description": "Mass export PDF invoices in one go",
"type": "craft-plugin",
"version": "1.0.2",
"version": "1.0.3",
"keywords": [
"craft",
"cms",
Expand Down
60 changes: 60 additions & 0 deletions src/models/Settings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php
/**
* Batch PDF Export plugin for Craft CMS 3.x
*
* Mass export PDF invoices in one go.
*
* @link https://superbig.co
* @copyright Copyright (c) 2018 Superbig
*/

namespace superbig\batchpdfexport\models;

use superbig\batchpdfexport\BatchPdfExport;

use Craft;
use craft\base\Model;

/**
* @author Superbig
* @package BatchPdfExport
* @since 1.0.0
*/
class Settings extends Model
{
// Public Properties
// =========================================================================

/**
* @var bool
*/
public $useCustomActions = false;

/**
* @var string
*/
public $defaultLabel = 'Generate Invoices PDF';

/**
* @var array
*/
public $actions = [];

// Public Methods
// =========================================================================

public function init()
{
parent::init();
}

/**
* @inheritdoc
*/
public function rules()
{
return [
['actions', 'default', 'value' => []],
];
}
}

0 comments on commit f4ade82

Please sign in to comment.