AuthorAssignedType::AddAuthorTypeToAuthor PHP Method

AddAuthorTypeToAuthor() public static method

public static AddAuthorTypeToAuthor ( integer $p_authorId, integer $p_authorTypeId ) : void
$p_authorId integer
$p_authorTypeId integer
return void
    public static function AddAuthorTypeToAuthor($p_authorId, $p_authorTypeId)
    {
        global $g_ado_db;
        $queryStr = 'INSERT IGNORE INTO ' . self::TABLE . ' (fk_author_id, fk_type_id)
            VALUES (' . (int) $p_authorId . ', ' . (int) $p_authorTypeId . ')';
        $g_ado_db->Execute($queryStr);
    }