mirror of
https://github.com/idanoo/nzart-exam-generator
synced 2025-07-06 00:02:16 +00:00
Made full exam mock actual exam by grabbing 1 question per 10 for each section
This commit is contained in:
parent
3d98b9a290
commit
9e95985703
3 changed files with 35 additions and 11 deletions
|
@ -44,6 +44,13 @@ class DataItem {
|
|||
return $obj;
|
||||
}
|
||||
|
||||
public static function count($query)
|
||||
{
|
||||
$db = new db();
|
||||
$db->query($query);
|
||||
return array_pop($db->single());
|
||||
}
|
||||
|
||||
public function getId() {
|
||||
$typeName = static::_getType();
|
||||
$id = $typeName."_id";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue