Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
object.inc.php File Reference

Namespaces

namespace  studip_core

Functions

 object_set_visit_module ($type)
 object_set_visit ($object_id, $type, $user_id= '')
 object_get_visit ($object_id, $type, $mode="last", $open_object_id= '', $user_id= '', $refresh_cache=false)
 object_kill_visits ($user_id, $object_ids=false)
 object_add_view ($object_id)
 object_kill_views ($object_id)
 object_switch_fav ($object_id)
 object_check_user ($object_id, $flag)
 object_add_rate ($object_id, $rate)
 object_print_rate ($object_id)
 object_print_rates_detail ($object_id)
 object_return_views ($object_id)
 object_return_ratecount ($object_id)

Function Documentation

object_add_rate (   $object_id,
  $rate 
)

Here is the call graph for this function:

object_add_view (   $object_id)

Here is the caller graph for this function:

object_check_user (   $object_id,
  $flag 
)

Here is the caller graph for this function:

object_get_visit (   $object_id,
  $type,
  $mode = "last",
  $open_object_id = '',
  $user_id = '',
  $refresh_cache = false 
)

This function gets the (last) visit time for an object or module. If no information is found, the last visit of the open-object can bes used

Parameters
stringthe id of the object (i.e. seminar_id, news_id, vote_id)
stringthe type of visited object or module (i.e. news, documents, wiki - see /lib/classes/Modules.class.php for definitions OR sem/inst, if the visit for the whole seminar was saved)
stringthe return-mode: 'last' for the last visit, other for actual-visit
stringthe user who visited the object - if not given, the actual user is used
stringthe id of an open-object (seminar or inst), to gather information for last visit from the visit of the whole open-object
Returns
int the timestamp of the last visit or FALSE

Here is the caller graph for this function:

object_kill_views (   $object_id)

Here is the caller graph for this function:

object_kill_visits (   $user_id,
  $object_ids = false 
)

Here is the caller graph for this function:

object_print_rate (   $object_id)
object_print_rates_detail (   $object_id)
object_return_ratecount (   $object_id)

Here is the caller graph for this function:

object_return_views (   $object_id)

Here is the caller graph for this function:

object_set_visit (   $object_id,
  $type,
  $user_id = '' 
)

This function saves the actual time as last visitdate for the given object, user and type

Parameters
stringthe id of the object (i.e. seminar_id, news_id, vote_id)
stringthe type of visited object or module (i.e. news, documents, wiki - see /lib/classes/Modules.class.php for definitions)
stringthe user who visited the object - if not given, the actual user is used

Here is the call graph for this function:

Here is the caller graph for this function:

object_set_visit_module (   $type)

Here is the call graph for this function:

object_switch_fav (   $object_id)

Here is the call graph for this function: