PHP Class AuthorType

Inheritance: extends DatabaseObject
Mostrar archivo Open project: sourcefabric/newscoop Class Usage Examples

Public Properties

Property Type Description
$m_columnNames array
$m_dbTableName string
$m_exists boolean
$m_keyColumnNames array
$m_keyIsAutoIncrement boolean

Public Methods

Method Description
GetAuthorTypes ( ) : array Get all the author types.
__construct ( integer $p_authorTypeId = null ) : void Constructor
create ( string $p_name = null ) : boolean
delete ( ) : boolean
getId ( ) : integer Get the id of the author type.
getName ( ) : string Get the name of the author type.
setName ( string $p_value ) : string Get the name of the author type.

Method Details

GetAuthorTypes() public static method

Get all the author types.
public static GetAuthorTypes ( ) : array
return array An array of AuthorType objects.

__construct() public method

Constructor
public __construct ( integer $p_authorTypeId = null ) : void
$p_authorTypeId integer (optional) The author type identifier
return void

create() public method

public create ( string $p_name = null ) : boolean
$p_name string
return boolean

delete() public method

public delete ( ) : boolean
return boolean

getId() public method

Get the id of the author type.
public getId ( ) : integer
return integer

getName() public method

Get the name of the author type.
public getName ( ) : string
return string

setName() public method

Get the name of the author type.
public setName ( string $p_value ) : string
$p_value string
return string

Property Details

$m_columnNames public_oe property

public array $m_columnNames
return array

$m_dbTableName public_oe property

public string $m_dbTableName
return string

$m_exists public_oe property

public bool $m_exists
return boolean

$m_keyColumnNames public_oe property

public array $m_keyColumnNames
return array

$m_keyIsAutoIncrement public_oe property

public bool $m_keyIsAutoIncrement
return boolean