Source for file basic_model_extradata.php

Documentation is available at basic_model_extradata.php


1 <?php
2 /**
3 * @author Jan H. Andersen <jha@ipwsystems.dk>
4 * @author Martin R. Larsen <mrl@ipwsystems.dk>
5 * @copyright {@link http://www.ipwsystems.dk/ IPW Systems a.s}
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
7 * @package METAjour
8 * @subpackage model
9 * $Id: basic_model_extradata.php,v 1.2 2004/11/12 12:27:12 SYSTEM Exp $
10 */
11
12 require_once('basic_model.php');
13
14 class basic_model_extradata extends basic_model {
15
16 function model() {
17 foreach($this->objectid as $curid) {
18 $obj = owRead($curid);
19 $edobj = owNew('extradata');
20 $id = $edobj->locatebyname($obj->type);
21 if ($id) {
22 $edobj->readobject($id);
23
24 foreach ($edobj->elements[0]['fieldname'] as $val) {
25 if (isset($this->data[$val])) {
26 $arr[$val] = $this->data[$val];
27 }
28 }
29 $obj->setmetadata($arr);
30 }
31 }
32 }
33 }
34
35 ?>

Documentation generated on Thu, 9 Jun 2005 06:51:09 +0200 by phpDocumentor 1.2.3