Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/backup/cc/cc_lib/cc_metadata_resource.php
Go to the documentation of this file.
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/>.
00016 
00032 class cc_metadata_resouce_educational{
00033 
00034     public $value   = array();
00035 
00036 
00037     public function set_value ($value){
00038         $arr = array($value);
00039         $this->value[] = $arr;
00040     }
00041 
00042 }
00043 
00048 class cc_metadata_resouce implements cc_i_metadata_resource {
00049 
00050     public $arrayeducational  = array();
00051 
00052     public function add_metadata_resource_educational($obj){
00053         if (empty($obj)){
00054             throw new Exception('Medatada Object given is invalid or null!');
00055         }
00056          !is_null($obj->value)? $this->arrayeducational['value']=$obj->value:null;
00057     }
00058 
00059 
00060 }
 All Data Structures Namespaces Files Functions Variables Enumerations