|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilStudyProgrammeAutoCategoryDBRepository. More...
Inheritance diagram for ilStudyProgrammeAutoCategoryDBRepository:
Collaboration diagram for ilStudyProgrammeAutoCategoryDBRepository:Public Member Functions | |||||||
| __construct (ilDBInterface $db, int $current_usr_id) | |||||||
| getFor (int $prg_obj_id) | |||||||
Read category-surveillance settings of programme.
| |||||||
| create (int $prg_obj_id, int $category_ref_id, int $last_edited_usr_id=null, \DateTimeImmutable $last_edited=null) | |||||||
Build an auto-category object.
| |||||||
| update (ilStudyProgrammeAutoCategory $ac) | |||||||
Store a category-surveillance setting.
| |||||||
| delete (int $prg_obj_id, array $cat_ref_ids) | |||||||
Delete a single category-surveillance.
| |||||||
| deleteFor (int $prg_obj_id) | |||||||
Delete all category-surveillance settings for a StudyProgramme.
| |||||||
| getFor (int $prg_obj_id) | |||||||
| Read category-surveillance settings of programme. More... | |||||||
| create (int $prg_obj_id, int $category_ref_id, int $last_edited_usr_id=null, \DateTimeImmutable $last_edited=null) | |||||||
| Build an auto-category object. More... | |||||||
| update (ilStudyProgrammeAutoCategory $ac) | |||||||
| Store a category-surveillance setting. More... | |||||||
| delete (int $prg_obj_id, array $cat_ref_ids) | |||||||
| Delete a single category-surveillance. More... | |||||||
| deleteFor (int $prg_obj_id) | |||||||
| Delete all category-surveillance settings for a StudyProgramme. More... | |||||||
Static Public Member Functions | |
| static | getProgrammesFor (int $cat_ref_id) |
Get all programmes' ref_ids monitoring the given category.
| |
| static | getProgrammesFor (int $cat_ref_id) |
| Get all programmes' ref_ids monitoring the given category. More... | |
Data Fields | |
| const | TABLE = 'prg_auto_content' |
| const | FIELD_PRG_OBJ_ID = 'prg_obj_id' |
| const | FIELD_CAT_REF_ID = 'cat_ref_id' |
| const | FIELD_EDITOR_ID = 'last_usr_id' |
| const | FIELD_LAST_EDITED = 'last_edited' |
Protected Attributes | |
| $db | |
| $current_usr_id | |
Class ilStudyProgrammeAutoCategoryDBRepository.
Definition at line 10 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
| ilStudyProgrammeAutoCategoryDBRepository::__construct | ( | ilDBInterface | $db, |
| int | $current_usr_id | ||
| ) |
Definition at line 28 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
References $current_usr_id, and $db.
| ilStudyProgrammeAutoCategoryDBRepository::create | ( | int | $prg_obj_id, |
| int | $category_ref_id, | ||
| int | $last_edited_usr_id = null, |
||
| \DateTimeImmutable | $last_edited = null |
||
| ) |
Build an auto-category object.
Implements ilStudyProgrammeAutoCategoryRepository.
Definition at line 66 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
References $current_usr_id.
Referenced by getFor().
Here is the caller graph for this function:| ilStudyProgrammeAutoCategoryDBRepository::delete | ( | int | $prg_obj_id, |
| array | $cat_ref_ids | ||
| ) |
Delete a single category-surveillance.
| int | $prg_obj_id | |
| int[] | $cat_ref_ids |
Implements ilStudyProgrammeAutoCategoryRepository.
Definition at line 122 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
References $query.
| ilStudyProgrammeAutoCategoryDBRepository::deleteFor | ( | int | $prg_obj_id | ) |
Delete all category-surveillance settings for a StudyProgramme.
| int | $prg_obj_id |
Implements ilStudyProgrammeAutoCategoryRepository.
Definition at line 141 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
References $query.
| ilStudyProgrammeAutoCategoryDBRepository::getFor | ( | int | $prg_obj_id | ) |
Read category-surveillance settings of programme.
| int | $prg_obj_id |
Implements ilStudyProgrammeAutoCategoryRepository.
Definition at line 39 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
References $query, $res, $ret, and create().
Here is the call graph for this function:
|
static |
Get all programmes' ref_ids monitoring the given category.
Implements ilStudyProgrammeAutoCategoryRepository.
Definition at line 152 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
| ilStudyProgrammeAutoCategoryDBRepository::update | ( | ilStudyProgrammeAutoCategory | $ac | ) |
Store a category-surveillance setting.
| ilStudyProgrammeAutoCategory | $ac |
Implements ilStudyProgrammeAutoCategoryRepository.
Definition at line 90 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
References $query, ilStudyProgrammeAutoCategory\getCategoryRefId(), ilStudyProgrammeAutoCategory\getPrgObjId(), ilDBInterface\insert(), and ilDBInterface\manipulate().
Here is the call graph for this function:
|
protected |
Definition at line 26 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
Referenced by __construct(), and create().
|
protected |
Definition at line 21 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
Referenced by __construct().
| const ilStudyProgrammeAutoCategoryDBRepository::FIELD_CAT_REF_ID = 'cat_ref_id' |
Definition at line 14 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
| const ilStudyProgrammeAutoCategoryDBRepository::FIELD_EDITOR_ID = 'last_usr_id' |
Definition at line 15 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
| const ilStudyProgrammeAutoCategoryDBRepository::FIELD_LAST_EDITED = 'last_edited' |
Definition at line 16 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
| const ilStudyProgrammeAutoCategoryDBRepository::FIELD_PRG_OBJ_ID = 'prg_obj_id' |
Definition at line 13 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
| const ilStudyProgrammeAutoCategoryDBRepository::TABLE = 'prg_auto_content' |
Definition at line 12 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.