Address dynamic class property deprecation warnings

This commit is contained in:
2022-12-25 13:50:33 +01:00
parent 49390c372d
commit 7897172256
17 changed files with 54 additions and 8 deletions

View File

@@ -8,6 +8,8 @@
class AlbumButtonBox extends SubTemplate
{
private $buttons;
public function __construct($buttons)
{
$this->buttons = $buttons;

View File

@@ -8,6 +8,11 @@
class AlbumHeaderBox extends SubTemplate
{
private $back_link_title;
private $back_link;
private $description;
private $title;
public function __construct($title, $description, $back_link, $back_link_title)
{
$this->title = $title;

View File

@@ -8,6 +8,10 @@
class Alert extends SubTemplate
{
private $_type;
private $_message;
private $_title;
public function __construct($title = '', $message = '', $type = 'alert')
{
$this->_title = $title;

View File

@@ -8,6 +8,10 @@
class DummyBox extends SubTemplate
{
private $_class;
private $_content;
private $_title;
public function __construct($title = '', $content = '', $class = '')
{
$this->_title = $title;

View File

@@ -8,6 +8,15 @@
class FormView extends SubTemplate
{
private $content_below;
private $content_above;
private $data;
private $missing;
private $fields;
private $request_method;
private $request_url;
private $title;
public function __construct(Form $form, $title = '')
{
$this->title = $title;

View File

@@ -8,6 +8,8 @@
class MediaUploader extends SubTemplate
{
private Tag $tag;
public function __construct(Tag $tag)
{
$this->tag = $tag;

View File

@@ -10,6 +10,7 @@ class Pagination extends SubTemplate
{
private $index;
private static $unique_index_count = 0;
private string $class;
public function __construct(PageIndex $index)
{

View File

@@ -10,6 +10,7 @@ class PhotosIndex extends SubTemplate
{
protected $mosaic;
protected $show_edit_buttons;
protected $show_headers;
protected $show_labels;
protected $row_limit = 1000;
protected $previous_header = '';

View File

@@ -8,6 +8,9 @@
class TabularData extends SubTemplate
{
private Pagination $pager;
private GenericTable $_t;
public function __construct(GenericTable $table)
{
$this->_t = $table;