Browse Source

Format code.

Julio Montoya 9 years ago
parent
commit
302b18f8fd

+ 10 - 10
main/coursecopy/classes/Event.class.php

@@ -57,18 +57,18 @@ class CalendarEvent extends Resource
 	 */
 	function __construct($id, $title, $content, $start_date, $end_date, $attachment_path = null, $attachment_filename= null, $attachment_size= null, $attachment_comment= null, $all_day = 0)
 	{
-		parent::__construct($id,RESOURCE_EVENT);
+		parent::__construct($id, RESOURCE_EVENT);
 
-		$this->title 				= $title;
-		$this->content 				= $content;
-		$this->start_date 			= $start_date;
-		$this->end_date 			= $end_date;
-        $this->all_day              = $all_day;
+		$this->title = $title;
+		$this->content = $content;
+		$this->start_date = $start_date;
+		$this->end_date = $end_date;
+		$this->all_day = $all_day;
 
-		$this->attachment_path 		= $attachment_path;
-		$this->attachment_filename	= $attachment_filename;
-		$this->attachment_size		= $attachment_size;
-		$this->attachment_comment	= $attachment_comment;
+		$this->attachment_path = $attachment_path;
+		$this->attachment_filename = $attachment_filename;
+		$this->attachment_size = $attachment_size;
+		$this->attachment_comment = $attachment_comment;
 	}
 
 	/**

+ 0 - 23
main/coursecopy/classes/Forum.class.php

@@ -103,33 +103,10 @@ class Forum extends Resource
     /**
      * Create a new Forum
      */
-    /* function Forum($id, $title, $description, $category_id, $last_post, $topics, $posts, $allow_anonymous, $allow_edit, $approval_direct_post, $allow_attachements,
-      $allow_new_topics, $default_view, $of_group, $group_public_private, $order, $locked, $session_id, $image)
-      { */
     function __construct($obj)
     {
         parent::__construct($obj->forum_id, RESOURCE_FORUM);
         $this->obj = $obj;
-
-        /*
-          $this->title = $title;
-          $this->description = $description;
-          $this->category_id = $category_id;
-          $this->last_post = $last_post;
-          $this->topics = $topics;
-          $this->posts = $posts;
-          $this->allow_anonymous = $allow_anonymous;
-          $this->allow_edit = $allow_edit;
-          $this->approval_direct_post = $approval_direct_post;
-          $this->allow_attachements = $allow_attachements;
-          $this->allow_new_topics = $allow_new_topics;
-          $this->default_view = $default_view;
-          $this->of_group = $of_group;
-          $this->group_public_private = $group_public_private;
-          $this->order = $order;
-          $this->locked = $locked;
-          $this->session_id = $session_id;
-          $this->image = $image; */
     }
 
     /**

+ 1 - 0
main/coursecopy/classes/Survey.class.php

@@ -1,5 +1,6 @@
 <?php
 /* For licensing terms, see /license.txt */
+
 require_once 'Resource.class.php';
 
 /**

+ 1 - 1
main/coursecopy/classes/SurveyInvitation.class.php

@@ -41,7 +41,7 @@ class SurveyInvitation extends Resource
 	 */
 	public function __construct($id,$code,$user,$invitation_code,$invitation_date,$reminder_date)
 	{
-		parent::__construct($id,RESOURCE_SURVEYINVITATION);
+		parent::__construct($id, RESOURCE_SURVEYINVITATION);
 		$this->code = $code;
 		$this->user = $user;
 		$this->invitation_code = $invitation_code;

+ 1 - 1
main/coursecopy/classes/ToolIntro.class.php

@@ -24,7 +24,7 @@ class ToolIntro extends Resource
 	 */
 	public function __construct($id, $intro_text)
 	{
-		parent::__construct($id,RESOURCE_TOOL_INTRO);
+		parent::__construct($id, RESOURCE_TOOL_INTRO);
 		$this->id = $id;
 		$this->intro_text = $intro_text;
 	}

+ 2 - 4
main/coursecopy/create_backup.php

@@ -1,15 +1,13 @@
 <?php
 /* For licensing terms, see /license.txt */
+
 /**
  * Create a backup.
  *
  * @author Bart Mollet <bart.mollet@hogent.be>
  * @package chamilo.backup
  */
-/**
- * Code
- */
-// Including the global initialization file
+
 require_once '../inc/global.inc.php';
 $current_course_tool = TOOL_COURSE_MAINTENANCE;
 

+ 0 - 5
main/coursecopy/recycle_course.php

@@ -6,11 +6,7 @@
  * @author Bart Mollet <bart.mollet@hogent.be>
  * @package chamilo.backup
  */
-/**
- * Code
- */
 
-// Including the global initialization file
 require_once '../inc/global.inc.php';
 $current_course_tool  = TOOL_COURSE_MAINTENANCE;
 api_protect_course_script(true);
@@ -33,7 +29,6 @@ $interbreadcrumb[] = array(
 $nameTools = get_lang('RecycleCourse');
 Display::display_header($nameTools);
 
-// Include additional libraries
 require_once 'classes/CourseBuilder.class.php';
 require_once 'classes/CourseArchiver.class.php';
 require_once 'classes/CourseRecycler.class.php';