ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilUserResult Class Reference
+ Collaboration diagram for ilUserResult:

Public Member Functions

 ilUserResult ($a_user_id, $a_obj_id=0)
 Constructor public.
 getUserId ()
 getType ()
 setObjId ($a_obj_id)
 getObjId ()
 setTitle ($a_title)
 getTitle ()
 setTarget ($a_target)
 getTarget ()
 createLink ()
 updateTitle ($a_title)
 __init ()

Data Fields

 $ilias
 $title
 $obj_id
 $user_id
 $target

Detailed Description

Definition at line 33 of file class.ilUserResult.php.

Member Function Documentation

ilUserResult::__init ( )

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

References $res, DB_FETCHMODE_OBJECT, getObjId(), setTarget(), and setTitle().

Referenced by ilUserResult().

{
if($this->getObjId())
{
$query = "SELECT * FROM ".TABLE_SEARCH_DATA." ".
"WHERE obj_id = '".$this->getObjId()."' ".
"AND user_id = '".$this->getUserId()."'";
$res = $this->ilias->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->setTitle($row->title);
$this->setTarget(unserialize(stripslashes($row->target)));
}
return true;
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilUserResult::createLink ( )

Definition at line 96 of file class.ilUserResult.php.

References $target, ilSearchObjectListFactory\_getInstance(), ilObject\_lookupObjId(), and getTarget().

{
$target = $this->getTarget();
include_once 'Services/Search/classes/class.ilSearchObjectListFactory.php';
$item_list_gui->initItem($target['id'],ilObject::_lookupObjId($target['id']));
return array($item_list_gui->getCommandLink('view'),
$item_list_gui->getCommandFrame('view'));
}

+ Here is the call graph for this function:

ilUserResult::getObjId ( )

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

References $obj_id.

Referenced by __init().

{
return $this->obj_id;
}

+ Here is the caller graph for this function:

ilUserResult::getTarget ( )

Definition at line 91 of file class.ilUserResult.php.

References $target.

Referenced by createLink().

{
return $this->target;
}

+ Here is the caller graph for this function:

ilUserResult::getTitle ( )

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

References $title.

{
return $this->title;
}
ilUserResult::getType ( )

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

{
return "sea";
}
ilUserResult::getUserId ( )

Definition at line 62 of file class.ilUserResult.php.

References $user_id.

{
}
ilUserResult::ilUserResult (   $a_user_id,
  $a_obj_id = 0 
)

Constructor public.

Definition at line 47 of file class.ilUserResult.php.

References $ilias, and __init().

{
global $ilias;
define("TABLE_SEARCH_DATA","search_data");
$this->ilias =& $ilias;
$this->obj_id = $a_obj_id;
$this->user_id = $a_user_id;
$this->__init();
}

+ Here is the call graph for this function:

ilUserResult::setObjId (   $a_obj_id)

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

{
$this->obj_id = $a_obj_id;
}
ilUserResult::setTarget (   $a_target)

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

Referenced by __init().

{
$this->target = $a_target;
}

+ Here is the caller graph for this function:

ilUserResult::setTitle (   $a_title)

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

Referenced by __init(), ilSearchGUI\saveResult(), and ilAdvancedSearchGUI\saveResult().

{
$this->title = $a_title;
}

+ Here is the caller graph for this function:

ilUserResult::updateTitle (   $a_title)

Definition at line 109 of file class.ilUserResult.php.

References $res.

{
$query = "UPDATE ".TABLE_SEARCH_DATA." ".
"SET title = '".addslashes($a_title)."' ".
"WHERE obj_id = '".$this->getObjId()."' ".
"AND user_id = '".$this->getUserId()."'";
$res = $this->ilias->db->query($query);
return true;
}

Field Documentation

ilUserResult::$ilias

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

Referenced by ilUserResult().

ilUserResult::$obj_id

Definition at line 39 of file class.ilUserResult.php.

Referenced by getObjId().

ilUserResult::$target

Definition at line 41 of file class.ilUserResult.php.

Referenced by createLink(), and getTarget().

ilUserResult::$title

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

Referenced by getTitle().

ilUserResult::$user_id

Definition at line 40 of file class.ilUserResult.php.

Referenced by getUserId().


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