ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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  {
67  return $this->upload_button;
68  }
69 }
withUploadButton(Button $button)
Get a dropzone like this, using the given button to upload the files to the server.$this
Definition: Standard.php:53
getUploadButton()
Get the button to upload the files to the server.Button
Definition: Standard.php:65
trait ComponentHelper
Provides common functionality for component implementations.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
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
This describes commonalities between standard and primary buttons.
Definition: Button.php:15