Class Course

Description

Controlls course data in database

Located in /classes/class_course.php (line 17)

Base
   |
   --Course
Method Summary
Course __construct ([mixed $course_id = ""])
void __destruct ()
void fetch_by_id (mixed $id)
void fetch_weblinks ()
void free ()
void get_compressed ([mixed $link = false], [mixed $view_url = ""], [mixed $crop_str = ""])
void get_description ()
void get_extent ()
void get_id ()
void get_name ()
void get_oph ()
void get_school ()
void get_school_id ()
void get_subject ()
void get_subject_id ()
void get_way ()
void get_way_id ()
void get_weblinks ()
void get_weblinks_by_type (mixed $linktype)
void get_wide ()
void get_zone ()
void get_zone_id ()
void remove_weblink (mixed $w_id)
void set_all (array $arr)
void set_course_type_id (mixed $type_id)
void set_description (mixed $des)
void set_extent (mixed $extent)
void set_id (mixed $course_id)
void set_name (mixed $name)
void set_oph (mixed $oph)
void set_school_id (mixed $school_id)
void set_subject_id (mixed $subject_id)
void set_way_id (mixed $way_id)
void set_weblink (mixed $wblnk)
Methods
Constructor __construct (line 37)
  • access: public
Course __construct ([mixed $course_id = ""])
Destructor __destruct (line 52)
  • access: public
void __destruct ()
fetch_by_id (line 395)

Update itself from db

  • access: public
void fetch_by_id (mixed $id)
fetch_weblinks (line 404)

Update weblinks from db

  • access: public
void fetch_weblinks ()
free (line 416)

Removes itself from db

  • access: public
void free ()
get_compressed (line 254)

Returns array of compressed view values

  • access: public
void get_compressed ([mixed $link = false], [mixed $view_url = ""], [mixed $crop_str = ""])
get_compressed_header (line 247)

Returns array of compressed view names

  • access: public
void get_compressed_header ()
get_course_type_id (line 198)
  • access: public
void get_course_type_id ()
get_course_type_name (line 196)
  • access: public
void get_course_type_name ()
get_description (line 206)
  • access: public
void get_description ()
get_extent (line 208)
  • access: public
void get_extent ()
get_id (line 184)
  • access: public
void get_id ()
get_name (line 186)
  • access: public
void get_name ()
get_oph (line 204)
  • access: public
void get_oph ()
get_school (line 188)
  • access: public
void get_school ()
get_school_id (line 190)
  • access: public
void get_school_id ()
get_subject (line 192)
  • access: public
void get_subject ()
get_subject_id (line 194)
  • access: public
void get_subject_id ()
get_way (line 202)
  • access: public
void get_way ()
get_way_id (line 200)
  • access: public
void get_way_id ()
get_weblinks (line 226)
  • access: public
void get_weblinks ()
get_weblinks_by_type (line 217)

Returns reference array to weblink objects corresponding with the given type

  • access: public
void get_weblinks_by_type (mixed $linktype)
get_wide (line 238)

Returns of wide view of course as string

  • access: public
void get_wide ()
get_wide_to_string (line 270)
  • access: public
void get_wide_to_string ()
get_zone (line 212)
  • access: public
void get_zone ()
get_zone_id (line 210)
  • access: public
void get_zone_id ()
insert_new_to_db (line 351)

Insert itself to db

  • access: public
void insert_new_to_db ()
insert_weblinks_to_db (line 374)
  • access: public
void insert_weblinks_to_db ()
remove_weblink (line 338)

Removes weblink from database corresponding with the weblink-id

  • access: public
void remove_weblink (mixed $w_id)
set_all (line 72)

Sets all attributes from given array.

  • access: public
void set_all (array $arr)
  • array $arr
set_course_type_id (line 147)

Gets type-name from database corresponding with the type-id

  • access: public
void set_course_type_id (mixed $type_id)
set_description (line 122)
  • access: public
void set_description (mixed $des)
set_extent (line 157)
  • access: public
void set_extent (mixed $extent)
set_id (line 61)

After id is set, object gets all other data from database.

  • access: public
void set_id (mixed $course_id)
set_name (line 92)
  • access: public
void set_name (mixed $name)
set_oph (line 96)
  • access: public
void set_oph (mixed $oph)
set_school_id (line 129)

Gets school-name and zone-id from database corresponding with the school-id

  • access: public
void set_school_id (mixed $school_id)
set_subject_id (line 103)

Gets subject-name from database corresponding with the subject-id

  • access: public
void set_subject_id (mixed $subject_id)
set_way_id (line 114)

Gets way-name from database corresponding with the way-id

  • access: public
void set_way_id (mixed $way_id)
set_weblink (line 167)

Sets new weblink object to weblinks array

  • access: public
void set_weblink (mixed $wblnk)
update_course_to_db (line 363)

Update itself to db

  • access: public
void update_course_to_db ()
weblinks_to_string (line 316)

Returns weblink-objects as string

  • access: public
void weblinks_to_string ()

Inherited Methods

Inherited From Base

Base::make_query()

Documentation generated on Mon, 16 May 2005 16:11:51 +0300 by phpDocumentor 1.3.0RC3