Public Member Functions

ilObjLinkResource Class Reference
[Modules/WebResource]

Class ilObjLinkResource. More...

Inheritance diagram for ilObjLinkResource:
Collaboration diagram for ilObjLinkResource:

Public Member Functions

 ilObjLinkResource ($a_id=0, $a_call_by_reference=true)
 Constructor public.
 create ($a_upload=false)
 create object
 update ()
 update object
 delete ()
 delete object and all related data
 initLinkResourceItemsObject ()
 cloneObject ($a_target_id, $a_copy_id=0)
 Clone.

Detailed Description

Class ilObjLinkResource.

Author:
Stefan Meyer <smeyer@databay.de>
Version:
Id:
class.ilObjLinkResource.php 15496 2007-12-05 14:12:09Z akill

Definition at line 37 of file class.ilObjLinkResource.php.


Member Function Documentation

ilObjLinkResource::cloneObject ( a_target_id,
a_copy_id = 0 
)

Clone.

public

Parameters:
int target id
int copy id

Reimplemented from ilObject.

Definition at line 125 of file class.ilObjLinkResource.php.

References ilObject::cloneMetaData(), and ilObject::getId().

        {
                $new_obj = parent::cloneObject($a_target_id,$a_copy_id);
                $this->cloneMetaData($new_obj);
                
                // object created now copy other settings
                include_once('Modules/WebResource/classes/class.ilLinkResourceItems.php');
                $links = new ilLinkResourceItems($this->getId());
                $links->cloneItems($new_obj->getId());
                
                return $new_obj;
        }

Here is the call graph for this function:

ilObjLinkResource::create ( a_upload = false  ) 

create object

Parameters:
bool upload mode (if enabled no meta data will be created)

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

References ilObject::create(), and ilObject::createMetaData().

        {
                $new_id = parent::create();
                
                if(!$a_upload)
                {
                        $this->createMetaData();
                }
                
                return $new_id;
        }

Here is the call graph for this function:

ilObjLinkResource::delete (  ) 

delete object and all related data

public

Returns:
boolean true if all object data were removed; false if only a references were removed

Reimplemented from ilObject.

Definition at line 85 of file class.ilObjLinkResource.php.

References ilLinkResourceItems::_deleteAll(), ilLinkCheckNotify::_deleteObject(), ilObject::deleteMetaData(), and ilObject::getId().

        {
                // always call parent delete function first!!
                if (!parent::delete())
                {
                        return false;
                }

                // delete items
                include_once './Modules/WebResource/classes/class.ilLinkResourceItems.php';
                ilLinkResourceItems::_deleteAll($this->getId());


                // Delete notify entries
                include_once './classes/class.ilLinkCheckNotify.php';
                ilLinkCheckNotify::_deleteObject($this->getId());

                // delete meta data
                $this->deleteMetaData();

                return true;
        }

Here is the call graph for this function:

ilObjLinkResource::ilObjLinkResource ( a_id = 0,
a_call_by_reference = true 
)

Constructor public.

Parameters:
integer reference_id or object_id
boolean treat the id as reference_id (true) or object_id (false)

Definition at line 45 of file class.ilObjLinkResource.php.

References ilObject::ilObject().

        {
                //$this->type = "lnkr";
                $this->type = "webr";
                $this->ilObject($a_id,$a_call_by_reference);
        }

Here is the call graph for this function:

ilObjLinkResource::initLinkResourceItemsObject (  ) 

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

References ilObject::getId().

        {
                include_once './Modules/WebResource/classes/class.ilLinkResourceItems.php';

                $this->items_obj =& new ilLinkResourceItems($this->getId());

                return true;
        }

Here is the call graph for this function:

ilObjLinkResource::update (  ) 

update object

Reimplemented from ilObject.

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

References ilObject::updateMetaData().

        {
                $this->updateMetaData();
                parent::update();
        }

Here is the call graph for this function:


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