2 /****************************************************************/
4 /****************************************************************/
5 /* Copyright (c) 2002-2009 */
6 /* Inclusive Design Institute */
9 /* This program is free software. You can redistribute it and/or*/
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /****************************************************************/
16 * A class for Weblinks object
18 * http://www.imsglobal.org/profile/cc/ccv1p0/derived_schema/domainProfile_5/imswl_v1p0_localised.xsd
24 var $url = array(); //prefs
29 * For now, uses only title and URL
31 function Weblinks($title, $url){
32 $this->title = $title;
33 $this->url['href'] = $url;
34 $this->setUrlPrefs(); //set defaults values
39 * @param string resembles HTML target attribute, [_self, _blank, _parent, _top, <name>], default '_self'
40 * @param string browser window settings
42 function setUrlPrefs($target='_self', $window_features=''){
43 $this->url['target'] = $target;
44 $this->url['window_features'] = $window_features;
49 * Return the title of this weblink
58 * Return the URL array of this weblink