|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for ilObjQuestionPool:
Collaboration diagram for ilObjQuestionPool:Public Member Functions | |
| __construct (int $a_id=0, bool $a_call_by_reference=true) | |
| create ($a_upload=false) | |
| create questionpool object More... | |
| createReference () | |
| Creates a database reference id for the object (saves the object to the database and creates a reference id in the database) More... | |
| update () | |
| update object data More... | |
| read ($a_force_db=false) | |
| read object data from db into object More... | |
| delete () | |
| delete object and all related data More... | |
| deleteQuestionpool () | |
| deleteQuestion (int $question_id) | |
| loadFromDb () | |
| saveToDb () | |
| getQuestiontype ($question_id) | |
| isInUse (int $question_id) | |
| createQuestion (string $question_type, int $question_id=-1) | |
| duplicateQuestion (int $question_id) | |
| copyQuestion (int $question_id, int $questionpool_to) | |
| appendCounterToQuestionTitleIfNecessary (string $title) | |
| getPrintviewQuestions () | |
| & | getAllQuestions () |
| Retrieve an array containing all question ids of the questionpool. More... | |
| & | getAllQuestionIds () |
| checkQuestionParent (int $question_id) | |
| questionsToXML ($questions) | |
| Returns a QTI xml representation of a list of questions. More... | |
| pasteFromClipboard () | |
| Copies/Moves a question from the clipboard. More... | |
| copyToClipboard ($question_id) | |
| Copies a question to the clipboard. More... | |
| moveToClipboard (int $question_id) | |
| Moves a question to the clipboard. More... | |
| cleanupClipboard (int $deleted_question_id) | |
| getQuestionDetails ($question_ids) | |
| Returns an array containing the qpl_question and qpl_qst_type fields for an array of question ids. More... | |
| getDeleteableQuestionDetails ($question_ids) | |
| Returns an array containing the qpl_question and qpl_qst_type fields of deleteable questions for an array of question ids. More... | |
| getQplQuestions () | |
| cloneObject (int $target_id, int $copy_id=0, bool $omit_tree=false) | |
| Creates a 1:1 copy of the object and places the copy in a given repository. More... | |
| getQuestionTypes ($all_tags=false, $fixOrder=false, $withDeprecatedTypes=true) | |
| getQuestionList () | |
| isPluginActive ($questionType) | |
| Checks wheather or not a question plugin with a given name is active. More... | |
| purgeQuestions () | |
| getTaxonomyIds () | |
| get ids of all taxonomies corresponding to current pool More... | |
| isSkillServiceEnabled () | |
| setSkillServiceEnabled (bool $skill_service_enabled) | |
Public Member Functions inherited from ilObject | |
| getObjectProperties () | |
| flushObjectProperties () | |
| withReferences () | |
| determines whether objects are referenced or not (got ref ids or not) More... | |
| processAutoRating () | |
| read () | |
| getId () | |
| setId (int $id) | |
| setRefId (int $ref_id) | |
| getRefId () | |
| getType () | |
| setType (string $type) | |
| getPresentationTitle () | |
| get presentation title Normally same as title Overwritten for sessions More... | |
| getTitle () | |
| getUntranslatedTitle () | |
| Get untranslated object title WebDAV needs to access the untranslated title of an object. More... | |
| setTitle (string $title) | |
| getDescription () | |
| setDescription (string $description) | |
| getLongDescription () | |
| get object long description (stored in object_description) More... | |
| getImportId () | |
| setImportId (string $import_id) | |
| setOfflineStatus (bool $status) | |
| getOfflineStatus () | |
| supportsOfflineHandling () | |
| getOwner () | |
| getOwnerName () | |
| get full name of object owner More... | |
| setOwner (int $usr_id) | |
| getCreateDate () | |
| Get create date in YYYY-MM-DD HH-MM-SS format. More... | |
| getLastUpdateDate () | |
| Get last update date in YYYY-MM-DD HH-MM-SS format. More... | |
| create () | |
| note: title, description and type should be set when this function is called More... | |
| update () | |
| MDUpdateListener (string $element) | |
| Metadata update listener. More... | |
| createMetaData () | |
| updateMetaData () | |
| deleteMetaData () | |
| updateOwner () | |
| update owner of object in db More... | |
| putInTree (int $parent_ref_id) | |
| maybe this method should be in tree object!? More... | |
| setPermissions (int $parent_ref_id) | |
| setParentRolePermissions (int $parent_ref_id) | |
| Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More... | |
| createReference () | |
| creates reference for object More... | |
| countReferences () | |
| delete () | |
| delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More... | |
| initDefaultRoles () | |
| init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type. More... | |
| applyDidacticTemplate (int $tpl_id) | |
| getXMLZip () | |
| getHTMLDirectory () | |
| appendCopyInfo (int $target_id, int $copy_id, int $new_obj_id) | |
| Prepend Copy info if object with same name exists in that container. More... | |
| cloneDependencies (int $target_id, int $copy_id) | |
| Clone object dependencies. More... | |
| cloneMetaData (ilObject $target_obj) | |
| Copy meta data. More... | |
| selfOrParentWithRatingEnabled () | |
| getPossibleSubObjects (bool $filter=true) | |
| get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More... | |
Static Public Member Functions | |
| static | _hasEqualPoints ($a_obj_id, $is_reference=false) |
| Checks a question pool for questions with the same maximum points. More... | |
| static | _isWriteable ($object_id, $user_id) |
| Returns true, if the question pool is writeable by a given user. More... | |
| static | _getAvailableQuestionpools (bool $use_object_id=false, bool $equal_points=false, bool $could_be_offline=false, bool $showPath=false, bool $with_questioncount=false, string $permission='read', int $usr_id=0) |
| Returns the available question pools for the active user. More... | |
| static | _getQuestionTypes ($all_tags=false, $fixOrder=false, $withDeprecatedTypes=true) |
| static | getQuestionTypeByTypeId ($type_id) |
| static | getQuestionTypeTranslations () |
| static & | _getSelfAssessmentQuestionTypes ($all_tags=false) |
| static | _updateQuestionCount (int $object_id) |
| static | isSkillManagementGloballyActivated () |
Static Public Member Functions inherited from ilObject | |
| static | _lookupObjIdByImportId (string $import_id) |
| Get (latest) object id for an import id. More... | |
| static | _lookupImportId (int $obj_id) |
| static | _lookupOwnerName (int $owner_id) |
| Lookup owner name for owner id. More... | |
| static | _getIdForImportId (string $import_id) |
| static | _getAllReferences (int $id) |
| get all reference ids for object ID More... | |
| static | _lookupTitle (int $obj_id) |
| static | lookupOfflineStatus (int $obj_id) |
| Lookup offline status using objectDataCache. More... | |
| static | _lookupOwner (int $obj_id) |
| Lookup owner user ID for object ID. More... | |
| static | _getIdsForTitle (string $title, string $type='', bool $partial_match=false) |
| static | _lookupDescription (int $obj_id) |
| static | _lookupLastUpdate (int $obj_id, bool $formatted=false) |
| static | _getLastUpdateOfObjects (array $obj_ids) |
| static | _lookupObjId (int $ref_id) |
| static | _setDeletedDate (int $ref_id, int $deleted_by) |
| static | setDeletedDates (array $ref_ids, int $user_id) |
| static | _resetDeletedDate (int $ref_id) |
| static | _lookupDeletedDate (int $ref_id) |
| static | _writeTitle (int $obj_id, string $title) |
| write title to db (static) More... | |
| static | _writeDescription (int $obj_id, string $desc) |
| write description to db (static) More... | |
| static | _writeImportId (int $obj_id, string $import_id) |
| write import id to db (static) More... | |
| static | _lookupType (int $id, bool $reference=false) |
| static | _isInTrash (int $ref_id) |
| static | _hasUntrashedReference (int $obj_id) |
| checks whether an object has at least one reference that is not in trash More... | |
| static | _lookupObjectId (int $ref_id) |
| static | _getObjectsDataForType (string $type, bool $omit_trash=false) |
| get all objects of a certain type More... | |
| static | _exists (int $id, bool $reference=false, ?string $type=null) |
| checks if an object exists in object_data More... | |
| static | _getObjectsByType (string $obj_type="", ?int $owner=null) |
| static | _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true) |
| Prepare copy wizard object selection. More... | |
| static | getIconForType (string $type) |
| static | _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false) |
| Get icon for repository item. More... | |
| static | collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0) |
| Collect deletion dependencies. More... | |
| static | getDeletionDependencies (int $obj_id) |
| Get deletion dependencies. More... | |
| static | getLongDescriptions (array $obj_ids) |
| static | getAllOwnedRepositoryObjects (int $user_id) |
| static | fixMissingTitles ($type, array &$obj_title_map) |
| Try to fix missing object titles. More... | |
| static | _lookupCreationDate (int $obj_id) |
| static | _getObjectTypeIdByTitle (string $type, ?\ilDBInterface $ilDB=null) |
Static Protected Member Functions | |
| static | _getQuestionCount (int $pool_id) |
Private Attributes | |
| ilComponentRepository | $component_repository |
| bool | $skill_service_enabled |
| GeneralQuestionPropertiesRepository | $questionrepository |
Static Private Attributes | |
| static | $isSkillManagementGloballyActivated = null |
Definition at line 33 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::__construct | ( | int | $a_id = 0, |
| bool | $a_call_by_reference = true |
||
| ) |
Definition at line 40 of file class.ilObjQuestionPool.php.
References $DIC, and ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:
|
static |
Returns the available question pools for the active user.
Definition at line 668 of file class.ilObjQuestionPool.php.
Referenced by ilObjTestGUI\buildInputPoolSelection(), ilObjTest\getAvailableQuestions(), and ilTestQuestionBrowserTableGUI\getQuestionParentObjIds().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 388 of file class.ilObjQuestionPool.php.
Referenced by _updateQuestionCount().
Here is the caller graph for this function:
|
static |
Definition at line 800 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, $lng, ilAssQuestionTypeOrderer\ORDER_MODE_ALPHA, and ilAssQuestionTypeOrderer\ORDER_MODE_FIX.
Referenced by _getSelfAssessmentQuestionTypes(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ILIAS\TestQuestionPool\Questions\Presentation\QuestionTable\getFilter(), ilTestRandomQuestionSetSourcePoolDefinition\getTypeFilterAsTypeTags(), ilQuestionBrowserTableGUI\initFilter(), ilTestQuestionFilterLabelTranslator\loadTypeLabels(), ILIAS\Test\Questions\Presentation\QuestionsBrowserFilter\resolveQuestionTypeFilterOptions(), and ilTestRandomQuestionSetSourcePoolDefinition\setTypeFilterFromTypeTags().
Here is the caller graph for this function:
|
static |
Definition at line 876 of file class.ilObjQuestionPool.php.
References _getQuestionTypes().
Referenced by ILIAS\COPage\PC\Question\SelfAssQuestionRetrieval\collectData(), and ilPCQuestionGUI\insert().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Checks a question pool for questions with the same maximum points.
| integer | $a_obj_id | Object id of the question pool @access private |
Definition at line 407 of file class.ilObjQuestionPool.php.
|
static |
Returns true, if the question pool is writeable by a given user.
| integer | $object_id | The object id of the question pool object |
| integer | $user_id | The database id of the user @access public |
Definition at line 550 of file class.ilObjQuestionPool.php.
References $DIC, ilObject\$ref_id, ilObject\_getAllReferences(), and ilObject\_hasUntrashedReference().
Referenced by assQuestion\isWriteable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 916 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, and _getQuestionCount().
Referenced by assQuestion\delete(), duplicateQuestion(), pasteFromClipboard(), and assQuestion\saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::appendCounterToQuestionTitleIfNecessary | ( | string | $title | ) |
Definition at line 266 of file class.ilObjQuestionPool.php.
References ilObject\$title, and ilObject\getId().
Referenced by copyQuestion(), ilObjTestGUI\copyQuestionToPool(), and duplicateQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::checkQuestionParent | ( | int | $question_id | ) |
Definition at line 345 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::cleanupClipboard | ( | int | $deleted_question_id | ) |
Definition at line 523 of file class.ilObjQuestionPool.php.
References ilSession\clear(), ilSession\get(), and ilSession\set().
Here is the call graph for this function:| ilObjQuestionPool::cloneObject | ( | int | $target_id, |
| int | $copy_id = 0, |
||
| bool | $omit_tree = false |
||
| ) |
Creates a 1:1 copy of the object and places the copy in a given repository.
@access public
Definition at line 762 of file class.ilObjQuestionPool.php.
References ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| ilObjQuestionPool::copyQuestion | ( | int | $question_id, |
| int | $questionpool_to | ||
| ) |
Definition at line 250 of file class.ilObjQuestionPool.php.
References appendCounterToQuestionTitleIfNecessary(), createQuestion(), duplicateQuestion(), and ilObject\getId().
Referenced by pasteFromClipboard().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::copyToClipboard | ( | $question_id | ) |
Copies a question to the clipboard.
| integer | $question_id | Object id of the question @access private |
Definition at line 497 of file class.ilObjQuestionPool.php.
References ilSession\get(), and ilSession\set().
Here is the call graph for this function:| ilObjQuestionPool::create | ( | $a_upload = false | ) |
create questionpool object
Definition at line 58 of file class.ilObjQuestionPool.php.
References $id, and ilObject\createMetaData().
Here is the call graph for this function:| ilObjQuestionPool::createQuestion | ( | string | $question_type, |
| int | $question_id = -1 |
||
| ) |
Definition at line 229 of file class.ilObjQuestionPool.php.
Referenced by copyQuestion(), duplicateQuestion(), getDeleteableQuestionDetails(), and questionsToXML().
Here is the caller graph for this function:| ilObjQuestionPool::createReference | ( | ) |
Creates a database reference id for the object (saves the object to the database and creates a reference id in the database)
@access public
Reimplemented from ilObject.
Definition at line 76 of file class.ilObjQuestionPool.php.
References saveToDb().
Here is the call graph for this function:| ilObjQuestionPool::delete | ( | ) |
delete object and all related data
@access public
Reimplemented from ilObject.
Definition at line 118 of file class.ilObjQuestionPool.php.
References ilObject\deleteMetaData(), deleteQuestionpool(), and ilObject\getId().
Here is the call graph for this function:| ilObjQuestionPool::deleteQuestion | ( | int | $question_id | ) |
Definition at line 149 of file class.ilObjQuestionPool.php.
References assQuestion\instantiateQuestion().
Referenced by deleteQuestionpool().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::deleteQuestionpool | ( | ) |
Definition at line 137 of file class.ilObjQuestionPool.php.
References ilFileUtils\delDir(), deleteQuestion(), ilFileUtils\getDataDir(), and getQplQuestions().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::duplicateQuestion | ( | int | $question_id | ) |
Definition at line 239 of file class.ilObjQuestionPool.php.
References _updateQuestionCount(), appendCounterToQuestionTitleIfNecessary(), and createQuestion().
Referenced by copyQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilObjQuestionPool::getAllQuestionIds | ( | ) |
Definition at line 323 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and isPluginActive().
Here is the call graph for this function:| & ilObjQuestionPool::getAllQuestions | ( | ) |
Retrieve an array containing all question ids of the questionpool.
Definition at line 309 of file class.ilObjQuestionPool.php.
References ilObject\getId().
Here is the call graph for this function:| ilObjQuestionPool::getDeleteableQuestionDetails | ( | $question_ids | ) |
Returns an array containing the qpl_question and qpl_qst_type fields of deleteable questions for an array of question ids.
| array | $question_ids | An array containing the question ids |
Definition at line 603 of file class.ilObjQuestionPool.php.
References createQuestion().
Here is the call graph for this function:| ilObjQuestionPool::getPrintviewQuestions | ( | ) |
Definition at line 280 of file class.ilObjQuestionPool.php.
References ILIAS\Scripts\PHPStan\$rows, ilObject\getId(), getQuestionTypeTranslations(), and isPluginActive().
Here is the call graph for this function:| ilObjQuestionPool::getQplQuestions | ( | ) |
Definition at line 743 of file class.ilObjQuestionPool.php.
References ILIAS\Survey\Mode\getId(), and ilDBConstants\T_INTEGER.
Referenced by deleteQuestionpool().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::getQuestionDetails | ( | $question_ids | ) |
Returns an array containing the qpl_question and qpl_qst_type fields for an array of question ids.
| array | $question_ids | An array containing the question ids |
Definition at line 573 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::getQuestionList | ( | ) |
Definition at line 902 of file class.ilObjQuestionPool.php.
References ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| ilObjQuestionPool::getQuestiontype | ( | $question_id | ) |
Definition at line 199 of file class.ilObjQuestionPool.php.
References $data.
|
static |
Definition at line 832 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::getQuestionTypes | ( | $all_tags = false, |
|
$fixOrder = false, |
|||
$withDeprecatedTypes = true |
|||
| ) |
Definition at line 795 of file class.ilObjQuestionPool.php.
|
static |
Definition at line 848 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, and $lng.
Referenced by getPrintviewQuestions().
Here is the caller graph for this function:| ilObjQuestionPool::getTaxonomyIds | ( | ) |
get ids of all taxonomies corresponding to current pool
Definition at line 967 of file class.ilObjQuestionPool.php.
References ILIAS\Survey\Mode\getId(), and ilObjTaxonomy\getUsageOfObject().
Here is the call graph for this function:| ilObjQuestionPool::isInUse | ( | int | $question_id | ) |
Definition at line 218 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::isPluginActive | ( | $questionType | ) |
Checks wheather or not a question plugin with a given name is active.
| string | $a_pname | The plugin name @access public |
Definition at line 933 of file class.ilObjQuestionPool.php.
References ilComponentInfo\TYPE_COMPONENT.
Referenced by getAllQuestionIds(), and getPrintviewQuestions().
Here is the caller graph for this function:
|
static |
Definition at line 984 of file class.ilObjQuestionPool.php.
Referenced by ilObjQuestionPoolSettingsGeneralGUI\buildForm(), ilQuestionPoolSkillAdministrationGUI\isAccessDenied(), and ilObjQuestionPoolGUI\isSkillsTabRequired().
Here is the caller graph for this function:| ilObjQuestionPool::isSkillServiceEnabled | ( | ) |
Definition at line 972 of file class.ilObjQuestionPool.php.
Referenced by saveToDb().
Here is the caller graph for this function:| ilObjQuestionPool::loadFromDb | ( | ) |
Definition at line 155 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and setSkillServiceEnabled().
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::moveToClipboard | ( | int | $question_id | ) |
Moves a question to the clipboard.
| integer | $question_id | Object id of the question @access private |
Definition at line 513 of file class.ilObjQuestionPool.php.
References ilSession\get(), and ilSession\set().
Here is the call graph for this function:| ilObjQuestionPool::pasteFromClipboard | ( | ) |
Copies/Moves a question from the clipboard.
@access private
Definition at line 441 of file class.ilObjQuestionPool.php.
References _updateQuestionCount(), ilSession\clear(), CLIENT_WEB_DIR, copyQuestion(), ilSession\get(), ilObject\getId(), and ilFileUtils\makeDirParents().
Here is the call graph for this function:| ilObjQuestionPool::purgeQuestions | ( | ) |
Definition at line 955 of file class.ilObjQuestionPool.php.
References ILIAS\Repository\user().
Here is the call graph for this function:| ilObjQuestionPool::questionsToXML | ( | $questions | ) |
Returns a QTI xml representation of a list of questions.
| array | $questions | An array containing the question ids of the questions |
Definition at line 367 of file class.ilObjQuestionPool.php.
References createQuestion().
Here is the call graph for this function:| ilObjQuestionPool::read | ( | $a_force_db = false | ) |
read object data from db into object
| boolean | @access public |
Definition at line 106 of file class.ilObjQuestionPool.php.
References loadFromDb().
Here is the call graph for this function:| ilObjQuestionPool::saveToDb | ( | ) |
Definition at line 168 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and isSkillServiceEnabled().
Referenced by createReference().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::setSkillServiceEnabled | ( | bool | $skill_service_enabled | ) |
Definition at line 977 of file class.ilObjQuestionPool.php.
Referenced by loadFromDb().
Here is the caller graph for this function:| ilObjQuestionPool::update | ( | ) |
update object data
@access public
Reimplemented from ilObject.
Definition at line 89 of file class.ilObjQuestionPool.php.
References ilObject\updateMetaData().
Here is the call graph for this function:
|
private |
Definition at line 35 of file class.ilObjQuestionPool.php.
|
staticprivate |
Definition at line 982 of file class.ilObjQuestionPool.php.
|
private |
Definition at line 38 of file class.ilObjQuestionPool.php.
|
private |
Definition at line 37 of file class.ilObjQuestionPool.php.