/**
  * Create a new course description
  * @param int $id
  * @param string $title
  * @param string $content
  */
 function __construct($id, $title, $content, $description_type)
 {
     parent::Resource($id, RESOURCE_COURSEDESCRIPTION);
     $this->title = $title;
     $this->content = $content;
     $this->description_type = $description_type;
 }
 /**
  * Create a new LinkCategory
  * @param int $id
  * @param string $title
  * @param string $description
  */
 function LinkCategory($id, $title, $description, $display_order)
 {
     parent::Resource($id, RESOURCE_LINKCATEGORY);
     $this->title = $title;
     $this->description = $description;
     $this->display_order = $display_order;
 }
예제 #3
0
 /**
  * Create a new Glossary
  * @param int $id
  * @param string $name
  * @param string $description
  * @param int $display_order
  */
 function Glossary($id, $name, $description, $display_order)
 {
     parent::Resource($id, RESOURCE_GLOSSARY);
     $this->glossary_id = $id;
     $this->name = $name;
     $this->description = $description;
     $this->display_order = $display_order;
 }
 /**
  * Create a new SurveyInvitation
  * @param	int	 $id
  * @param string $code
  * @param string $user
  * @param string $invitation_code
  * @param string $invitation_date
  * @param string $reminder_date
  */
 function SurveyInvitation($id, $code, $user, $invitation_code, $invitation_date, $reminder_date)
 {
     parent::Resource($id, RESOURCE_SURVEYINVITATION);
     $this->code = $code;
     $this->user = $user;
     $this->invitation_code = $invitation_code;
     $this->invitation_date = $invitation_date;
     $this->reminder_date = $reminder_date;
 }
예제 #5
0
 /**
  * Create a new Document
  * @param int $id
  * @param string $path
  * @param string $comment
  * @param string $title
  * @param string $file_type (DOCUMENT or FOLDER);
  * @param int $size
  */
 public function Document($id, $path, $comment, $title, $file_type, $size)
 {
     parent::Resource($id, RESOURCE_DOCUMENT);
     $this->path = 'document' . $path;
     $this->comment = $comment;
     $this->title = $title;
     $this->file_type = $file_type;
     $this->size = $size;
 }
예제 #6
0
 /**
  * Create a new Link
  * @param int $id The id of this link in the Chamilo-course
  * @param string $title
  * @param string $url
  * @param string $description
  */
 public function Link($id, $title, $url, $description, $category_id, $on_homepage)
 {
     parent::Resource($id, RESOURCE_LINK);
     $this->title = $title;
     $this->url = $url;
     $this->description = $description;
     $this->category_id = $category_id;
     $this->on_homepage = $on_homepage;
 }
 /**
  * Create a new announcement
  * @param int $id
  * @param string $title
  * @param string $content
  * @param string $date
  * @param int display_order
  */
 function Announcement($id, $title, $content, $date, $display_order, $email_sent, $path, $filename, $size, $comment)
 {
     parent::Resource($id, RESOURCE_ANNOUNCEMENT);
     $this->content = $content;
     $this->title = $title;
     $this->date = $date;
     $this->display_order = $display_order;
     $this->email_sent = $email_sent;
     $this->attachment_path = $path;
     $this->attachment_filename = $filename;
     $this->attachment_size = $size;
     $this->attachment_comment = $comment;
 }
예제 #8
0
 /**
  * Create a new Event
  * @param int $id
  * @param string $title
  * @param string $content
  * @param string $date
  * @param string $hour
  * @param int $duration
  */
 function Event($id, $title, $content, $start_date, $end_date, $attachment_path = null, $attachment_filename = null, $attachment_size = null, $attachment_comment = null, $all_day = 0)
 {
     parent::Resource($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->attachment_path = $attachment_path;
     $this->attachment_filename = $attachment_filename;
     $this->attachment_size = $attachment_size;
     $this->attachment_comment = $attachment_comment;
 }
 /**
  * Create a new SurveyQuestion
  * @param int	 $id
  * @param int 	 $survey_id
  * @param string $survey_question
  * @param string $survey_question_comment
  * @param string $type
  * @param string $display
  * @param int	 $sort
  * @param int	 $shared_question_id
  * @param int	 $max_value
  */
 function SurveyQuestion($id, $survey_id, $survey_question, $survey_question_comment, $type, $display, $sort, $shared_question_id, $max_value)
 {
     parent::Resource($id, RESOURCE_SURVEYQUESTION);
     $this->survey_id = $survey_id;
     $this->survey_question = $survey_question;
     $this->survey_question_comment = $survey_question_comment;
     $this->survey_question_type = $type;
     $this->display = $display;
     $this->sort = $sort;
     $this->shared_question_id = $shared_question_id;
     $this->max_value = $max_value;
     $this->answers = array();
 }
예제 #10
0
 function Wiki($id, $page_id, $reflink, $title, $content, $user_id, $group_id, $timestamp, $progress, $version)
 {
     parent::Resource($id, RESOURCE_WIKI);
     $this->id = $id;
     $this->page_id = $page_id;
     $this->reflink = $reflink;
     $this->title = $title;
     $this->content = $content;
     $this->user_id = $user_id;
     $this->group_id = $group_id;
     $this->dtime = $timestamp;
     $this->progress = $progress;
     $this->version = $version;
 }
예제 #11
0
 /**
  * Create a new QuizQuestion
  * @param string $question
  * @param string $description
  * @param int $ponderation
  * @param int $type
  * @param int $position
  */
 public function QuizQuestion($id, $question, $description, $ponderation, $type, $position, $picture, $level, $extra, $question_category = 0)
 {
     parent::Resource($id, RESOURCE_QUIZQUESTION);
     $this->question = $question;
     $this->description = $description;
     $this->ponderation = $ponderation;
     $this->quiz_type = $type;
     $this->position = $position;
     $this->picture = $picture;
     $this->level = $level;
     $this->answers = array();
     $this->extra = $extra;
     $this->question_category = $question_category;
 }
예제 #12
0
 function ForumTopic($obj)
 {
     parent::Resource($obj->thread_id, RESOURCE_FORUMTOPIC);
     $this->obj = $obj;
     /*
               $this->title = $title;
               $this->time = $time;
               $this->topic_poster_id = $topic_poster_id;
               $this->topic_poster_name = $topic_poster_name;
               $this->forum_id = $forum_id;
               $this->last_post = $last_post;
               $this->replies = $replies;
               $this->views = $views;
               $this->sticky = $sticky;
               $this->locked = $locked;
               $this->time_closed = $time_closed;
               $this->weight = $weight;
               $this->title_qualify = $title_qualify;
               $this->qualify_max = $qualify_max; */
 }
 /**
  * Create a new learnpath
  * @param integer ID
  * @param integer Type (1,2,3,...)
  * @param string $name
  * @param string $path
  * @param string $ref
  * @param string $description
  * @param string $content_local
  * @param string $default_encoding
  * @param string $default_view_mode
  * @param bool   $prevent_reinit
  * @param bool   $force_commit
  * @param string $content_maker
  * @param integer $display_order
  * @param string $js_lib
  * @param string $content_license
  * @param integer $debug
  * @param string $visibility
  * @param array  $items
  */
 public function CourseCopyLearnpath($id, $type, $name, $path, $ref, $description, $content_local, $default_encoding, $default_view_mode, $prevent_reinit, $force_commit, $content_maker, $display_order, $js_lib, $content_license, $debug, $visibility, $author, $preview_image, $use_max_score, $autolunch, $created_on, $modified_on, $publicated_on, $expired_on, $session_id, $items)
 {
     parent::Resource($id, RESOURCE_LEARNPATH);
     $this->lp_type = $type;
     $this->name = $name;
     $this->path = $path;
     $this->ref = $ref;
     $this->description = $description;
     $this->content_local = $content_local;
     $this->default_encoding = $default_encoding;
     $this->default_view_mod = $default_view_mode;
     $this->prevent_reinit = $prevent_reinit;
     $this->force_commit = $force_commit;
     $this->content_maker = $content_maker;
     $this->display_order = $display_order;
     $this->js_lib = $js_lib;
     $this->content_license = $content_license;
     $this->debug = $debug;
     $this->visibility = $visibility;
     $this->use_max_score = $use_max_score;
     $this->autolunch = $autolunch;
     $this->created_on = $created_on;
     $this->modified_on = $modified_on;
     $this->publicated_on = $publicated_on;
     $this->expired_on = $expired_on;
     $this->session_id = $session_id;
     $this->author = $author;
     $this->preview_image = $preview_image;
     $this->items = $items;
 }
예제 #14
0
 /**
  * Create a new text introduction
  * @param int $id The id of this tool introduction in the Chamilo-course
  * @param string $intro_text
  */
 function ToolIntro($id, $intro_text)
 {
     parent::Resource($id, RESOURCE_TOOL_INTRO);
     $this->id = $id;
     $this->intro_text = $intro_text;
 }
 /**
  * Create a new ForumCategory
  */
 function ForumCategory($obj)
 {
     parent::Resource($obj->cat_id, RESOURCE_FORUMCATEGORY);
     $this->obj = $obj;
 }
예제 #16
0
 /**
  * Constructor
  * You can supply a uri
  *
  * @param string $uri 
  * @access	public
  */
 function ResResource($uri)
 {
     parent::Resource($uri);
     $this->isAnon = $uri === null;
 }
예제 #17
0
 public function IDResource($name, Cost $cost, $nextcostmodifier, $prerequisite, $amount, $dbID)
 {
     parent::Resource($name, $cost, $nextcostmodifier, $prerequisite, $amount);
     $this->_databaseID = $dbID;
 }
 function CourseSession($id, $title)
 {
     parent::Resource($id, RESOURCE_SESSION_COURSE);
     $this->title = $title;
 }
예제 #19
0
 /**
  * Create a new Thematic
  * 
  * @param array parameters	
  */
 public function __construct($params)
 {
     parent::Resource($params['id'], RESOURCE_THEMATIC);
     $this->params = $params;
 }
예제 #20
0
 /**
  * Create a new Scorm Document
  * @param int $id
  * @param string $path
  * @param string $title
  */
 public function ScormDocument($id, $path, $title)
 {
     parent::Resource($id, RESOURCE_SCORM);
     $this->path = 'scorm' . $path;
     $this->title = $title;
 }
예제 #21
0
 /**
  * Create a new Thematic
  * 
  * @param array parameters	
  */
 public function __construct($params)
 {
     parent::Resource($params['id'], RESOURCE_ATTENDANCE);
     $this->params = $params;
 }
예제 #22
0
 /**
  * Create a new ForumPost
  */
 public function ForumPost($obj)
 {
     parent::Resource($obj->post_id, RESOURCE_FORUMPOST);
     $this->obj = $obj;
 }
예제 #23
0
 /**
  * Create a new Survey
  * @param string $code
  * @param string $title
  * @param string $subtitle
  * @param string $author
  * @param string $lang
  * @param string $avail_from
  * @param string $avail_till
  * @param char $is_shared
  * @param string $template
  * @param string $intro
  * @param string $surveythanks
  * @param string $creation_date
  * @param int $invited
  * @param int $answered
  * @param string $invite_mail
  * @param string $reminder_mail
  */
 public function Survey($id, $code, $title, $subtitle, $author, $lang, $avail_from, $avail_till, $is_shared, $template, $intro, $surveythanks, $creation_date, $invited, $answered, $invite_mail, $reminder_mail)
 {
     parent::Resource($id, RESOURCE_SURVEY);
     $this->code = $code;
     $this->title = $title;
     $this->subtitle = $subtitle;
     $this->author = $author;
     $this->lang = $lang;
     $this->avail_from = $avail_from;
     $this->avail_till = $avail_till;
     $this->is_shared = $is_shared;
     $this->template = $template;
     $this->intro = $intro;
     $this->surveythanks = $surveythanks;
     $this->creation_date = $creation_date;
     $this->invited = $invited;
     $this->answered = $answered;
     $this->invite_mail = $invite_mail;
     $this->reminder_mail = $reminder_mail;
     $this->question_ids = array();
     $this->invitation_ids = array();
 }
예제 #24
0
 public function Quiz($obj)
 {
     $this->obj = $obj;
     $this->obj->quiz_type = $this->obj->type;
     parent::Resource($obj->iid, RESOURCE_QUIZ);
 }
예제 #25
0
 function Forum($obj)
 {
     parent::Resource($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; */
 }
 /**
  * Create a new TestCategory
  * @param string $title
  * @param string $description
  */
 function CourseCopyTestcategory($id, $title, $description)
 {
     parent::Resource($id, RESOURCE_TEST_CATEGORY);
     $this->title = $title;
     $this->description = $description;
 }
 /**
  * Create a new QuizQuestion
  * @param string $question
  * @param string $description
  * @param int $ponderation
  * @param int $type
  * @param int $position
  */
 public function QuizQuestionOption($obj)
 {
     parent::Resource($obj->iid, RESOURCE_QUIZQUESTION);
     $this->obj = $obj;
 }
예제 #28
0
 public function Technology($name, Cost $cost, $nextcostmodifier, $prerequisite, $amount)
 {
     parent::Resource($name, $cost, $nextcostmodifier, $prerequisite, $amount);
 }