/**
	 * Creates the list of objects. Sets the parameter $p_hasNextElements to
	 * true if this list is limited and elements still exist in the original
	 * list (from which this was truncated) after the last element of this
	 * list.
	 *
	 * @param int $p_start
	 * @param int $p_limit
	 * @param bool $p_hasNextElements
	 * @return array
	 */
	protected function CreateList($p_start = 0, $p_limit = 0, array $p_parameters, &$p_count)
	{
	    $operator = new Operator('is');
	    $context = CampTemplate::singleton()->context();
	    $comparisonOperation = new ComparisonOperation('poll_nr', $operator,
	                                                   $context->poll->number);
	    $this->m_constraints[] = $comparisonOperation;
	    
        $comparisonOperation = new ComparisonOperation('pollanswer_nr', $operator,
                                                        $context->pollanswer->number);
	    $this->m_constraints[] = $comparisonOperation;

	    $pollAnswerAttachmentsList = PollAnswerAttachment::GetList($this->m_constraints, $this->m_order, $p_start, $p_limit, $p_count);
        $metaPollAnswerAttachmentsList = array();
        
	    foreach ($pollAnswerAttachmentsList as $pollAnswerAttachment) {
	        $metaPollAnswerAttachmentsList[] = new MetaAttachment($pollAnswerAttachment->getAttachmentId());
	    }
	    return $metaPollAnswerAttachmentsList;
	}