pollid2topicid
Usage: int pollid2topicid (int pollid)
Purpose: Returns the topic id of a poll.
Availability: IPB SDK 0.5
Purpose: Returns the topic id of a poll.
Availability: IPB SDK 0.5
Returns the topic id of poll pollid. This is useful for IPB SDK's poll functions, which require the poll's topic ID rather they it's poll ID.
If the poll does not exist, FALSE will be returned.
// Using Poll ID To Topic ID, with get_poll_info
$pollid = "7";
$info = $SDK->get_poll_info($SDK->pollid2topicid($pollid));
$pollid = "7";
$info = $SDK->get_poll_info($SDK->pollid2topicid($pollid));
The pollid attribute accepts an array. Topic IDs will be returned in the same array structure as provided. For example:
$pollids = array(
"foo" => "1",
"bar" => "3",
);
$topicids = $SDK->pollid2topicid($pollids);
/*
$topicids will look like:
$topicids = array(
"foo" => "10",
"bar" => "73",
);
*/
"foo" => "1",
"bar" => "3",
);
$topicids = $SDK->pollid2topicid($pollids);
/*
$topicids will look like:
$topicids = array(
"foo" => "10",
"bar" => "73",
);
*/
User Contributed Notes
Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net
There are currently no user contributed notes for this page.