claroline/claroline/chat/messageList.php File Reference

Go to the source code of this file.

Namespaces

namespace  CLCHT

Functions

if($activeLineCount > get_conf('max_line_in_file')) buffer ($content, $tmpFile)

Variables

 $tlabelReq = 'CLCHT'
if(!claro_is_in_a_course()||(!claro_is_course_allowed()&&!claro_is_user_authenticated())) $coursePath = get_path('coursesRepositorySys') . claro_get_course_path()
 $courseId = claro_get_current_course_id()
 $groupId = claro_get_current_group_id()
 $_user = claro_get_current_user_data()
 $_course = claro_get_current_course_data()
 $_group = claro_get_current_group_data()
 $is_allowedToManage = claro_is_course_manager()
 $is_allowedToStore = claro_is_course_manager()
 $is_allowedToReset = claro_is_course_manager()
 $curChatRep = $coursePath.'/chat/'
if(!is_dir($curChatRep)) mkdir($curChatRep CLARO_FILE_PERMISSIONS
 $timeNow = claro_html_localised_date('[%d/%m/%y %H:%M]')
if(!file_exists($activeChatFile))
if(isset($_REQUEST['cmd'])&&$_REQUEST['cmd']==
'reset'&&$is_allowedToReset)
if(isset($_REQUEST['cmd'])&&$_REQUEST['cmd']==
'store'&&$is_allowedToStore)
if(isset($_REQUEST['chatLine'])&&trim($_REQUEST['chatLine'])!="")
if(!isset($dateLastWrite)) 
$activeLineList = file($activeChatFile)
 $activeLineCount = count($activeLineList)
 $excessLineCount = $activeLineCount - get_conf('max_line_to_display')
 $excessLineList = array_splice($activeLineList, 0 , $excessLineCount)
 $curDisplayLineList = $activeLineList
 if (isset($cmdMsg))

Function Documentation

if ($activeLineCount > get_conf('max_line_in_file')) buffer ( content,
tmpFile 
)

Store $content in a buffer add an html header if it's new buffer

Parameters:
string $content content to bufferise
string $tmpFile filename to store the content

Definition at line 304 of file messageList.php.


Variable Documentation

$_course = claro_get_current_course_data()

Definition at line 57 of file messageList.php.

$_group = claro_get_current_group_data()

Definition at line 58 of file messageList.php.

$_user = claro_get_current_user_data()

Definition at line 55 of file messageList.php.

$activeLineCount = count($activeLineList)

Definition at line 227 of file messageList.php.

if (!file_exists($activeChatFile)) if (isset($_REQUEST['cmd'])&&$_REQUEST['cmd']== 'reset'&&$is_allowedToReset) if (isset($_REQUEST['cmd'])&&$_REQUEST['cmd']== 'store'&&$is_allowedToStore) if (isset($_REQUEST['chatLine'])&&trim($_REQUEST['chatLine'])!="") if (!isset($dateLastWrite)) $activeLineList = file($activeChatFile)

Definition at line 226 of file messageList.php.

$courseId = claro_get_current_course_id()

Definition at line 53 of file messageList.php.

if (!claro_is_in_a_course()||(!claro_is_course_allowed()&&!claro_is_user_authenticated())) $coursePath = get_path('coursesRepositorySys') . claro_get_course_path()

Definition at line 52 of file messageList.php.

$curChatRep = $coursePath.'/chat/'

Definition at line 87 of file messageList.php.

$curDisplayLineList = $activeLineList

Definition at line 232 of file messageList.php.

$excessLineCount = $activeLineCount - get_conf('max_line_to_display')

Definition at line 229 of file messageList.php.

$excessLineList = array_splice($activeLineList, 0 , $excessLineCount)

Definition at line 231 of file messageList.php.

$groupId = claro_get_current_group_id()

Definition at line 54 of file messageList.php.

$is_allowedToManage = claro_is_course_manager()

Definition at line 60 of file messageList.php.

$is_allowedToReset = claro_is_course_manager()

Definition at line 62 of file messageList.php.

$is_allowedToStore = claro_is_course_manager()

Definition at line 61 of file messageList.php.

$timeNow = claro_html_localised_date('[%d/%m/%y %H:%M]')

Definition at line 129 of file messageList.php.

$tlabelReq = 'CLCHT'

Definition at line 28 of file messageList.php.

if (!is_dir($curChatRep)) mkdir($curChatRep CLARO_FILE_PERMISSIONS

Definition at line 92 of file messageList.php.

if(isset($cmdMsg))

Definition at line 261 of file messageList.php.

Generated on Tue Jun 8 12:28:36 2010 for Claroline API by  doxygen 1.6.3