* @package chamilo.backup */ class Work extends Resource { public $params = array(); /** * Create a new Work * * @param array parameters */ public function __construct($params) { parent::__construct($params['id'], RESOURCE_WORK); $this->params = $params; } public function show() { parent::show(); echo $this->params['title']; } }