1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- require_once 'Resource.class.php';
- class Announcement extends Resource
- {
-
- public $title;
-
- public $content;
-
- public $date;
-
- public $display_order;
-
- public $email_sent;
- public $attachment_path;
- public $attachment_filename;
- public $attachment_size;
- public $attachment_comment;
-
- function __construct($id, $title, $content, $date, $display_order, $email_sent, $path, $filename, $size, $comment)
- {
- parent::__construct($id,RESOURCE_ANNOUNCEMENT);
- $this->content = $content;
- $this->title = $title;
- $this->date = $date;
- $this->display_order = $display_order;
- $this->email_sent = $email_sent;
- $this->attachment_path = $path;
- $this->attachment_filename = $filename;
- $this->attachment_size = $size;
- $this->attachment_comment = $comment;
- }
-
- function show()
- {
- parent::show();
- echo $this->date.': '.$this->title;
- }
- }
|