MDL-30995 Completion Fixedup some more PHP DOC issues

This commit is contained in:
Ankit Agarwal
2012-03-12 16:13:35 +08:00
parent 836375ec8a
commit 95dd54eea3
14 changed files with 122 additions and 244 deletions
+6 -15
View File
@@ -37,16 +37,10 @@ defined('MOODLE_INTERNAL') || die();
*/
abstract class data_object {
/**
* Table that the class maps to in the database
* @var string
*/
/* @var string Table that the class maps to in the database */
public $table;
/**
* Array of required table fields, must start with 'id'.
* @var array
*/
/* @var array Array of required table fields, must start with 'id'. */
public $required_fields = array('id');
/**
@@ -56,10 +50,7 @@ abstract class data_object {
*/
public $optional_fields = array();
/**
* The primary key
* @var int $id
*/
/* @var int The primary key */
public $id;
/**
@@ -210,7 +201,7 @@ abstract class data_object {
/**
* Updates this object in the Database, based on its object variables. ID must be set.
*
* @return boolean success
* @return bool success
*/
public function update() {
global $DB;
@@ -231,7 +222,7 @@ abstract class data_object {
/**
* Deletes this object from the database.
*
* @return boolean success
* @return bool success
*/
public function delete() {
global $DB;
@@ -346,5 +337,5 @@ abstract class data_object {
*
* @param bool $deleted Set this to true if it has been deleted.
*/
function notify_changed($deleted) {}
public function notify_changed($deleted) {}
}