Class TableDate
- TableAccess
-
TableDate
License: GNU General Public License v2.0 only **********************************************************************************************
Class:
TableDate Diese Klasse dient dazu ein Terminobjekt zu erstellen. Ein Termin kann ueber diese Klasse in der Datenbank verwaltet werden
Beside the methods of the parent class there are the following additional methods:
getIcal($domain) - gibt String mit dem Termin im iCal-Format zurueck editRight() - prueft, ob der Termin von der aktuellen Orga bearbeitet werden darf
Located at tabledate.php
Methods summary
public
|
#
__construct(
Constructor that will create an object of a recordset of the table adm_dates. If the id is set than the specific date will be loaded. |
public
|
|
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
integer|string|boolean
|
|
public
array
|
#
getVisibleRoles( )
die Methode gibt ein Array mit den fuer den Termin sichtbaren Rollen-IDs zurueck |
public
boolean
|
#
save( boolean $updateFingerPrint = true )
Save all changed columns of the recordset in table of database. Therefore the class remembers if it's a new record or if only an update is necessary. The update statement will only update the changed columns. If the table has columns for creator or editor than these column with their timestamp will be updated. Saves also all roles that could see this date. |
public
boolean
|
|
public
|
#
setVisibleRoles( array $arrVisibleRoleIds )
die Methode erwartet ein Array mit den fuer den Termin sichtbaren Rollen-IDs |
Methods inherited from TableAccess
__sleep()
,
connectAdditionalTable()
,
countAllRecords()
,
hasColumnsValueChanged()
,
isNewRecord()
,
readData()
,
readDataByColumns()
,
readDataById()
,
setArray()
,
setDatabase()
Properties summary
protected
array
|
$visibleRoles
|
#
array()
|
protected
|
$changeVisibleRoles
|
Properties inherited from TableAccess
$additionalTables
,
$columnPrefix
,
$columnsInfos
,
$columnsValueChanged
,
$db
,
$dbColumns
,
$keyColumnName
,
$new_record
,
$tableName