Added copy of work/assignments to coursecopy - refs #6599
	
		
	
				
					
				
			
							parent
							
								
									f19b0a18d0
								
							
						
					
					
						commit
						c6d3ca1890
					
				@ -0,0 +1,36 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
/** | 
				
			||||
 * Work/Assignment/Student publication backup script | 
				
			||||
 * @package chamilo.backup | 
				
			||||
 */ | 
				
			||||
/** | 
				
			||||
 * Code | 
				
			||||
 */ | 
				
			||||
require_once 'Resource.class.php'; | 
				
			||||
/** | 
				
			||||
 * An event | 
				
			||||
 * @author Yannick Warnier <yannick.warnier@beeznest.com> | 
				
			||||
 * @package chamilo.backup | 
				
			||||
 */ | 
				
			||||
class Work extends Resource | 
				
			||||
{ | 
				
			||||
    public $params = array(); | 
				
			||||
 | 
				
			||||
    /** | 
				
			||||
     * Create a new Work | 
				
			||||
     * | 
				
			||||
     * @param array parameters | 
				
			||||
     */ | 
				
			||||
    public function __construct($params) | 
				
			||||
    { | 
				
			||||
        parent::Resource($params['id'], RESOURCE_WORK); | 
				
			||||
        $this->params = $params; | 
				
			||||
    } | 
				
			||||
 | 
				
			||||
    public function show() | 
				
			||||
    { | 
				
			||||
        parent::show(); | 
				
			||||
        echo $this->params['title']; | 
				
			||||
    } | 
				
			||||
} | 
				
			||||
					Loading…
					
					
				
		Reference in new issue