Exemple #1
0
	/**
	 * get pages where to hide help
	 *
	 * @return array
	 */
	public function hide_help() {
		return explode_no_empty(",", $this->hide_help);
	}
Exemple #2
0
 function LoadQuestionTextbox($store, $q_row, $o_rows)
 {
     // basic stuff
     $store->scenario = $q_row['scenario'];
     // size of text box stored as 100x30 in sm
     list($store->columns, $store->rows) = explode('x', $q_row['display_method']);
     $store->editor = $o_rows[0]['option_text'];
     $store->marks_correct = $o_rows[0]['marks_correct'];
     $store->marks_incorrect = $o_rows[0]['marks_incorrect'];
     $store->feedback = $q_row['correct_fback'];
     // create a list of ; separated terms, stripping out any empty ones?
     // TODO: Should this happen? maybe they want to leave blank ones in?
     $store->terms = explode_no_empty(';', $o_rows[0]['correct']);
 }