ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ($a_id=null) | |
Constructor. More... | |
getTypeInstance () | |
copy ($a_new_parent_id) | |
getId () | |
setParentId ($a_id) | |
getParentId () | |
setTypeId ($a_id) | |
getTypeId () | |
setActive ($a_value) | |
isActive () | |
setTitle ($a_value) | |
getTitle () | |
setDescription ($a_value) | |
getDescription () | |
setCriteria ($a_value) | |
getCriteria () | |
setValid ($a_value) | |
getValid () | |
setConfiguration (array $a_value=null) | |
getConfiguration () | |
getImage () | |
uploadImage (array $a_upload_meta) | |
importImage ($a_name, $a_file) | |
getImagePath ($a_full_path=true) | |
create () | |
update () | |
delete () | |
getParentMeta () | |
getStaticUrl () | |
deleteStaticFiles () | |
Static Public Member Functions | |
static | getInstancesByParentId ($a_parent_id, array $a_filter=null) |
static | getInstancesByType ($a_type_id) |
static | getObjectInstances (array $a_filter=null) |
static | getExtendedTypeCaption (ilBadgeType $a_type) |
Protected Member Functions | |
setId ($a_id) | |
setImage ($a_value) | |
getFilePath ($a_id, $a_subdir=null) | |
Init file system storage. More... | |
read ($a_id) | |
importDBRow (array $a_row) | |
getPropertiesForStorage () | |
prepareJson ($a_base_url, $a_img_suffix) | |
Protected Attributes | |
$id | |
$parent_id | |
$type_id | |
$active | |
$title | |
$desc | |
$image | |
$valid | |
$config | |
$criteria | |
Definition at line 12 of file class.ilBadge.php.
ilBadge::__construct | ( | $a_id = null | ) |
Constructor.
int | $a_id |
Definition at line 31 of file class.ilBadge.php.
References read().
ilBadge::copy | ( | $a_new_parent_id | ) |
Definition at line 101 of file class.ilBadge.php.
References $img, $lng, create(), getId(), getImagePath(), getTitle(), setActive(), setId(), setParentId(), and setTitle().
Referenced by getStaticUrl(), and importImage().
ilBadge::create | ( | ) |
Definition at line 394 of file class.ilBadge.php.
References $id, $ilDB, array, getId(), getParentId(), getPropertiesForStorage(), getTypeId(), setId(), and update().
Referenced by copy(), and update().
ilBadge::delete | ( | ) |
Definition at line 431 of file class.ilBadge.php.
References $ilDB, ilBadgeAssignment\deleteByBadgeId(), deleteStaticFiles(), getId(), and getImagePath().
ilBadge::deleteStaticFiles | ( | ) |
Definition at line 545 of file class.ilBadge.php.
References $path, ilUtil\delDir(), and ilBadgeHandler\getInstance().
Referenced by delete().
ilBadge::getConfiguration | ( | ) |
Definition at line 271 of file class.ilBadge.php.
References $config.
Referenced by getPropertiesForStorage(), and ilBadgeManagementGUI\setBadgeFormValues().
ilBadge::getCriteria | ( | ) |
Definition at line 246 of file class.ilBadge.php.
References $criteria.
Referenced by getPropertiesForStorage(), and ilBadgeManagementGUI\setBadgeFormValues().
ilBadge::getDescription | ( | ) |
Definition at line 236 of file class.ilBadge.php.
References $desc.
Referenced by getPropertiesForStorage(), prepareJson(), and ilBadgeManagementGUI\setBadgeFormValues().
|
static |
Definition at line 555 of file class.ilBadge.php.
References $lng, and ilBadgeType\getCaption().
Referenced by ilObjectBadgeTableGUI\getItems(), ilBadgeTableGUI\getItems(), ilBadgeUserTableGUI\getItems(), ilObjectBadgeTableGUI\initFilter(), ilBadgeTableGUI\initFilter(), and ilBadgeManagementGUI\listBadges().
|
protected |
Init file system storage.
type | $a_id | |
type | $a_subdir |
Definition at line 339 of file class.ilBadge.php.
References $path.
Referenced by getImagePath().
ilBadge::getId | ( | ) |
Definition at line 186 of file class.ilBadge.php.
References $id.
Referenced by copy(), ilBadgeHandler\countStaticBadgeInstances(), create(), delete(), ilBadgeHandler\getBadgePath(), getImagePath(), update(), and uploadImage().
ilBadge::getImage | ( | ) |
Definition at line 281 of file class.ilBadge.php.
References $image.
Referenced by getImagePath(), getPropertiesForStorage(), getStaticUrl(), and ilBadgeManagementGUI\setBadgeFormValues().
ilBadge::getImagePath | ( | $a_full_path = true | ) |
Definition at line 316 of file class.ilBadge.php.
References getFilePath(), getId(), and getImage().
Referenced by copy(), delete(), ilBadgeAssignment\getImagePath(), getStaticUrl(), importImage(), ilBadgeManagementGUI\setBadgeFormValues(), and uploadImage().
|
static |
Definition at line 39 of file class.ilBadge.php.
References $ilDB, $res, $row, and array.
Referenced by ilBadgeHandler\getAvailableManualBadges(), ilBadgeAssignment\getInstancesByParentId(), ilBadgeTableGUI\getItems(), and ilBadgeUserTableGUI\getItems().
|
static |
Definition at line 72 of file class.ilBadge.php.
References $ilDB, $res, $row, and array.
Referenced by ilBadgeHandler\triggerEvaluation().
|
static |
Definition at line 124 of file class.ilBadge.php.
References $ilDB, $res, $row, and array.
Referenced by ilObjectBadgeTableGUI\getItems().
ilBadge::getParentId | ( | ) |
Definition at line 196 of file class.ilBadge.php.
References $parent_id.
Referenced by create(), and getParentMeta().
ilBadge::getParentMeta | ( | ) |
Definition at line 474 of file class.ilBadge.php.
References ilObject\_lookupTitle(), ilObject\_lookupType(), array, ilObjectDataDeletionLog\get(), and getParentId().
Referenced by ilBadgePersonalTableGUI\getItems().
|
protected |
Definition at line 454 of file class.ilBadge.php.
References array, getConfiguration(), getCriteria(), getDescription(), getImage(), getTitle(), getValid(), and isActive().
Referenced by create(), and update().
ilBadge::getStaticUrl | ( | ) |
Definition at line 523 of file class.ilBadge.php.
References $path, copy(), getImage(), getImagePath(), ilBadgeHandler\getInstance(), and prepareJson().
ilBadge::getTitle | ( | ) |
Definition at line 226 of file class.ilBadge.php.
References $title.
Referenced by ilBadgeProfileGUI\addToBackpackMulti(), copy(), getPropertiesForStorage(), prepareJson(), ilBadgeManagementGUI\setBadgeFormValues(), and ilPersonalProfileGUI\showPublicProfileFields().
ilBadge::getTypeId | ( | ) |
Definition at line 206 of file class.ilBadge.php.
References $type_id.
Referenced by create(), and getTypeInstance().
ilBadge::getTypeInstance | ( | ) |
Definition at line 91 of file class.ilBadge.php.
References ilBadgeHandler\getInstance(), and getTypeId().
ilBadge::getValid | ( | ) |
Definition at line 256 of file class.ilBadge.php.
References $valid.
Referenced by getPropertiesForStorage(), and ilBadgeManagementGUI\setBadgeFormValues().
|
protected |
Definition at line 378 of file class.ilBadge.php.
References setActive(), setConfiguration(), setCriteria(), setDescription(), setId(), setImage(), setParentId(), setTitle(), setTypeId(), and setValid().
Referenced by read().
ilBadge::importImage | ( | $a_name, | |
$a_file | |||
) |
Definition at line 305 of file class.ilBadge.php.
References copy(), getImagePath(), setImage(), and update().
ilBadge::isActive | ( | ) |
Definition at line 216 of file class.ilBadge.php.
References $active.
Referenced by getPropertiesForStorage(), and ilBadgeManagementGUI\setBadgeFormValues().
|
protected |
Definition at line 508 of file class.ilBadge.php.
References getDescription(), ilBadgeHandler\getInstance(), and getTitle().
Referenced by getStaticUrl().
|
protected |
Definition at line 365 of file class.ilBadge.php.
References $ilDB, $row, and importDBRow().
Referenced by __construct().
ilBadge::setActive | ( | $a_value | ) |
Definition at line 211 of file class.ilBadge.php.
Referenced by copy(), and importDBRow().
ilBadge::setConfiguration | ( | array | $a_value = null | ) |
Definition at line 261 of file class.ilBadge.php.
Referenced by importDBRow().
ilBadge::setCriteria | ( | $a_value | ) |
Definition at line 241 of file class.ilBadge.php.
Referenced by importDBRow().
ilBadge::setDescription | ( | $a_value | ) |
Definition at line 231 of file class.ilBadge.php.
Referenced by importDBRow().
|
protected |
Definition at line 181 of file class.ilBadge.php.
Referenced by copy(), create(), and importDBRow().
|
protected |
Definition at line 276 of file class.ilBadge.php.
References image.
Referenced by importDBRow(), importImage(), and uploadImage().
ilBadge::setParentId | ( | $a_id | ) |
Definition at line 191 of file class.ilBadge.php.
Referenced by copy(), and importDBRow().
ilBadge::setTitle | ( | $a_value | ) |
Definition at line 221 of file class.ilBadge.php.
Referenced by copy(), and importDBRow().
ilBadge::setTypeId | ( | $a_id | ) |
Definition at line 201 of file class.ilBadge.php.
Referenced by importDBRow().
ilBadge::setValid | ( | $a_value | ) |
Definition at line 251 of file class.ilBadge.php.
Referenced by importDBRow().
ilBadge::update | ( | ) |
Definition at line 415 of file class.ilBadge.php.
References $ilDB, array, create(), getId(), and getPropertiesForStorage().
Referenced by create(), importImage(), and uploadImage().
ilBadge::uploadImage | ( | array | $a_upload_meta | ) |
array | $a_upload_meta |
ilFileUtilsException |
Definition at line 290 of file class.ilBadge.php.
References $path, getId(), getImagePath(), ilUtil\moveUploadedFile(), setImage(), and update().
|
protected |
Definition at line 17 of file class.ilBadge.php.
Referenced by isActive().
|
protected |
Definition at line 22 of file class.ilBadge.php.
Referenced by getConfiguration().
|
protected |
Definition at line 23 of file class.ilBadge.php.
Referenced by getCriteria().
|
protected |
Definition at line 19 of file class.ilBadge.php.
Referenced by getDescription().
|
protected |
Definition at line 14 of file class.ilBadge.php.
|
protected |
Definition at line 20 of file class.ilBadge.php.
Referenced by getImage().
|
protected |
Definition at line 15 of file class.ilBadge.php.
Referenced by getParentId().
|
protected |
Definition at line 18 of file class.ilBadge.php.
Referenced by getTitle().
|
protected |
Definition at line 16 of file class.ilBadge.php.
Referenced by getTypeId().
|
protected |
Definition at line 21 of file class.ilBadge.php.
Referenced by getValid().