Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/AUT-470/FooBar-Extension #192

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .github/workflows/continous-integration.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/release.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
55 changes: 55 additions & 0 deletions controller/TaoFooBar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php

namespace oat\taoFooBar\controller;

/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; under version 2
* of the License (non-upgradable).
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Copyright (c) 2014-2021 (original work) Open Assessment Technologies SA;
*/

/**
* Sample controller
*
* @author Open Assessment Technologies SA
* @package taoFooBar
* @license GPL-2.0
*
*/
class TaoFooBar extends \tao_actions_CommonModule
{

/**
* initialize the services
*/
public function __construct()
{
parent::__construct();
}

/**
* A possible entry point to foobar
*/
public function index()
{
$this->response = $this->getPsrResponse()->withBody(\GuzzleHttp\Psr7\stream_for(__('Hello World')));
}

public function templateExample()
{
$this->setData('author', 'Open Assessment Technologies SA');
$this->setView('templates/foobar.tpl');
}
}
11 changes: 11 additions & 0 deletions controller/structures.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE structures SYSTEM "../doc/structures.dtd">
<structures>
<structure id="taoFooBar_main" name="tao FooBar Label" level="15" group="main">
<description />
<icon id="icon-mobile-preview"/>
<sections>
<section id="taoFooBar_other" name="Foo Bar Tab" url="/taoFooBar/templates/foobar" />
</sections>
</structure>
</structures>
Binary file added doc/QTI/imsqti_infov2p0_files/feedback.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/QTI/imsqti_infov2p0_files/item_session.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/QTI/imsqti_infov2p0_files/lifecycle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/QTI/imsqti_infov2p0_files/speclogo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions doc/QTI/imsqti_infov2p0_files/stylesheet.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added doc/QTI/imsqti_infov2p0_files/types.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions doc/QTI/license
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU
Free Documentation License".

Copyright (c) 2002-2008 (original work) Public Research Centre Henri Tudor & University of Luxembourg (under the project TAO & TAO2);
Loading