|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 // This file is part of Moodle - http://moodle.org/ 00003 // 00004 // Moodle is free software: you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation, either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // Moodle is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 00026 interface cc_i_manifest { 00027 00028 public function on_create (); 00029 public function on_load (); 00030 public function on_save (); 00031 public function add_new_organization (cc_i_organization &$org); 00032 public function get_resources (); 00033 public function get_resource_list (); 00034 public function add_resource (cc_i_resource $res, $identifier=null, $type='webcontent'); 00035 public function add_metadata_manifest(cc_i_metadata_manifest $met); 00036 public function add_metadata_resource (cc_i_metadata_resource $met,$identifier); 00037 public function add_metadata_file (cc_i_metadata_file $met,$identifier,$filename); 00038 public function put_nodes (); 00039 00040 } 00041 00042 00043 00047 interface cc_i_organization { 00048 00049 public function add_item (cc_i_item &$item); 00050 public function has_items (); 00051 public function attr_value (&$nod, $name, $ns=null); 00052 public function process_organization (&$node,&$doc); 00053 00054 } 00055 00056 00057 00061 interface cc_i_item { 00062 00063 public function add_child_item (cc_i_item &$item); 00064 public function attach_resource ($res); // can be object or value 00065 public function has_child_items (); 00066 public function attr_value (&$nod, $name, $ns=null); 00067 public function process_item (&$node,&$doc); 00068 00069 } 00070 00071 00075 interface cc_i_resource { 00076 00077 public function get_attr_value (&$nod, $name, $ns=null); 00078 public function add_resource ($fname, $location=''); 00079 public function import_resource (DOMElement &$node, cc_i_manifest &$doc); 00080 public function process_resource ($manifestroot, &$fname,$folder); 00081 00082 } 00083 00084 00085 00089 interface cc_i_metadata_manifest { 00090 00091 public function add_metadata_general($obj); 00092 public function add_metadata_technical($obj); 00093 public function add_metadata_rights($obj); 00094 public function add_metadata_lifecycle($obj); 00095 00096 } 00097 00098 00102 interface cc_i_metadata_resource { 00103 00104 public function add_metadata_resource_educational($obj); 00105 00106 } 00107 00111 interface cc_i_metadata_file { 00112 00113 public function add_metadata_file_educational($obj); 00114 00115 } 00116