| 1 | <?php |
||
| 11 | class Announcement extends Coursecopy\Resource |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The title of the announcement |
||
| 15 | */ |
||
| 16 | public $title; |
||
| 17 | /** |
||
| 18 | * The content of the announcement |
||
| 19 | */ |
||
| 20 | public $content; |
||
| 21 | /** |
||
| 22 | * The date on which this announcement was made |
||
| 23 | */ |
||
| 24 | public $date; |
||
| 25 | /** |
||
| 26 | * The display order of this announcement |
||
| 27 | */ |
||
| 28 | public $display_order; |
||
| 29 | /** |
||
| 30 | * Has the e-mail been sent? |
||
| 31 | */ |
||
| 32 | public $email_sent; |
||
| 33 | |||
| 34 | public $attachment_path; |
||
| 35 | |||
| 36 | public $attachment_filename; |
||
| 37 | |||
| 38 | public $attachment_size; |
||
| 39 | |||
| 40 | public $attachment_comment; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Create a new announcement |
||
| 44 | * @param int $id |
||
| 45 | * @param string $title |
||
| 46 | * @param string $content |
||
| 47 | * @param string $date |
||
| 48 | * @param int display_order |
||
| 49 | */ |
||
| 50 | public function __construct( |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Show this announcement |
||
| 78 | */ |
||
| 79 | function show() |
||
| 84 | } |
||
| 85 |