2010-09-15 16:55:54 +02:00
|
|
|
<?php
|
2010-09-20 11:40:27 +02:00
|
|
|
class notes extends Module {
|
2010-10-05 17:30:04 +02:00
|
|
|
protected $moduleTitle = 'Post-It';
|
|
|
|
|
2010-10-06 10:24:08 +02:00
|
|
|
protected $paramsList = array(
|
2010-09-20 11:40:27 +02:00
|
|
|
'visibility'
|
|
|
|
);
|
|
|
|
|
2010-09-15 16:55:54 +02:00
|
|
|
public function __construct($params){
|
2010-10-05 17:30:04 +02:00
|
|
|
parent::__construct(__CLASS__, $params);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function build(){
|
2010-09-27 12:48:53 +02:00
|
|
|
echo '<script type="text/javascript" src="'.$this->pathToModule.'js/'.$this->moduleName.'.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="'.$this->pathToModule.'css/'.$this->moduleName.'.css">
|
|
|
|
<a id="addButton" class="green-button" href="'.$this->pathToModule.'includes/add_note.html">Add a note</a>';
|
2010-10-05 17:30:04 +02:00
|
|
|
include $this->pathToModule.'includes/notes_extract.php';
|
2010-09-20 11:40:27 +02:00
|
|
|
}
|
2010-09-15 16:55:54 +02:00
|
|
|
}
|