SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | ||
| 3 | namespace plugins\MY_PLUGIN; | |
| 4 | ||
| 5 | - | uses core\model\xmlrpc; |
| 5 | + | uses core\view\widget; |
| 6 | ||
| 7 | - | class model2 extends xmlrpc_model |
| 7 | + | class ServerInfoView extends widget_view |
| 8 | {
| |
| 9 | function __construct() | |
| 10 | {
| |
| 11 | $this->setUserHideable(); | |
| 12 | } | |
| 13 | - | ?> |
| 13 | + | |
| 14 | function display() | |
| 15 | {
| |
| 16 | - | // anderes file, z.B. der controller |
| 16 | + | $this->sendToAll( |
| 17 | 'xml shit z.B. oder objekte' | |
| 18 | ); | |
| 19 | } | |
| 20 | } | |
| 21 | ||
| 22 | ||
| 23 | ?> |