fixed a few spelling problems and standardised stdClass

This commit is contained in:
Petr Skoda 2010-09-18 14:18:39 +00:00
parent 1c5765dd7a
commit 5924db724d
28 changed files with 151 additions and 151 deletions

View file

@ -86,7 +86,7 @@ function workshopform_comments_upgrade_legacy() {
/**
* Transforms a given record from workshop_elements_old into an object to be saved into workshopform_comments
*
* @param stdclass $old legacy record from workshop_elements_old
* @param stdClass $old legacy record from workshop_elements_old
* @param int $newworkshopid id of the new workshop instance that replaced the previous one
* @return stdclass to be saved in workshopform_comments
*/
@ -102,9 +102,9 @@ function workshopform_comments_upgrade_element(stdclass $old, $newworkshopid) {
/**
* Transforms given grade record
*
* @param stdclass $old
* @param stdClass $old
* @param int $newassessmentid
* @param stdclass $newdimensioninfo
* @param stdClass $newdimensioninfo
* @return stdclass
*/
function workshopform_comments_upgrade_grade(stdclass $old, $newassessmentid, stdclass $newdimensioninfo) {

View file

@ -115,7 +115,7 @@ class workshop_comments_strategy implements workshop_strategy {
$norepeats += self::ADDDIMS;
}
// prepare the embeded files
// prepare the embedded files
for ($i = 0; $i < $nodimensions; $i++) {
// prepare all editor elements
$fields = file_prepare_standard_editor($fields, 'description__idx_'.$i, $this->descriptionopts,
@ -142,7 +142,7 @@ class workshop_comments_strategy implements workshop_strategy {
* The passed data object are the raw data returned by the get_data().
*
* @uses $DB
* @param stdclass $data Raw data returned by the dimension editor form
* @param stdClass $data Raw data returned by the dimension editor form
* @return void
*/
public function save_edit_strategy_form(stdclass $data) {
@ -171,7 +171,7 @@ class workshop_comments_strategy implements workshop_strategy {
// exiting field
$DB->update_record('workshopform_comments', $record);
}
// re-save with correct path to embeded media files
// re-save with correct path to embedded media files
$record = file_postupdate_standard_editor($record, 'description', $this->descriptionopts,
$PAGE->context, 'workshopform_comments', 'description', $record->id);
$DB->update_record('workshopform_comments', $record);
@ -184,7 +184,7 @@ class workshop_comments_strategy implements workshop_strategy {
*
* @param moodle_url $actionurl URL of form handler, defaults to auto detect the current url
* @param string $mode Mode to open the form in: preview/assessment
* @param stdclass $assessment The current assessment
* @param stdClass $assessment The current assessment
* @param bool $editable
* @param array $options
*/
@ -197,7 +197,7 @@ class workshop_comments_strategy implements workshop_strategy {
$fields = $this->prepare_form_fields($this->dimensions);
$nodimensions = count($this->dimensions);
// rewrite URLs to the embeded files
// rewrite URLs to the embedded files
for ($i = 0; $i < $nodimensions; $i++) {
$fields->{'description__idx_'.$i} = file_rewrite_pluginfile_urls($fields->{'description__idx_'.$i},
'pluginfile.php', $PAGE->context->id, 'workshopform_comments', 'description', $fields->{'dimensionid__idx_'.$i});
@ -236,8 +236,8 @@ class workshop_comments_strategy implements workshop_strategy {
*
* This method processes data submitted using the form returned by {@link get_assessment_form()}
*
* @param stdclass $assessment Assessment being filled
* @param stdclass $data Raw data as returned by the assessment form
* @param stdClass $assessment Assessment being filled
* @param stdClass $data Raw data as returned by the assessment form
* @return float|null Constant raw grade 100.00000 for submission as suggested by the peer
*/
public function save_assessment(stdclass $assessment, stdclass $data) {
@ -415,7 +415,7 @@ class workshop_comments_strategy implements workshop_strategy {
* Called internally from {@link save_edit_strategy_form()} only. Could be private but
* keeping protected for unit testing purposes.
*
* @param stdclass $raw Raw data returned by mform
* @param stdClass $raw Raw data returned by mform
* @return array Array of objects to be inserted/updated in DB
*/
protected function prepare_database_fields(stdclass $raw) {
@ -437,7 +437,7 @@ class workshop_comments_strategy implements workshop_strategy {
/**
* Returns the list of current grades filled by the reviewer indexed by dimensionid
*
* @param stdclass $assessment Assessment record
* @param stdClass $assessment Assessment record
* @return array [int dimensionid] => stdclass workshop_grades record
*/
protected function get_current_assessment_data(stdclass $assessment) {