Session::set_question( integer $id )
Description #
Set a question id in session’s questions offset.
Parameters #
- $idinteger (Required) Question id.
Source #
File: includes/class/class-session.php
public function set_question( $id ) { $questions = $this->get( 'questions' ); if ( ! $questions ) { $questions = array(); } $questions[] = $id; $this->set( 'questions', $questions ); }
Expand full source code Collapse full source code View on GitHub: includes/class/class-session.php:171
Add your comment