ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSoapStructureObject Class Reference
+ Inheritance diagram for ilSoapStructureObject:
+ Collaboration diagram for ilSoapStructureObject:

Public Member Functions

 ilSoapStructureObject ($objId, $type, $title, $description, $parentRefId=null)
 addStructureObject ($structureObject)
 add structure object to its parent
 getStructureObjects ()
 returns sub structure elements
 setObjId ($value)
 set current ObjId
 getObjId ()
 return current object id
 setTitle ($value)
 set current title
 getTitle ()
 return current title
 setDescription ($value)
 set current description
 getDescription ()
 return current description
 setType ($value)
 set current type
 getType ()
 return current type
 getGotoLink ()
 return current goto_link
 getInternalLink ()
 return current internal_link
 _getXMLAttributes ()
 get xml tag attributes
 _getTagName ()
 setParentRefId ($parentRefId)
 set ref id for parent object (used for permanent link if set)
 getParentRefId ()
 read access to parents ref id
 exportXML ($xml_writer)
 export to xml writer

Data Fields

 $obj_id
 $title
 $type
 $description
 $parentRefId
 $structureObjects = array ()

Detailed Description

Definition at line 34 of file class.ilSoapStructureObject.php.

Member Function Documentation

ilSoapStructureObject::_getTagName ( )

Reimplemented in ilSoapRepositoryStructureObject.

Definition at line 174 of file class.ilSoapStructureObject.php.

Referenced by exportXML().

{
return "StructureObject";
}

+ Here is the caller graph for this function:

ilSoapStructureObject::_getXMLAttributes ( )

get xml tag attributes

Reimplemented in ilSoapRepositoryStructureObject.

Definition at line 167 of file class.ilSoapStructureObject.php.

References getObjId(), and getType().

Referenced by exportXML().

{
return array( 'type' => $this->getType(),
'obj_id' => $this->getObjId()
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSoapStructureObject::addStructureObject (   $structureObject)

add structure object to its parent

Definition at line 57 of file class.ilSoapStructureObject.php.

{
$this->structureObjects [$structureObject->getObjId()] = $structureObject;
}
ilSoapStructureObject::exportXML (   $xml_writer)

export to xml writer

Definition at line 200 of file class.ilSoapStructureObject.php.

References $structureObjects, _getTagName(), _getXMLAttributes(), getDescription(), getGotoLink(), getInternalLink(), getStructureObjects(), and getTitle().

{
$attrs = $this->_getXMLAttributes();
// open tag
$xml_writer->xmlStartTag($this->_getTagName(), $attrs);
$xml_writer->xmlElement('Title',null,$this->getTitle());
$xml_writer->xmlElement('Description',null,$this->getDescription());
$xml_writer->xmlElement('InternalLink',null,$this->getInternalLink());
$xml_writer->xmlElement('GotoLink',null,$this->getGotoLink());
$xml_writer->xmlStartTag("StructureObjects");
// handle sub elements
foreach ($structureObjects as $structureObject)
{
$structureObject->exportXML ($xml_writer);
}
$xml_writer->xmlEndTag("StructureObjects");
$xml_writer->xmlEndTag($this->_getTagName());
}

+ Here is the call graph for this function:

ilSoapStructureObject::getDescription ( )

return current description

Definition at line 120 of file class.ilSoapStructureObject.php.

References $description.

Referenced by exportXML().

{
}

+ Here is the caller graph for this function:

ilSoapStructureObject::getGotoLink ( )

return current goto_link

Reimplemented in ilSoapRepositoryStructureObject, ilSoapGLOTermDefinitionStructureObject, and ilSoapLMChapterStructureObject.

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

References getObjId(), and getParentRefId().

Referenced by exportXML().

{
return ILIAS_HTTP_PATH."/". "goto.php?target=".$this->getType()."_".$this->getObjId().(is_numeric ($this->getParentRefId())?"_".$this->getParentRefId():"")."&client_id=".CLIENT_ID;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSoapStructureObject::getInternalLink ( )

return current internal_link

Reimplemented in ilSoapRepositoryStructureObject, ilSoapGLOTermDefinitionStructureObject, ilSoapGLOTermStructureObject, ilSoapLMChapterStructureObject, and ilSoapLMPageStructureObject.

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

Referenced by exportXML().

{
die ("abstract");
}

+ Here is the caller graph for this function:

ilSoapStructureObject::getObjId ( )

return current object id

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

References $obj_id.

Referenced by ilSoapRepositoryStructureObject\_getXMLAttributes(), _getXMLAttributes(), and getGotoLink().

{
return $this->obj_id;
}

+ Here is the caller graph for this function:

ilSoapStructureObject::getParentRefId ( )

read access to parents ref id

Definition at line 191 of file class.ilSoapStructureObject.php.

References $parentRefId.

Referenced by getGotoLink().

{
}

+ Here is the caller graph for this function:

ilSoapStructureObject::getStructureObjects ( )

returns sub structure elements

Definition at line 66 of file class.ilSoapStructureObject.php.

References $structureObjects.

Referenced by exportXML().

+ Here is the caller graph for this function:

ilSoapStructureObject::getTitle ( )
ilSoapStructureObject::getType ( )

return current type

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

References $type.

Referenced by ilSoapRepositoryStructureObject\_getXMLAttributes(), and _getXMLAttributes().

{
return $this->type;
}

+ Here is the caller graph for this function:

ilSoapStructureObject::ilSoapStructureObject (   $objId,
  $type,
  $title,
  $description,
  $parentRefId = null 
)
ilSoapStructureObject::setDescription (   $value)

set current description

Definition at line 111 of file class.ilSoapStructureObject.php.

Referenced by ilSoapStructureObject().

{
$this->description = $value;
}

+ Here is the caller graph for this function:

ilSoapStructureObject::setObjId (   $value)

set current ObjId

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

Referenced by ilSoapStructureObject().

{
$this->obj_id= $value;
}

+ Here is the caller graph for this function:

ilSoapStructureObject::setParentRefId (   $parentRefId)

set ref id for parent object (used for permanent link if set)

Definition at line 182 of file class.ilSoapStructureObject.php.

References $parentRefId.

{
$this->parentRefId = $parentRefId;
}
ilSoapStructureObject::setTitle (   $value)

set current title

Definition at line 94 of file class.ilSoapStructureObject.php.

Referenced by ilSoapStructureObject().

{
$this->title= $value;
}

+ Here is the caller graph for this function:

ilSoapStructureObject::setType (   $value)

set current type

Definition at line 129 of file class.ilSoapStructureObject.php.

Referenced by ilSoapStructureObject().

{
$this->type = $value;
}

+ Here is the caller graph for this function:

Field Documentation

ilSoapStructureObject::$obj_id

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

Referenced by getObjId().

ilSoapStructureObject::$structureObjects = array ()

Definition at line 42 of file class.ilSoapStructureObject.php.

Referenced by exportXML(), and getStructureObjects().


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