abstract class DatabaseObject implements IStorableObject {
/**
* database table for this object
- * @var string
+ * @var string
*/
protected static $databaseTableName = '';
/**
* indicates if database table index is an identity column
- * @var boolean
+ * @var boolean
*/
protected static $databaseTableIndexIsIdentity = true;
/**
* name of the primary index column
- * @var string
+ * @var string
*/
protected static $databaseTableIndexName = '';
/**
* sort field
- * @var mixed
+ * @var mixed
*/
protected static $sortBy = null;
/**
* sort order
- * @var mixed
+ * @var mixed
*/
protected static $sortOrder = null;
/**
* object data
- * @var array
+ * @var array
*/
protected $data = null;
/**
* Creates a new instance of the DatabaseObject class.
- * Stores object data.
*
- * @param mixed $id
- * @param array $row
- * @param DatabaseObject $object
+ * @param mixed $id
+ * @param array $row
+ * @param wcf\data\DatabaseObject $object
*/
public function __construct($id, array $row = null, DatabaseObject $object = null) {
if ($id !== null) {
}
/**
- * @see wcf\data\IStorableObject::__get()
+ * @see wcf\data\IStorableObject::__get()
*/
public function __get($name) {
if (isset($this->data[$name])) {
}
/**
- * @see wcf\data\IStorableObject::__isset()
+ * @see wcf\data\IStorableObject::__isset()
*/
public function __isset($name) {
return isset($this->data[$name]);
}
/**
- * @see wcf\data\IStorableObject::getDatabaseTableName()
+ * @see wcf\data\IStorableObject::getDatabaseTableName()
*/
public static function getDatabaseTableName() {
return 'wcf'.WCF_N.'_'.static::$databaseTableName;
}
/**
- * @see wcf\data\IStorableObject::getDatabaseTableIndexName()
+ * @see wcf\data\IStorableObject::getDatabaseTableIndexName()
*/
public static function getDatabaseTableIndexName() {
return static::$databaseTableIndexName;
/**
* Sorts a list of database objects.
*
- * @param array<DatabaseObject> $objects
- * @param mixed $sortBy
- * @param string $sortOrder
+ * @param array<wcf\data\DatabaseObject> $objects
+ * @param mixed $sortBy
+ * @param string $sortOrder
* @return boolean
*/
public static function sort(&$objects, $sortBy, $sortOrder = 'ASC', $maintainIndexAssociation = true) {
/**
* Compares to database objects.
*
- * @param DatabaseObject $objectA
- * @param DatabaseObject $objectB
+ * @param wcf\data\DatabaseObject $objectA
+ * @param wcf\data\DatabaseObject $objectB
* @return float
*/
protected static function compareObjects($objectA, $objectB) {
class ProcessibleDatabaseObject extends DatabaseObject {
/**
* name of the interface the processor of this database object should implement
- * @var string
+ * @var string
*/
protected static $processorInterface = '';
/**
* processor this database object
- * @var wcf\data\IDatabaseObjectProcessor
+ * @var wcf\data\IDatabaseObjectProcessor
*/
protected $processor = null;
/**
* Returns the processor this database object.
*
- * @return wcf\data\IDatabaseObjectProcessor
+ * @return wcf\data\IDatabaseObjectProcessor
*/
public function getProcessor() {
if ($this->processor === null) {