ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMDCreator Class Reference
+ Collaboration diagram for ilMDCreator:

Public Member Functions

 ilMDCreator ($a_rbac_id, $a_obj_id, $a_type)
 setTitle ($a_title)
 getTitle ()
 setDescription ($a_desc)
 getDescription ()
 setTitleLanguage ($a_lng)
getTitleLanguage ()
 setDescriptionLanguage ($a_lng)
getDescriptionLanguage ()
 setLanguage ($a_lng)
getLanguage ()
 setKeyword ($a_key)
 getKeyword ()
 getRBACId ()
 getObjId ()
 getObjType ()
 setKeywordLanguage ($a_lng)
getKeywordLanguage ()
 setCatalog ($a_cat)
 getCatalog ()
 setEntry ($a_entry)
 getEntry ()
 setStructure ($a_structure)
 getStructure ()
 create ()
 __createGeneral ()
 ilMDCreator ($a_rbac_id, $a_obj_id, $a_type)
 setTitle ($a_title)
 getTitle ()
 setDescription ($a_desc)
 getDescription ()
 setTitleLanguage ($a_lng)
getTitleLanguage ()
 setDescriptionLanguage ($a_lng)
getDescriptionLanguage ()
 setLanguage ($a_lng)
getLanguage ()
 setKeyword ($a_key)
 getKeyword ()
 getRBACId ()
 getObjId ()
 getObjType ()
 setKeywordLanguage ($a_lng)
getKeywordLanguage ()
 setCatalog ($a_cat)
 getCatalog ()
 setEntry ($a_entry)
 getEntry ()
 setStructure ($a_structure)
 getStructure ()
 create ()
 __createGeneral ()

Data Fields

 $md_obj = null
 $rbac_id
 $obj_id
 $obj_type

Detailed Description

Definition at line 36 of file class.ilMDCreator.php.

Member Function Documentation

ilMDCreator::__createGeneral ( )

Definition at line 178 of file class.ilMDCreator.php.

References getCatalog(), getDescription(), getDescriptionLanguage(), getEntry(), getKeyword(), getKeywordLanguage(), getLanguage(), getStructure(), getTitle(), and getTitleLanguage().

{
$md_gen =& $this->md_obj->addGeneral();
$md_gen->setStructure($this->getStructure());
$md_gen->setTitle($this->getTitle());
$md_gen->setTitleLanguage($this->getTitleLanguage());
$md_gen->save();
$md_ide =& $md_gen->addIdentifier();
$md_ide->setCatalog($this->getCatalog());
$md_ide->setEntry($this->getEntry());
$md_ide->save();
$md_lng =& $md_gen->addLanguage();
$md_lng->setLanguage($this->getLanguage());
$md_lng->save();
$md_des =& $md_gen->addDescription();
$md_des->setDescription($this->getDescription());
$md_des->setDescriptionLanguage($this->getDescriptionLanguage());
$md_des->save();
$md_key =& $md_gen->addKeyword();
$md_key->setKeyword($this->getKeyword());
$md_key->setKeywordLanguage($this->getKeywordLanguage());
$md_key->save();
unset($md_gen);
unset($md_ide);
unset($md_lng);
unset($md_des);
unset($md_key);
return true;
}

+ Here is the call graph for this function:

ilMDCreator::__createGeneral ( )

Definition at line 183 of file class.ilMDCreator.php.

References getCatalog(), getDescription(), getDescriptionLanguage(), getEntry(), getKeyword(), getKeywordLanguage(), getLanguage(), getStructure(), getTitle(), and getTitleLanguage().

Referenced by create().

{
$md_gen =& $this->md_obj->addGeneral();
$md_gen->setStructure($this->getStructure());
$md_gen->setTitle($this->getTitle());
$md_gen->setTitleLanguage($this->getTitleLanguage());
$md_gen->save();
$md_ide =& $md_gen->addIdentifier();
$md_ide->setCatalog($this->getCatalog());
$md_ide->setEntry($this->getEntry());
$md_ide->save();
$md_lng =& $md_gen->addLanguage();
$md_lng->setLanguage($this->getLanguage());
$md_lng->save();
$md_des =& $md_gen->addDescription();
$md_des->setDescription($this->getDescription());
$md_des->setDescriptionLanguage($this->getDescriptionLanguage());
$md_des->save();
$md_key =& $md_gen->addKeyword();
$md_key->setKeyword($this->getKeyword());
$md_key->setKeywordLanguage($this->getKeywordLanguage());
$md_key->save();
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilMDCreator::create ( )

Definition at line 172 of file class.ilMDCreator.php.

References __createGeneral().

{
$this->__createGeneral();
}

+ Here is the call graph for this function:

ilMDCreator::create ( )

Definition at line 177 of file class.ilMDCreator.php.

References __createGeneral().

{
$this->__createGeneral();
}

+ Here is the call graph for this function:

ilMDCreator::getCatalog ( )

Definition at line 149 of file class.ilMDCreator.php.

{
return $this->catalog ? $this->catalog : 'ILIAS';
}
ilMDCreator::getCatalog ( )

Definition at line 154 of file class.ilMDCreator.php.

Referenced by __createGeneral().

{
return $this->catalog ? $this->catalog : 'ILIAS';
}

+ Here is the caller graph for this function:

ilMDCreator::getDescription ( )

Definition at line 79 of file class.ilMDCreator.php.

{
return $this->description;
}
ilMDCreator::getDescription ( )

Definition at line 84 of file class.ilMDCreator.php.

Referenced by __createGeneral().

{
return $this->description;
}

+ Here is the caller graph for this function:

& ilMDCreator::getDescriptionLanguage ( )

Definition at line 97 of file class.ilMDCreator.php.

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
return new ilMDLanguageItem($this->title_lng);
}
& ilMDCreator::getDescriptionLanguage ( )

Definition at line 102 of file class.ilMDCreator.php.

Referenced by __createGeneral().

{
include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
return new ilMDLanguageItem($this->title_lng);
}

+ Here is the caller graph for this function:

ilMDCreator::getEntry ( )

Definition at line 157 of file class.ilMDCreator.php.

References getObjId().

{
return $this->entry ? $this->entry : 'il__'.$this->getObjType().'_'.$this->getObjId();
}

+ Here is the call graph for this function:

ilMDCreator::getEntry ( )

Definition at line 162 of file class.ilMDCreator.php.

References getObjId().

Referenced by __createGeneral().

{
return $this->entry ? $this->entry : 'il__'.$this->getObjType().'_'.$this->getObjId();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilMDCreator::getKeyword ( )

Definition at line 117 of file class.ilMDCreator.php.

{
return $this->keyword;
}
ilMDCreator::getKeyword ( )

Definition at line 122 of file class.ilMDCreator.php.

Referenced by __createGeneral().

{
return $this->keyword;
}

+ Here is the caller graph for this function:

& ilMDCreator::getKeywordLanguage ( )

Definition at line 139 of file class.ilMDCreator.php.

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
return new ilMDLanguageItem($this->title_lng);
}
& ilMDCreator::getKeywordLanguage ( )

Definition at line 144 of file class.ilMDCreator.php.

Referenced by __createGeneral().

{
include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
return new ilMDLanguageItem($this->title_lng);
}

+ Here is the caller graph for this function:

& ilMDCreator::getLanguage ( )

Definition at line 107 of file class.ilMDCreator.php.

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
return new ilMDLanguageItem($this->title_lng);
}
& ilMDCreator::getLanguage ( )

Definition at line 112 of file class.ilMDCreator.php.

Referenced by __createGeneral().

{
include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
return new ilMDLanguageItem($this->title_lng);
}

+ Here is the caller graph for this function:

ilMDCreator::getObjId ( )

Definition at line 127 of file class.ilMDCreator.php.

References $obj_id.

{
return $this->obj_id;
}
ilMDCreator::getObjId ( )

Definition at line 132 of file class.ilMDCreator.php.

References $obj_id.

Referenced by getEntry().

{
return $this->obj_id;
}

+ Here is the caller graph for this function:

ilMDCreator::getObjType ( )

Definition at line 131 of file class.ilMDCreator.php.

References $obj_type.

{
}
ilMDCreator::getObjType ( )

Definition at line 136 of file class.ilMDCreator.php.

References $obj_type.

{
}
ilMDCreator::getRBACId ( )

Definition at line 123 of file class.ilMDCreator.php.

References $rbac_id.

{
}
ilMDCreator::getRBACId ( )

Definition at line 128 of file class.ilMDCreator.php.

References $rbac_id.

{
}
ilMDCreator::getStructure ( )

Definition at line 165 of file class.ilMDCreator.php.

{
return $this->structure ? $this->structure : 'Hierarchical';
}
ilMDCreator::getStructure ( )

Definition at line 170 of file class.ilMDCreator.php.

Referenced by __createGeneral().

{
return $this->structure ? $this->structure : 'Hierarchical';
}

+ Here is the caller graph for this function:

ilMDCreator::getTitle ( )

Definition at line 71 of file class.ilMDCreator.php.

References $title.

{
return $this->title;
}
ilMDCreator::getTitle ( )

Definition at line 76 of file class.ilMDCreator.php.

References $title.

Referenced by __createGeneral().

{
return $this->title;
}

+ Here is the caller graph for this function:

& ilMDCreator::getTitleLanguage ( )

Definition at line 87 of file class.ilMDCreator.php.

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
return new ilMDLanguageItem($this->title_lng);
}
& ilMDCreator::getTitleLanguage ( )

Definition at line 92 of file class.ilMDCreator.php.

Referenced by __createGeneral().

{
include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
return new ilMDLanguageItem($this->title_lng);
}

+ Here is the caller graph for this function:

ilMDCreator::ilMDCreator (   $a_rbac_id,
  $a_obj_id,
  $a_type 
)

Definition at line 55 of file class.ilMDCreator.php.

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMD.php';
$this->rbac_id = $a_rbac_id;
$this->obj_id = $a_obj_id;
$this->obj_type = $a_type;
$this->md_obj =& new ilMD($a_rbac_id,$a_obj_id,$a_type);
}
ilMDCreator::ilMDCreator (   $a_rbac_id,
  $a_obj_id,
  $a_type 
)

Definition at line 55 of file class.ilMDCreator.php.

{
include_once 'Services/MetaData/classes/class.ilMD.php';
if ($a_obj_id == 0)
{
$a_obj_id = $a_rbac_id;
}
$this->rbac_id = $a_rbac_id;
$this->obj_id = $a_obj_id;
$this->obj_type = $a_type;
$this->md_obj =& new ilMD($a_rbac_id,$a_obj_id,$a_type);
}
ilMDCreator::setCatalog (   $a_cat)

Definition at line 145 of file class.ilMDCreator.php.

{
$this->catalog = $a_cat;
}
ilMDCreator::setCatalog (   $a_cat)

Definition at line 150 of file class.ilMDCreator.php.

{
$this->catalog = $a_cat;
}
ilMDCreator::setDescription (   $a_desc)

Definition at line 75 of file class.ilMDCreator.php.

{
$this->description = $a_desc;
}
ilMDCreator::setDescription (   $a_desc)

Definition at line 80 of file class.ilMDCreator.php.

{
$this->description = $a_desc;
}
ilMDCreator::setDescriptionLanguage (   $a_lng)

Definition at line 93 of file class.ilMDCreator.php.

{
$this->title_lng = $a_lng;
}
ilMDCreator::setDescriptionLanguage (   $a_lng)

Definition at line 98 of file class.ilMDCreator.php.

{
$this->title_lng = $a_lng;
}
ilMDCreator::setEntry (   $a_entry)

Definition at line 153 of file class.ilMDCreator.php.

{
$this->entry = $a_entry;
}
ilMDCreator::setEntry (   $a_entry)

Definition at line 158 of file class.ilMDCreator.php.

{
$this->entry = $a_entry;
}
ilMDCreator::setKeyword (   $a_key)

Definition at line 113 of file class.ilMDCreator.php.

{
$this->keyword = $a_key;
}
ilMDCreator::setKeyword (   $a_key)

Definition at line 118 of file class.ilMDCreator.php.

{
$this->keyword = $a_key;
}
ilMDCreator::setKeywordLanguage (   $a_lng)

Definition at line 135 of file class.ilMDCreator.php.

{
$this->title_lng = $a_lng;
}
ilMDCreator::setKeywordLanguage (   $a_lng)

Definition at line 140 of file class.ilMDCreator.php.

{
$this->title_lng = $a_lng;
}
ilMDCreator::setLanguage (   $a_lng)

Definition at line 103 of file class.ilMDCreator.php.

{
$this->title_lng = $a_lng;
}
ilMDCreator::setLanguage (   $a_lng)

Definition at line 108 of file class.ilMDCreator.php.

{
$this->title_lng = $a_lng;
}
ilMDCreator::setStructure (   $a_structure)

Definition at line 161 of file class.ilMDCreator.php.

{
$this->structure = $a_structure;
}
ilMDCreator::setStructure (   $a_structure)

Definition at line 166 of file class.ilMDCreator.php.

{
$this->structure = $a_structure;
}
ilMDCreator::setTitle (   $a_title)

Definition at line 67 of file class.ilMDCreator.php.

{
$this->title = $a_title;
}
ilMDCreator::setTitle (   $a_title)

Definition at line 72 of file class.ilMDCreator.php.

{
$this->title = $a_title;
}
ilMDCreator::setTitleLanguage (   $a_lng)

Definition at line 83 of file class.ilMDCreator.php.

{
$this->title_lng = $a_lng;
}
ilMDCreator::setTitleLanguage (   $a_lng)

Definition at line 88 of file class.ilMDCreator.php.

{
$this->title_lng = $a_lng;
}

Field Documentation

ilMDCreator::$md_obj = null

Definition at line 38 of file class.ilMDCreator.php.

ilMDCreator::$obj_id

Definition at line 48 of file class.ilMDCreator.php.

Referenced by getObjId().

ilMDCreator::$obj_type

Definition at line 53 of file class.ilMDCreator.php.

Referenced by getObjType().

ilMDCreator::$rbac_id

Definition at line 43 of file class.ilMDCreator.php.

Referenced by getRBACId().


The documentation for this class was generated from the following files: