function __construct($qt_details, $qtid) { $this->id = $qtid; $this->type = get_type_id_from_name($qt_details[0]); $this->desc = $qt_details[1]; $this->groupName = $this->_parse_groupname($qt_details[2]); $this->selections = array_slice($qt_details, 3); }
function __construct($problem_details) { $this->type = get_type_id_from_name($problem_details[0]); $this->desc = $problem_details[1]; $this->level = $this->_parse_level($problem_details[2]); $this->category_product = $this->_parse_product($problem_details[3]); $this->category_adaptaion = $this->_parse_adaptation($problem_details[4]); $this->problem_category = $this->_parse_category($problem_details[5]); $this->answer = trim($problem_details[6]); $this->memo = $problem_details[7]; $this->selections = array_slice($problem_details, 8); }
function get_entities_by_type_name($type_name, $site_id = '') { return get_entities_by_type(get_type_id_from_name($type_name, $site_id = '')); }