Version 4.3.0

This commit is contained in:
Neo committed 2025-12-19 05:47:12 -08:00
1 parent 96997ddd8e
commit fe1acf984a
1349 files changed
+116159 -67711

No files matched your search

+3 -2
View File
@@ -644,18 +644,19 @@ class _Poll extends \IPS\Patterns\ActiveRecord implements \SplSubject
/**
* Get output for API
*
* @param \IPS\Member|NULL $authorizedMember The member making the API request or NULL for API Key / client_credentials
* @return array
* @apiresponse int id ID number
* @apiresponse string title Title
* @apiresponse int votes Number of votes
* @apiresponse [\IPS\Poll\Question] questions The questions
*/
public function apiOutput()
public function apiOutput( \IPS\Member $authorizedMember = NULL )
{
$questions = array();
foreach ( $this->choices as $choice )
{
$questions[] = ( new \IPS\Poll\Question( $choice ) )->apiOutput();
$questions[] = ( new \IPS\Poll\Question( $choice ) )->apiOutput( $authorizedMember );
}
return array(