PHP Class AuthorAssignedType

Inheritance: extends DatabaseObject
ファイルを表示 Open project: sourcefabric/newscoop Class Usage Examples

Public Properties

Property Type Description
$m_columnNames
$m_dbTableName
$m_keyColumnNames

Public Methods

Method Description
AddAuthorTypeToAuthor ( integer $p_authorId, integer $p_authorTypeId ) : void
GetAuthorTypesByAuthor ( integer $p_authorId )
OnAuthorDelete ( integer $p_authorId ) : void Remove author type pointers for the given author.
OnAuthorTypeDelete ( integer $p_authorTypeId ) : void This is called when an author type is deleted.
ResetAuthorAssignedTypes ( integer $p_authorId = null ) : void
__construct ( integer $p_authorId = null, integer $p_authorTypeId = null ) Constructor
getAuthorId ( ) : integer
getAuthorTypeId ( ) : integer

Method Details

AddAuthorTypeToAuthor() public static method

public static AddAuthorTypeToAuthor ( integer $p_authorId, integer $p_authorTypeId ) : void
$p_authorId integer
$p_authorTypeId integer
return void

GetAuthorTypesByAuthor() public static method

public static GetAuthorTypesByAuthor ( integer $p_authorId )
$p_authorId integer

OnAuthorDelete() public static method

Remove author type pointers for the given author.
public static OnAuthorDelete ( integer $p_authorId ) : void
$p_authorId integer
return void

OnAuthorTypeDelete() public static method

It will disassociate the author type from all authors.
public static OnAuthorTypeDelete ( integer $p_authorTypeId ) : void
$p_authorTypeId integer
return void

ResetAuthorAssignedTypes() public static method

public static ResetAuthorAssignedTypes ( integer $p_authorId = null ) : void
$p_authorId integer
return void

__construct() public method

Constructor
public __construct ( integer $p_authorId = null, integer $p_authorTypeId = null )
$p_authorId integer
$p_authorTypeId integer

getAuthorId() public method

public getAuthorId ( ) : integer
return integer

getAuthorTypeId() public method

public getAuthorTypeId ( ) : integer
return integer

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