dokeos-dropbox
[ class tree: dokeos-dropbox ] [ index: dokeos-dropbox ] [ all elements ]

Class: Dropbox_Person

Source Location: /main/dropbox/dropbox_class.inc.php

Class Overview




Variables

Methods



Class Details

[line 404]


[ Top ]


Class Variables

$isCourseAdmin =  FALSE

[line 409]


Type:   mixed


[ Top ]

$isCourseTutor =  FALSE

[line 410]


Type:   mixed


[ Top ]

$receivedWork =

[line 406]


Type:   mixed


[ Top ]

$sentWork =

[line 407]


Type:   mixed


[ Top ]

$userId =  0

[line 408]


Type:   mixed


[ Top ]

$_orderBy =  ''

[line 411]


Type:   mixed


[ Top ]



Class Methods


constructor Dropbox_Person [line 422]

Dropbox_Person Dropbox_Person( unknown_type $userId, unknown_type $isCourseAdmin, unknown_type $isCourseTutor)

Constructor for recreating the Dropbox_Person object



Parameters:

unknown_type   $userId  
unknown_type   $isCourseAdmin  
unknown_type   $isCourseTutor  

[ Top ]

method deleteAllReceivedWork [line 575]

void deleteAllReceivedWork( )

Deletes all the received work of this person



[ Top ]

method deleteAllSentWork [line 617]

void deleteAllSentWork( )

Deletes all the sent dropbox files of this person



[ Top ]

method deleteReceivedWork [line 591]

void deleteReceivedWork( integer $id)

Deletes a received dropbox file of this person with id=$id



Parameters:

integer   $id  

[ Top ]

method deleteSentWork [line 634]

void deleteSentWork( unknown_type $id)

Deletes a sent dropbox file of this person with id=$id



Parameters:

unknown_type   $id  

[ Top ]

method filter_received_work [line 702]

void filter_received_work( string $type, string $value)

Filter the received work



Parameters:

string   $type  
string   $value  

[ Top ]

method orderReceivedWork [line 542]

void orderReceivedWork( unknown_type $sort)

method that sorts the objects in the receivedWork array, dependent on the $sort parameter.

$sort can be lastDate, firstDate, title, size, ...




Parameters:

unknown_type   $sort  

[ Top ]

method orderSentWork [line 505]

void orderSentWork( unknown_type $sort)

method that sorts the objects in the sentWork array, dependent on the $sort parameter.

$sort can be lastDate, firstDate, title, size, ...




Parameters:

unknown_type   $sort  

[ Top ]

method updateFeedback [line 662]

void updateFeedback( unknown_type $id, unknown_type $text)

Updates feedback for received work of this person with id=$id



Parameters:

unknown_type   $id  
unknown_type   $text  

[ Top ]

method _cmpWork [line 479]

-1, _cmpWork( unknown_type $a, unknown_type $b)

This private method is used by the usort function in the orderSentWork and orderReceivedWork methods.

It compares 2 work-objects by 1 of the properties of that object, dictated by the private property _orderBy




Tags:

return:  0 or 1 dependent of the result of the comparison.


Parameters:

unknown_type   $a  
unknown_type   $b  

[ Top ]


Documentation generated on Thu, 12 Jun 2008 13:20:57 -0500 by phpDocumentor 1.4.1