Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/src/CourseBundle/Controller/CourseControllerInterface.php

45 lines
988 B

<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CourseBundle\Controller;
use Chamilo\CoreBundle\Entity\Course;
use Chamilo\CoreBundle\Entity\Session;
/**
* CourseControllerInterface.
* This interface provides getters and setters to a controller.
* This functions are loaded when the CourseListener.php fires when a c_id/cidReq/ or courses/XXX/ parameter and
* the controller implements this interface. See the ResourceController class as an example.
* is loaded in the URL.
*
*
* @package Chamilo\CourseBundle\Controller
*/
interface CourseControllerInterface
{
/**
* @param Course $course
*
* @return mixed
*/
public function setCourse(Course $course);
/**
* @param Session $session
*
* @return mixed
*/
public function setSession(Session $session);
/**
* @return Course
*/
public function getCourse();
/**
* @return Session
*/
public function getSession();
}