scorm-learnpath
[ class tree: scorm-learnpath ] [ index: scorm-learnpath ] [ all elements ]

Class: scormResource

Source Location: /main/newscorm/scormResource.class.php

Class Overview


Class defining the <resource> tag in an imsmanifest.xml file


Variables

Methods



Class Details

[line 11]
Class defining the <resource> tag in an imsmanifest.xml file



[ Top ]


Class Variables

$base =  ''

[line 16]


Type:   mixed


[ Top ]

$dependencies = array()

[line 22]


Type:   mixed


[ Top ]

$files = array()

[line 21]


Type:   mixed


[ Top ]

$href =  ''

[line 17]


Type:   mixed


[ Top ]

$identifier =  ''

[line 12]


Type:   mixed


[ Top ]

$metadata =

[line 18]


Type:   mixed


[ Top ]

$scormtype =  'sco'

[line 15]


Type:   mixed


[ Top ]

$type =  'webcontent'

[line 13]


Type:   mixed


[ Top ]



Class Methods


constructor scormResource [line 30]

scormResource scormResource( [string $type = 'manifest'], mixed &$element)

Class constructor. Depending of the type of construction called ('db' or 'manifest'), will create a scormResource

object from database records or from the DOM element given as parameter




Parameters:

string   $type   Type of construction needed ('db' or 'manifest', default = 'manifest')
mixed   &$element   Depending on the type given, DB id for the lp_item or reference to the DOM element

[ Top ]

method get_path [line 187]

string get_path( )

Path getter



Tags:

return:  Path for this resource


[ Top ]

method get_scorm_type [line 201]

string get_scorm_type( )

Scorm type getter



Tags:

return:  generally 'asset' or 'sco' as these are the only two values defined in SCORM 1.2


[ Top ]


Documentation generated on Wed, 05 Sep 2007 06:15:07 +0200 by phpDocumentor 1.4.0