![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct ($table, $uid, array $row=null) | |
getTable () | |
setTable ($table) | |
getUid () | |
setUid ($uid) | |
getRow () | |
setRow (array $row) | |
getIdentifier () | |
Static Public Member Functions | |
static | create ($table, $uid) |
static | createFromArray ($table, array $row) |
Protected Member Functions | |
loadRow () | |
Protected Attributes | |
$table | |
$uid | |
$row | |
Database record class
Definition at line 20 of file DatabaseRecord.php.
__construct | ( | $table, | |
$uid, | |||
array | $row = null |
||
) |
string | $table | Name of the database table |
int | $uid | Id of the datbase record row |
array | NULL | $row | The relevant database record row |
Definition at line 66 of file DatabaseRecord.php.
References DatabaseRecord\$row, DatabaseRecord\$table, DatabaseRecord\$uid, DatabaseRecord\setRow(), DatabaseRecord\setTable(), and DatabaseRecord\setUid().
|
static |
Creates database record object just by id of database record.
string | $table | Name of the database table |
int | $uid | Id of the datbase record row |
Definition at line 44 of file DatabaseRecord.php.
References DatabaseRecord\$table, and DatabaseRecord\$uid.
Referenced by RecordService\add(), and CombinedRecord\create().
|
static |
Creates datbase record object by relevant database record row.
string | $table | Name of the database table |
array | $row | The relevant database record row |
Definition at line 56 of file DatabaseRecord.php.
References DatabaseRecord\$table.
Referenced by CombinedRecord\createFromArrays().
getIdentifier | ( | ) |
Gets the record identifier (table:id).
Definition at line 144 of file DatabaseRecord.php.
References DatabaseRecord\getTable(), and DatabaseRecord\getUid().
getRow | ( | ) |
Gets the database record row.
Definition at line 122 of file DatabaseRecord.php.
References DatabaseRecord\$row, and DatabaseRecord\loadRow().
getTable | ( | ) |
Gets the name of the database table.
Definition at line 80 of file DatabaseRecord.php.
References DatabaseRecord\$table.
Referenced by DatabaseRecord\getIdentifier(), and DatabaseRecord\loadRow().
getUid | ( | ) |
Gets the id of the database record row.
Definition at line 101 of file DatabaseRecord.php.
References DatabaseRecord\$uid.
Referenced by DatabaseRecord\getIdentifier(), and DatabaseRecord\loadRow().
|
protected |
Loads the database record row (if not available yet).
Definition at line 154 of file DatabaseRecord.php.
References DatabaseRecord\getTable(), and DatabaseRecord\getUid().
Referenced by DatabaseRecord\getRow().
setRow | ( | array | $row | ) |
Sets the database record row.
array | $row |
Definition at line 134 of file DatabaseRecord.php.
References DatabaseRecord\$row.
Referenced by DatabaseRecord\__construct().
setTable | ( | $table | ) |
Sets the name of the database table.
string | $table |
Definition at line 91 of file DatabaseRecord.php.
References DatabaseRecord\$table.
Referenced by DatabaseRecord\__construct().
setUid | ( | $uid | ) |
Sets the id of the database record row.
int | $uid |
Definition at line 112 of file DatabaseRecord.php.
References DatabaseRecord\$uid.
Referenced by DatabaseRecord\__construct().
|
protected |
Definition at line 35 of file DatabaseRecord.php.
Referenced by DatabaseRecord\__construct(), DatabaseRecord\getRow(), and DatabaseRecord\setRow().
|
protected |
Definition at line 25 of file DatabaseRecord.php.
Referenced by DatabaseRecord\__construct(), DatabaseRecord\create(), DatabaseRecord\createFromArray(), DatabaseRecord\getTable(), and DatabaseRecord\setTable().
|
protected |
Definition at line 30 of file DatabaseRecord.php.
Referenced by DatabaseRecord\__construct(), DatabaseRecord\create(), DatabaseRecord\getUid(), and DatabaseRecord\setUid().