Source for file basic_model_createvariant.php

Documentation is available at basic_model_createvariant.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_createvariant.php,v 1.5 2005/02/07 10:00:59 jan Exp $
10 */
11
12 require_once('basic_model.php');
13
14 class basic_model_createvariant extends basic_model {
15
16 function model() {
17 foreach($this->objectid as $curid) {
18 $obj = owRead($curid);
19 $obj->createObject(array());
20 $obj->setVariantOf($curid);
21 $obj->setLanguage($this->data['language']);
22 $this->userhandler->setLastVariantLanguage($this->data['language']);
23 }
24 }
25 }
26
27 ?>

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