ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 | |
$lng | |
$db | |
$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 41 of file class.ilBadge.php.
ilBadge::copy | ( | $a_new_parent_id | ) |
Definition at line 112 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 388 of file class.ilBadge.php.
References $db, $id, $ilDB, array, getId(), getParentId(), getPropertiesForStorage(), getTypeId(), setId(), and update().
Referenced by copy(), and update().
ilBadge::delete | ( | ) |
Definition at line 425 of file class.ilBadge.php.
References $db, $ilDB, ilBadgeAssignment\deleteByBadgeId(), deleteStaticFiles(), getId(), and getImagePath().
ilBadge::deleteStaticFiles | ( | ) |
Definition at line 532 of file class.ilBadge.php.
References $path, ilUtil\delDir(), and ilBadgeHandler\getInstance().
Referenced by delete().
ilBadge::getConfiguration | ( | ) |
Definition at line 275 of file class.ilBadge.php.
References $config.
Referenced by getPropertiesForStorage(), and ilBadgeManagementGUI\setBadgeFormValues().
ilBadge::getCriteria | ( | ) |
Definition at line 251 of file class.ilBadge.php.
References $criteria.
Referenced by getPropertiesForStorage(), getStaticUrl(), and ilBadgeManagementGUI\setBadgeFormValues().
ilBadge::getDescription | ( | ) |
Definition at line 241 of file class.ilBadge.php.
References $desc.
Referenced by getPropertiesForStorage(), prepareJson(), and ilBadgeManagementGUI\setBadgeFormValues().
|
static |
Definition at line 541 of file class.ilBadge.php.
References $DIC, $lng, and ilBadgeType\getCaption().
Referenced by ilBadgeTableGUI\getItems(), ilObjectBadgeTableGUI\getItems(), ilBadgeUserTableGUI\getItems(), ilBadgeTableGUI\initFilter(), ilObjectBadgeTableGUI\initFilter(), and ilBadgeManagementGUI\listBadges().
|
protected |
Init file system storage.
type | $a_id | |
type | $a_subdir |
Definition at line 336 of file class.ilBadge.php.
References $path.
Referenced by getImagePath().
ilBadge::getId | ( | ) |
Definition at line 191 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 285 of file class.ilBadge.php.
References $image.
Referenced by getImagePath(), getPropertiesForStorage(), getStaticUrl(), and ilBadgeManagementGUI\setBadgeFormValues().
ilBadge::getImagePath | ( | $a_full_path = true | ) |
Definition at line 317 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 52 of file class.ilBadge.php.
References $DIC, $ilDB, $res, $row, and array.
Referenced by ilBadgeHandler\getAvailableManualBadges(), ilBadgeAssignment\getInstancesByParentId(), ilBadgeTableGUI\getItems(), and ilBadgeUserTableGUI\getItems().
|
static |
Definition at line 83 of file class.ilBadge.php.
References $DIC, $ilDB, $res, $row, and array.
Referenced by ilBadgeHandler\triggerEvaluation().
|
static |
Definition at line 133 of file class.ilBadge.php.
References $DIC, $ilDB, $res, $row, and array.
Referenced by ilObjectBadgeTableGUI\getItems().
ilBadge::getParentId | ( | ) |
Definition at line 201 of file class.ilBadge.php.
References $parent_id.
Referenced by create(), and getParentMeta().
ilBadge::getParentMeta | ( | ) |
Definition at line 466 of file class.ilBadge.php.
References ilObject\_lookupTitle(), ilObject\_lookupType(), array, ilObjectDataDeletionLog\get(), and getParentId().
Referenced by ilBadgePersonalTableGUI\getItems().
|
protected |
Definition at line 446 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 511 of file class.ilBadge.php.
References $path, copy(), getCriteria(), getImage(), getImagePath(), ilBadgeHandler\getInstance(), and prepareJson().
ilBadge::getTitle | ( | ) |
Definition at line 231 of file class.ilBadge.php.
References $title.
Referenced by ilBadgeProfileGUI\addToBackpackMulti(), copy(), getPropertiesForStorage(), prepareJson(), ilBadgeManagementGUI\setBadgeFormValues(), and ilPersonalProfileGUI\showPublicProfileFields().
ilBadge::getTypeId | ( | ) |
Definition at line 211 of file class.ilBadge.php.
References $type_id.
Referenced by create(), and getTypeInstance().
ilBadge::getTypeInstance | ( | ) |
Definition at line 103 of file class.ilBadge.php.
References $handler, ilBadgeHandler\getInstance(), and getTypeId().
ilBadge::getValid | ( | ) |
Definition at line 261 of file class.ilBadge.php.
References $valid.
Referenced by getPropertiesForStorage(), and ilBadgeManagementGUI\setBadgeFormValues().
|
protected |
Definition at line 372 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 307 of file class.ilBadge.php.
References copy(), getImagePath(), setImage(), and update().
ilBadge::isActive | ( | ) |
Definition at line 221 of file class.ilBadge.php.
References $active.
Referenced by getPropertiesForStorage(), and ilBadgeManagementGUI\setBadgeFormValues().
|
protected |
Definition at line 496 of file class.ilBadge.php.
References getDescription(), ilBadgeHandler\getInstance(), and getTitle().
Referenced by getStaticUrl().
|
protected |
Definition at line 360 of file class.ilBadge.php.
References $db, $ilDB, $row, and importDBRow().
Referenced by __construct().
ilBadge::setActive | ( | $a_value | ) |
Definition at line 216 of file class.ilBadge.php.
Referenced by copy(), and importDBRow().
ilBadge::setConfiguration | ( | array | $a_value = null | ) |
Definition at line 266 of file class.ilBadge.php.
Referenced by importDBRow().
ilBadge::setCriteria | ( | $a_value | ) |
Definition at line 246 of file class.ilBadge.php.
Referenced by importDBRow().
ilBadge::setDescription | ( | $a_value | ) |
Definition at line 236 of file class.ilBadge.php.
Referenced by importDBRow().
|
protected |
Definition at line 186 of file class.ilBadge.php.
Referenced by copy(), create(), and importDBRow().
|
protected |
Definition at line 280 of file class.ilBadge.php.
References image.
Referenced by importDBRow(), importImage(), and uploadImage().
ilBadge::setParentId | ( | $a_id | ) |
Definition at line 196 of file class.ilBadge.php.
Referenced by copy(), and importDBRow().
ilBadge::setTitle | ( | $a_value | ) |
Definition at line 226 of file class.ilBadge.php.
Referenced by copy(), and importDBRow().
ilBadge::setTypeId | ( | $a_id | ) |
Definition at line 206 of file class.ilBadge.php.
Referenced by importDBRow().
ilBadge::setValid | ( | $a_value | ) |
Definition at line 256 of file class.ilBadge.php.
Referenced by importDBRow().
ilBadge::update | ( | ) |
Definition at line 408 of file class.ilBadge.php.
References $db, $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 294 of file class.ilBadge.php.
References $path, getId(), getImagePath(), setImage(), and update().
|
protected |
Definition at line 27 of file class.ilBadge.php.
Referenced by isActive().
|
protected |
Definition at line 32 of file class.ilBadge.php.
Referenced by getConfiguration().
|
protected |
Definition at line 33 of file class.ilBadge.php.
Referenced by getCriteria().
|
protected |
|
protected |
Definition at line 29 of file class.ilBadge.php.
Referenced by getDescription().
|
protected |
Definition at line 24 of file class.ilBadge.php.
|
protected |
Definition at line 30 of file class.ilBadge.php.
Referenced by getImage().
|
protected |
Definition at line 17 of file class.ilBadge.php.
Referenced by copy(), and getExtendedTypeCaption().
|
protected |
Definition at line 25 of file class.ilBadge.php.
Referenced by getParentId().
|
protected |
Definition at line 28 of file class.ilBadge.php.
Referenced by getTitle().
|
protected |
Definition at line 26 of file class.ilBadge.php.
Referenced by getTypeId().
|
protected |
Definition at line 31 of file class.ilBadge.php.
Referenced by getValid().