Exemplo n.º 1
0
 /**
  * Create a new LinkCategory
  * @param int $id
  * @param string $title
  * @param string $description
  */
 function __construct($id, $title, $description, $display_order)
 {
     parent::__construct($id, RESOURCE_LINKCATEGORY);
     $this->title = $title;
     $this->description = $description;
     $this->display_order = $display_order;
 }
Exemplo n.º 2
0
 /**
  * Create a new Glossary
  * @param int $id
  * @param string $name
  * @param string $description
  * @param int $display_order
  */
 public function __construct($id, $name, $description, $display_order)
 {
     parent::__construct($id, RESOURCE_GLOSSARY);
     $this->glossary_id = $id;
     $this->name = $name;
     $this->description = $description;
     $this->display_order = $display_order;
 }
Exemplo n.º 3
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 __construct($id, $path, $comment, $title, $file_type, $size)
 {
     parent::__construct($id, RESOURCE_DOCUMENT);
     $this->path = 'document' . $path;
     $this->comment = $comment;
     $this->title = $title;
     $this->file_type = $file_type;
     $this->size = $size;
 }
 /**
  * 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
  */
 public function __construct($id, $code, $user, $invitation_code, $invitation_date, $reminder_date)
 {
     parent::__construct($id, RESOURCE_SURVEYINVITATION);
     $this->code = $code;
     $this->user = $user;
     $this->invitation_code = $invitation_code;
     $this->invitation_date = $invitation_date;
     $this->reminder_date = $reminder_date;
 }
Exemplo n.º 5
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 __construct($id, $title, $url, $description, $category_id, $on_homepage)
 {
     parent::__construct($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 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 __construct($id, $survey_id, $survey_question, $survey_question_comment, $type, $display, $sort, $shared_question_id, $max_value)
 {
     parent::__construct($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();
 }
Exemplo n.º 7
0
 /**
  * Create a new Event
  * @param int $id
  * @param string $title
  * @param string $content
  * @param string $date
  * @param string $hour
  * @param int $duration
  */
 public 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);
     $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;
 }
Exemplo n.º 8
0
 /**
  * Create a new announcement
  * @param int $id
  * @param string $title
  * @param string $content
  * @param string $date
  * @param int display_order
  */
 function __construct($id, $title, $content, $date, $display_order, $email_sent, $path, $filename, $size, $comment)
 {
     parent::__construct($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;
 }
Exemplo n.º 9
0
 public function __construct($id, $page_id, $reflink, $title, $content, $user_id, $group_id, $timestamp, $progress, $version)
 {
     parent::__construct($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;
 }
Exemplo n.º 10
0
 /**
  * Create a new QuizQuestion
  * @param string $question
  * @param string $description
  * @param int $ponderation
  * @param int $type
  * @param int $position
  */
 public function __construct($id, $question, $description, $ponderation, $type, $position, $picture, $level, $extra, $question_category = 0)
 {
     parent::__construct($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;
 }
Exemplo n.º 11
0
 function __construct($obj)
 {
     parent::__construct($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; */
 }
Exemplo n.º 12
0
 /**
  * Create a new Work
  *
  * @param array parameters
  */
 public function __construct($params)
 {
     parent::__construct($params['id'], RESOURCE_WORK);
     $this->params = $params;
 }
Exemplo n.º 13
0
 /**
  * Create a new ForumCategory
  */
 public function __construct($obj)
 {
     parent::__construct($obj->cat_id, RESOURCE_FORUMCATEGORY);
     $this->obj = $obj;
 }
Exemplo n.º 14
0
 /**
  * Create a new Session
  * @param int $id
  * @param string $title
  */
 public function __construct($id, $title)
 {
     parent::__construct($id, RESOURCE_SESSION_COURSE);
     $this->title = $title;
 }
 /**
  * QuizQuestionOption constructor.
  * @param mixed $obj
  */
 public function __construct($obj)
 {
     parent::__construct($obj->id, RESOURCE_QUIZQUESTION);
     $this->obj = $obj;
 }
Exemplo n.º 16
0
 /**
  * Create a new text introduction
  * @param int $id The id of this tool introduction in the Chamilo-course
  * @param string $intro_text
  */
 public function __construct($id, $intro_text)
 {
     parent::__construct($id, RESOURCE_TOOL_INTRO);
     $this->id = $id;
     $this->intro_text = $intro_text;
 }
Exemplo n.º 17
0
 /**
  * GradeBookBackup constructor.
  * @param array $categories
  */
 public function __construct($categories)
 {
     parent::__construct(uniqid(), RESOURCE_GRADEBOOK);
     $this->categories = $categories;
 }
Exemplo n.º 18
0
 /**
  * Create a new ForumPost
  */
 public function __construct($obj)
 {
     parent::__construct($obj->post_id, RESOURCE_FORUMPOST);
     $this->obj = $obj;
 }
Exemplo n.º 19
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 __construct($id, $code, $title, $subtitle, $author, $lang, $avail_from, $avail_till, $is_shared, $template, $intro, $surveythanks, $creation_date, $invited, $answered, $invite_mail, $reminder_mail)
 {
     parent::__construct($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();
 }
Exemplo n.º 20
0
 /**
  * Create a new Scorm Document
  * @param int $id
  * @param string $path
  * @param string $title
  */
 public function __construct($id, $path, $title)
 {
     parent::__construct($id, RESOURCE_SCORM);
     $this->path = 'scorm' . $path;
     $this->title = $title;
 }
Exemplo n.º 21
0
 public function __construct($obj)
 {
     $this->obj = $obj;
     $this->obj->quiz_type = $this->obj->type;
     parent::__construct($obj->id, RESOURCE_QUIZ);
 }
Exemplo n.º 22
0
 /**
  * Create a new TestCategory
  * @param string $title
  * @param string $description
  */
 public function __construct($id, $title, $description)
 {
     parent::__construct($id, RESOURCE_TEST_CATEGORY);
     $this->title = $title;
     $this->description = $description;
 }
 /**
  * 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 __construct($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, $autolaunch, $created_on, $modified_on, $publicated_on, $expired_on, $session_id, $items)
 {
     parent::__construct($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->autolaunch = $autolaunch;
     $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;
 }
Exemplo n.º 24
0
 /**
  * Create a new Forum
  */
 function __construct($obj)
 {
     parent::__construct($obj->forum_id, RESOURCE_FORUM);
     $this->obj = $obj;
 }