ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilStudyProgrammeAutoCategoryDBRepository. More...
Public Member Functions | |||||||
__construct (ilDBInterface $db, int $current_usr_id) | |||||||
readFor (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.
| |||||||
Static Public Member Functions | |
static | getProgrammesFor (int $cat_ref_id) |
Get all programmes' ref_ids monitoring the given category.
| |
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 readFor().
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.
|
static |
Get all programmes' ref_ids monitoring the given category.
Implements ilStudyProgrammeAutoCategoryRepository.
Definition at line 152 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
References $ilDB, $query, $res, and $ret.
ilStudyProgrammeAutoCategoryDBRepository::readFor | ( | 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().
ilStudyProgrammeAutoCategoryDBRepository::update | ( | ilStudyProgrammeAutoCategory | $ac | ) |
Store a category-surveillance setting.
ilStudyProgrammeAutoCategory | $ac |
Implements ilStudyProgrammeAutoCategoryRepository.
Definition at line 90 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
References $current_usr_id, $db, $query, ilStudyProgrammeAutoCategory\getCategoryRefId(), ilStudyProgrammeAutoCategory\getPrgObjId(), ilDBInterface\insert(), and ilDBInterface\manipulate().
|
protected |
Definition at line 26 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
Referenced by __construct(), create(), and update().
|
protected |
Definition at line 21 of file class.ilStudyProgrammeAutoCategoryDBRepository.php.
Referenced by __construct(), and update().
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.