ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Standard.php
Go to the documentation of this file.
1<?php
2
4
7
16{
17
21 protected $message = "";
25 protected $upload_button;
26
27
31 public function withMessage($message)
32 {
33 $this->checkStringArg("message", $message);
34 $clone = clone $this;
35 $clone->message = $message;
36
37 return $clone;
38 }
39
40
44 public function getMessage()
45 {
46 return $this->message;
47 }
48
49
53 public function withUploadButton(Button $button)
54 {
55 $clone = clone $this;
56 $clone->upload_button = $button;
57
58 return $clone;
59 }
60
61
65 public function getUploadButton()
66 {
68 }
69}
An exception for terminatinating execution or to throw for unit testing.
withUploadButton(Button $button)
Get a dropzone like this, using the given button to upload the files to the server....
Definition: Standard.php:53
getMessage()
Get the message of of this dropzone.string
Definition: Standard.php:44
withMessage($message)
Get a dropzone like this, displaying the given message in it.$this
Definition: Standard.php:31
getUploadButton()
Get the button to upload the files to the server.Button
Definition: Standard.php:65
This describes commonalities between standard and primary buttons.
Definition: Button.php:17
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
trait ComponentHelper
Provides common functionality for component implementations.