parent
							
								
									4bb03e2c6e
								
							
						
					
					
						commit
						ac88151e60
					
				@ -1,30 +1,33 @@ | 
				
			||||
<?php 
 | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
require_once('Resource.class.php'); | 
				
			||||
 | 
				
			||||
/* | 
				
			||||
 * A course session | 
				
			||||
 *  @author Jhon Hinojosa <jhon.hinojosa@beeznest.com> | 
				
			||||
require_once 'Resource.class.php'; | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 * Class CourseSession | 
				
			||||
 * @author Jhon Hinojosa <jhon.hinojosa@beeznest.com> | 
				
			||||
 * @package chamilo.backup | 
				
			||||
 **/ | 
				
			||||
class CourseSession extends Resource { | 
				
			||||
	var $title; // The title session | 
				
			||||
	 | 
				
			||||
 */ | 
				
			||||
class CourseSession extends Resource | 
				
			||||
{ | 
				
			||||
    // The title session | 
				
			||||
	public $title; | 
				
			||||
 | 
				
			||||
	/* | 
				
			||||
	 * Create a new Session | 
				
			||||
	 * @param int $id | 
				
			||||
	 * @param string $title | 
				
			||||
	 */	 | 
				
			||||
	 */ | 
				
			||||
	function CourseSession($id,$title) { | 
				
			||||
		parent::Resource($id,RESOURCE_SESSION_COURSE); | 
				
			||||
		$this->title = $title; | 
				
			||||
	} | 
				
			||||
	 | 
				
			||||
 | 
				
			||||
	/* | 
				
			||||
	 * Show this Event | 
				
			||||
	 */ | 
				
			||||
	function show() { | 
				
			||||
		parent::show(); | 
				
			||||
		echo $this->title;	 | 
				
			||||
		echo $this->title; | 
				
			||||
	} | 
				
			||||
} | 
				
			||||
 | 
				
			||||
@ -1,40 +1,42 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
require_once 'Resource.class.php'; | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 * Thematic backup script | 
				
			||||
 * @package chamilo.backup | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
class Thematic extends Resource { | 
				
			||||
	/** All params | 
				
			||||
	 * */ | 
				
			||||
	var $params = array(); | 
				
			||||
	 | 
				
			||||
	var $thematic_advance_list = array(); | 
				
			||||
	 | 
				
			||||
	var $thematic_plan_list = array(); | 
				
			||||
	 | 
				
			||||
	/** | 
				
			||||
	 * Create a new Thematic | 
				
			||||
	 *  | 
				
			||||
	 * @param array parameters	 | 
				
			||||
	 */ | 
				
			||||
	public function __construct($params) { | 
				
			||||
		parent::Resource($params['id'], RESOURCE_THEMATIC); | 
				
			||||
		$this->params 		= $params; | 
				
			||||
	} | 
				
			||||
class Thematic extends Resource | 
				
			||||
{ | 
				
			||||
    public $params = array(); | 
				
			||||
    public $thematic_advance_list = array(); | 
				
			||||
	public $thematic_plan_list = array(); | 
				
			||||
 | 
				
			||||
    /** | 
				
			||||
    * Create a new Thematic | 
				
			||||
    * | 
				
			||||
    * @param array parameters | 
				
			||||
    */ | 
				
			||||
    public function __construct($params) | 
				
			||||
    { | 
				
			||||
        parent::Resource($params['id'], RESOURCE_THEMATIC); | 
				
			||||
        $this->params = $params; | 
				
			||||
    } | 
				
			||||
 | 
				
			||||
    public function show() | 
				
			||||
    { | 
				
			||||
        parent::show(); | 
				
			||||
        echo $this->params['title']; | 
				
			||||
    } | 
				
			||||
 | 
				
			||||
    public function add_thematic_advance($data) | 
				
			||||
    { | 
				
			||||
        $this->thematic_advance_list[] = $data; | 
				
			||||
    } | 
				
			||||
 | 
				
			||||
	public function show() { | 
				
			||||
		parent::show(); | 
				
			||||
		echo $this->params['title']; | 
				
			||||
	} | 
				
			||||
	 | 
				
			||||
	public function add_thematic_advance($data) {		 | 
				
			||||
		$this->thematic_advance_list[] = $data; | 
				
			||||
	} | 
				
			||||
	 | 
				
			||||
	public function add_thematic_plan($data) { | 
				
			||||
		$this->thematic_plan_list[] = $data; | 
				
			||||
	} | 
				
			||||
} | 
				
			||||
    public function add_thematic_plan($data) | 
				
			||||
    { | 
				
			||||
        $this->thematic_plan_list[] = $data; | 
				
			||||
    } | 
				
			||||
} | 
				
			||||
 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue