PHP Class ObjectType

Inheritance: extends DatabaseObject
显示文件 Open project: sourcefabric/newscoop Class Usage Examples

Public Properties

Property Type Description
$m_columnNames
$m_dbTableName
$m_keyColumnNames
$m_keyIsAutoIncrement

Public Methods

Method Description
__construct ( $p_idOrName = null )
delete ( )
getDescription ( integer $p_languageId ) : string Get the description in the given language.
getDescriptionId ( ) : integer Get the description ID which is an index into the Translations table.
getName ( ) : string
getObjectTypeId ( ) : integer
setDescription ( integer $p_languageId, string $p_text ) Set the description in the given language.
setProperty ( $p_dbColumnName, $p_value, $p_commit = true, $p_isSql = false ) Wrapper around DatabaseObject::setProperty

Method Details

__construct() public method

public __construct ( $p_idOrName = null )

delete() public method

public delete ( )

getDescription() public method

This is a convenience function that wraps the Translation::GetPhrase() function.
public getDescription ( integer $p_languageId ) : string
$p_languageId integer
return string

getDescriptionId() public method

Get the description ID which is an index into the Translations table.
public getDescriptionId ( ) : integer
return integer

getName() public method

public getName ( ) : string
return string

getObjectTypeId() public method

public getObjectTypeId ( ) : integer
return integer

setDescription() public method

Set the description in the given language.
public setDescription ( integer $p_languageId, string $p_text )
$p_languageId integer
$p_text string

setProperty() public method

Wrapper around DatabaseObject::setProperty
public setProperty ( $p_dbColumnName, $p_value, $p_commit = true, $p_isSql = false )

Property Details

$m_columnNames public_oe property

public $m_columnNames

$m_dbTableName public_oe property

public $m_dbTableName

$m_keyColumnNames public_oe property

public $m_keyColumnNames

$m_keyIsAutoIncrement public_oe property

public $m_keyIsAutoIncrement