ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_id=0, bool $a_call_by_reference=false) | |
setUpToDate (bool $a_up_to_date=true) | |
Set style up to date (false + update will trigger css generation next time) More... | |
getUpToDate () | |
setScope (int $a_scope) | |
getScope () | |
create (int $a_from_style=0, bool $a_import_mode=false) | |
Create a new style. More... | |
characteristicExists (string $a_char, string $a_style_type) | |
Check whether characteristic exists. More... | |
addCharacteristic (string $a_type, string $a_char, bool $a_hidden=false, int $order_nr=0, bool $outdated=false) | |
getCharacteristics (string $a_type="", bool $a_no_hidden=false, bool $a_include_core=true) | |
Get characteristics. More... | |
setCharacteristics (array $a_chars) | |
saveHideStatus (string $a_type, string $a_char, bool $a_hide) | |
Save characteristic hidden status. More... | |
getHideStatus (string $a_type, string $a_char) | |
Get characteristic hidden status. More... | |
ilClone () | |
clone style sheet (note: styles have no ref ids and return an object id) More... | |
copyImagesToDir (string $a_target) | |
Copy images to directory. More... | |
addParameter (string $a_tag, string $a_par, string $a_type, int $a_mq_id=0, bool $a_custom=false) | |
write style parameter to db More... | |
createImagesDirectory () | |
Create images directory <data_dir>/sty/sty_<id>/images. More... | |
getImagesDirectory () | |
getThumbnailsDirectory () | |
deleteParameter (int $a_id) | |
delete style parameter More... | |
deleteCustomStylePars (string $a_tag, string $a_class, string $a_type, int $a_mq_id=0) | |
Delete style parameter by tag/class/parameter. More... | |
deleteStyleParOfChar (string $a_type, string $a_class) | |
Delete style parameters of characteristic. More... | |
delete () | |
read () | |
read style properties More... | |
writeCSSFile (string $a_target_file="", string $a_image_dir="") | |
write css file to webspace directory More... | |
getParametersOfClass (string $a_type, string $a_class, int $a_mq_id=0) | |
update () | |
updateStyleParameter (int $a_id, string $a_value) | |
update style parameter per id More... | |
getStyle () | |
setStyle (array $a_style) | |
handleXmlString (string $a_str) | |
getXML () | |
get xml representation of style object todo: add mq_id More... | |
createExportDirectory () | |
cleanExportDirectory () | |
createExportSubDirectory () | |
setExportSubDir (string $a_dir) | |
Set local directory, that will be included within the zip file. More... | |
getExportSubDir () | |
The local directory, that will be included within the zip file. More... | |
export () | |
exportXML (string $a_dir) | |
export style xml file to directory More... | |
createImportDirectory () | |
import ($a_file) | |
createFromXMLFile (string $a_file, bool $a_skip_parent_create=false) | |
create style from xml file todo: add mq_id and custom More... | |
getStyleParameterGroups () | |
Get grouped parameter. More... | |
determineTemplateStyleClassType (string $t, string $k) | |
do_3_10_Migration () | |
Migrates 3.10 style to 3.11 style. More... | |
do_3_10_CharMigration (int $a_id=0) | |
This is more or less a copy of Services/Migration/DBUpdate_1385/classes ilStyleMigration->addMissingStyleCharacteristics() Any changes here may also be interesting there. More... | |
do_3_9_Migration (int $a_id) | |
Migrate old 3.9 styles. More... | |
getColors () | |
Get colors of style. More... | |
removeColor (string $a_name) | |
Remove a color. More... | |
getColorCodeForName (string $a_name) | |
getMediaQueries () | |
addMediaQuery (string $a_mquery, int $order_nr=0) | |
getMaxMQueryOrderNr () | |
Get maximum media query order nr. More... | |
updateMediaQuery (int $a_id, string $a_mquery) | |
getMediaQueryForId (int $a_id) | |
Get media query for id. More... | |
deleteMediaQuery (int $a_id) | |
Delete media query. More... | |
saveMediaQueryOrder (array $a_order_nr=null) | |
Save media query order. More... | |
getTemplates (string $a_type) | |
Get table templates of style. More... | |
getTemplateClasses (int $a_tid) | |
Get template classes. More... | |
addTemplate (string $a_type, string $a_name, array $a_classes) | |
Add table template. More... | |
updateTemplate (int $a_t_id, string $a_name, array $a_classes) | |
Update table template. More... | |
addTemplateClass (int $a_t_id, string $a_type, string $a_class) | |
templateExists (string $a_template_name) | |
Check whether template exists. More... | |
getTemplate (int $a_t_id) | |
lookupTemplateName (int $a_t_id) | |
Lookup table template name for template ID. More... | |
getTemplateXML () | |
Get table template xml. More... | |
writeTemplatePreview (int $a_t_id, string $a_preview_html) | |
Write table template preview. More... | |
lookupTemplatePreview (int $a_t_id) | |
Lookup table template preview. More... | |
removeTemplate (int $a_t_id) | |
Remove table template. More... | |
writeStyleSetting (string $a_name, string $a_value) | |
lookupStyleSetting (string $a_name) | |
Lookup style setting. More... | |
![]() | |
__construct (int $id=0, bool $reference=true) | |
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 $desc) | |
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) | |
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 | getBasicZipPath () |
static | _writeUpToDate (int $a_id, bool $a_up_to_date) |
static | writeOwner ($obj_id, $style_id) |
static | _lookupUpToDate (int $a_id) |
static | _writeStandard (int $a_id, bool $a_std) |
Write standard flag. More... | |
static | _writeScope (int $a_id, int $a_scope) |
static | _lookupStandard (int $a_id) |
Lookup standard flag. More... | |
static | _writeActive (int $a_id, bool $a_active) |
static | _lookupActive (int $a_id) |
Lookup active flag. More... | |
static | _getStandardStyles (bool $a_exclude_default_style=false, bool $a_include_deactivated=false, int $a_scope=0) |
Get standard styles. More... | |
static | _getClonableContentStyles () |
Get all clonable styles (active standard styles and individual learning module styles with write permission). More... | |
static | _getBasicStyleDom () |
static | getBasicImageDir () |
static | _createImagesDirectory (int $a_style_id) |
Create images directory <data_dir>/sty/sty_<id>/images. More... | |
static | _getImagesDirectory (int $a_style_id) |
static | getEffectiveContentStyleId (int $a_style_id) |
Get effective Style Id. More... | |
static | getContentStylePath (int $a_style_id, bool $add_random=true, bool $add_token=true) |
get content style path static (to avoid full reading) More... | |
static | getContentPrintStyle () |
static | getSyntaxStylePath () |
static | getPlaceHolderStylePath () |
static | _getStyleParameterInputType (string $par) |
static | _getStyleParameterSubPar (string $par) |
static | _getStyleParameters (string $a_tag="") |
static | _getFilteredGroups () |
static | _getStyleParameterNumericUnits (bool $a_no_percentage=false) |
static | _getStyleParameterValues (string $par) |
static | _getStyleSuperTypes () |
static | _isExpandable (string $a_type) |
static | _isHideable (string $a_type) |
static | _getStyleSuperTypeForType (string $a_type) |
static | _getCoreStyles () |
static | isCoreStyle (string $a_type, string $a_class) |
static | _getTemplateClassTypes (string $a_template_type="") |
Get template class types. More... | |
static | _getPseudoClasses (string $tag) |
static | _determineTag (string $a_type) |
static | getAvailableParameters () |
static | _addMissingStyleClassesToStyle (int $a_id) |
Add missing style classes to all styles. More... | |
static | _addMissingStyleClassesToAllStyles (?array $a_styles=null) |
Add missing style classes to all styles todo: add mq_id and custom handling. More... | |
static | _getColorFlavor (string $a_rgb, int $a_i) |
Get color flavor. More... | |
static | _explodeRGB (string $a_rgb, bool $as_dec=false) |
Explode an RGB string into an array. More... | |
static | _RGBToHLS (array $a_rgb) |
RGB to HLS (both arrays, 0..255) More... | |
static | _HLSToRGB (array $a_hls) |
HLS to RGB (both arrays, 0..255) More... | |
static | _lookupTemplateName (int $a_t_id) |
Lookup table template name for template ID. More... | |
static | _lookupTemplateIdByName (int $a_style_id, string $a_name) |
Lookup table template preview. More... | |
static | writeStyleUsage (int $a_obj_id, int $a_style_id) |
Write style usage. More... | |
static | lookupObjectStyle (int $a_obj_id) |
Lookup object style. More... | |
static | lookupObjectForStyle (int $a_style_id) |
Lookup objects for style. More... | |
![]() | |
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 | _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) |
Data Fields | |
array | $style = [] |
![]() | |
const | TITLE_LENGTH = 255 |
const | DESC_LENGTH = 128 |
const | LONG_DESC_LENGTH = 4000 |
const | TABLE_OBJECT_DATA = "object_data" |
array | $objectList |
string | $untranslatedTitle |
Static Public Attributes | |
static array | $num_unit = array("px", "em", "ex", "%", "pt", "pc", "in", "mm", "cm") |
static array | $num_unit_no_perc = array("px", "em", "ex", "pt", "pc", "in", "mm", "cm") |
static array | $parameter |
static array | $filtered_groups |
static array | $style_super_types |
static array | $expandable_types |
static array | $hideable_types |
static array | $assigned_tags |
static array | $pseudo_classes |
static array | $core_styles |
static array | $templates |
Static Protected Member Functions | |
static | hexdec (string $hex) |
Protected Attributes | |
ILIAS Style Content InternalRepoService | $repo |
bool | $is_3_10_skin = false |
string | $export_sub_dir = "" |
array | $chars_by_type = [] |
array | $end_styles = [] |
array | $chars = [] |
bool | $up_to_date = false |
array | $hidden_chars = [] |
array | $style_class = [] |
int | $scope = 0 |
![]() | |
ilLogger | $obj_log |
ILIAS | $ilias |
ilObjectDefinition | $obj_definition |
ilDBInterface | $db |
ilLogger | $log |
ilErrorHandling | $error |
ilTree | $tree |
ilAppEventHandler | $app_event_handler |
ilRbacAdmin | $rbac_admin |
ilRbacReview | $rbac_review |
ilObjUser | $user |
ilLanguage | $lng |
int | $id |
bool | $referenced |
bool | $call_by_reference |
int | $max_title = self::TITLE_LENGTH |
int | $max_desc = self::DESC_LENGTH |
bool | $add_dots = true |
int | $ref_id = null |
string | $type = "" |
string | $title = "" |
bool | $offline = false |
string | $desc = "" |
string | $long_desc = "" |
int | $owner = 0 |
string | $create_date = "" |
string | $last_update = "" |
string | $import_id = "" |
bool | $register = false |
Static Protected Attributes | |
static string | $basic_style_file = "./libs/ilias/Style/basic_style/style.xml" |
static string | $basic_style_zip = "./libs/ilias/Style/basic_style/style.zip" |
static string | $basic_style_image_dir = "./libs/ilias/Style/basic_style/images" |
static DOMDocument | $basic_style_dom = null |
Additional Inherited Members | |
![]() | |
doMDUpdateListener (string $a_element) | |
beforeMDUpdateListener (string $a_element) | |
doCreateMetaData () | |
beforeCreateMetaData () | |
doUpdateMetaData () | |
beforeUpdateMetaData () | |
doDeleteMetaData () | |
beforeDeleteMetaData () | |
handleAutoRating () | |
hasAutoRating () | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilObjStyleSheet
Definition at line 26 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::__construct | ( | int | $a_id = 0 , |
bool | $a_call_by_reference = false |
||
) |
Definition at line 505 of file class.ilObjStyleSheet.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\lng().
|
static |
Add missing style classes to all styles todo: add mq_id and custom handling.
Definition at line 2170 of file class.ilObjStyleSheet.php.
References $DIC, ilObject\$id, $ilDB, _createImagesDirectory(), _getBasicStyleDom(), _getCoreStyles(), _getImagesDirectory(), and ilObject\_getObjectsDataForType().
Referenced by _addMissingStyleClassesToStyle().
|
static |
Add missing style classes to all styles.
Definition at line 2159 of file class.ilObjStyleSheet.php.
References _addMissingStyleClassesToAllStyles().
Referenced by import(), and ilObjStyleSheetGUI\saveObject().
|
static |
Create images directory <data_dir>/sty/sty_<id>/images.
Definition at line 1102 of file class.ilObjStyleSheet.php.
References $DIC, $ilErr, ilFileUtils\getWebspaceDir(), and ilFileUtils\makeDir().
Referenced by _addMissingStyleClassesToAllStyles(), create(), and createImagesDirectory().
|
static |
Definition at line 2141 of file class.ilObjStyleSheet.php.
Referenced by _getCoreStyles(), ILIAS\Style\Content\CharacteristicManager\copyCharacteristicFromSource(), ILIAS\Style\Content\CharacteristicManager\deleteCharacteristic(), ILIAS\Style\Content\CharacteristicTableGUI\fillRow(), getXML(), and ilStyleCharacteristicGUI\saveCharacteristic().
|
static |
Explode an RGB string into an array.
Definition at line 2592 of file class.ilObjStyleSheet.php.
Referenced by _getColorFlavor().
|
static |
Definition at line 759 of file class.ilObjStyleSheet.php.
Referenced by _addMissingStyleClassesToAllStyles().
|
static |
Get all clonable styles (active standard styles and individual learning module styles with write permission).
Definition at line 717 of file class.ilObjStyleSheet.php.
References $DIC, ilObject\$id, $ilDB, ilObject\$ref_id, ilObject\_getAllReferences(), ilObjContentObject\_lookupContObjIdByStyleId(), ilObject\_lookupTitle(), and ILIAS\Repository\int().
Referenced by ilObjStyleSheetGUI\getCloneForm().
|
static |
Get color flavor.
Definition at line 2566 of file class.ilObjStyleSheet.php.
References _explodeRGB(), _HLSToRGB(), and _RGBToHLS().
Referenced by ilStyleColorTableGUI\fillRow(), and getColorCodeForName().
|
static |
Definition at line 2091 of file class.ilObjStyleSheet.php.
References _determineTag().
Referenced by ILIAS\Style\Content\CharacteristicTableGUI\__construct(), _addMissingStyleClassesToAllStyles(), ILIAS\Style\Content\CharacteristicManager\deleteCharacteristic(), ilStyleCharacteristicGUI\deleteCharacteristicConfirmation(), and ilStyleCharacteristicGUI\deleteCoreCharMessage().
|
static |
Definition at line 2042 of file class.ilObjStyleSheet.php.
Referenced by ilStyleCharacteristicGUI\getValues(), and ilStyleCharacteristicGUI\initTagStyleForm().
|
static |
Definition at line 1151 of file class.ilObjStyleSheet.php.
References ilFileUtils\getWebspaceDir().
Referenced by _addMissingStyleClassesToAllStyles(), getImagesDirectory(), ilStyleDataSet\getXmlRecord(), and ilStyleDataSet\importRecord().
|
static |
Definition at line 2128 of file class.ilObjStyleSheet.php.
|
static |
Get standard styles.
Definition at line 670 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, $ilSetting, $path, $res, ilObject\$tree, ilObject\_lookupTitle(), ilTree\getPathId(), ILIAS\Repository\int(), and ilTree\isInTree().
Referenced by ILIAS\Style\Content\Object\ObjectManager\getSelectableStyles().
|
static |
Definition at line 2013 of file class.ilObjStyleSheet.php.
Referenced by ilStyleCharacteristicGUI\initTagStyleForm().
|
static |
Definition at line 2047 of file class.ilObjStyleSheet.php.
Referenced by ilFontSizeInputGUI\insert(), ilNumericStyleValueInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilTRBLBorderWidthInputGUI\insert(), and ilTRBLNumericStyleValueInputGUI\insert().
|
static |
Definition at line 2025 of file class.ilObjStyleSheet.php.
Referenced by ilStyleCharacteristicGUI\getValues(), and ilStyleCharacteristicGUI\saveTagStyle().
|
static |
Definition at line 2019 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 2056 of file class.ilObjStyleSheet.php.
Referenced by ilFontSizeInputGUI\insert(), ilTRBLBorderStyleInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), and ilTRBLBorderWidthInputGUI\insert().
|
static |
Definition at line 2077 of file class.ilObjStyleSheet.php.
Referenced by ilObjStyleSheetGUI\__construct().
|
static |
Definition at line 2062 of file class.ilObjStyleSheet.php.
Referenced by ILIAS\Style\Content\CharacteristicTableGUI\__construct(), ILIAS\Style\Content\CharacteristicDBRepo\getBySuperType(), ilStyleCharacteristicGUI\initCharacteristicForm(), ilStyleCharacteristicGUI\listCharacteristics(), and ilStyleCharacteristicGUI\setListSubTabs().
|
static |
Get template class types.
Definition at line 2118 of file class.ilObjStyleSheet.php.
Referenced by create(), ilObjStyleSheetGUI\getTemplateFormValues(), getTemplateXML(), getXML(), ilObjStyleSheetGUI\initTemplateForm(), ilObjStyleSheetGUI\saveTemplateObject(), ilObjStyleSheetGUI\setTemplatesSubTabs(), and ilObjStyleSheetGUI\updateTemplateObject().
|
static |
HLS to RGB (both arrays, 0..255)
Definition at line 2662 of file class.ilObjStyleSheet.php.
Referenced by _getColorFlavor().
|
static |
Definition at line 2067 of file class.ilObjStyleSheet.php.
Referenced by ILIAS\Style\Content\CharacteristicTableGUI\__construct(), ilStyleCharacteristicGUI\initCharacteristicForm(), and ilStyleCharacteristicGUI\listCharacteristics().
|
static |
Definition at line 2072 of file class.ilObjStyleSheet.php.
Referenced by ILIAS\Style\Content\CharacteristicTableGUI\__construct(), and ILIAS\Style\Content\CharacteristicTableGUI\fillRow().
|
static |
Lookup active flag.
Definition at line 652 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, and $res.
Referenced by ilContentStyleSettingsGUI\edit().
|
static |
Lookup standard flag.
Definition at line 623 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, and $res.
Referenced by ILIAS\Style\Content\Object\ObjectManager\cloneTo(), and ILIAS\Style\Content\Object\ObjectManager\inheritFromParent().
|
static |
Lookup table template preview.
Definition at line 3143 of file class.ilObjStyleSheet.php.
Referenced by ilPCTabsGUI\getFormValues(), and ilPCTableGUI\getPropertiesFormValues().
|
static |
Lookup table template name for template ID.
Definition at line 3040 of file class.ilObjStyleSheet.php.
Referenced by ilObjStyleSheetGUI\updateTemplateObject().
|
static |
Definition at line 577 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, and $res.
Referenced by getContentStylePath().
|
static |
RGB to HLS (both arrays, 0..255)
Definition at line 2620 of file class.ilObjStyleSheet.php.
References Vendor\Package\$b.
Referenced by _getColorFlavor().
|
static |
Definition at line 637 of file class.ilObjStyleSheet.php.
Referenced by ilContentStyleSettingsGUI\saveActiveStyles().
|
static |
Definition at line 608 of file class.ilObjStyleSheet.php.
Referenced by ilContentStyleSettingsGUI\saveScope().
|
static |
Write standard flag.
Definition at line 594 of file class.ilObjStyleSheet.php.
Referenced by ilObjStyleSheetGUI\copyStyleObject(), ilObjStyleSheetGUI\importStyleObject(), and ilObjStyleSheetGUI\saveObject().
|
static |
Definition at line 552 of file class.ilObjStyleSheet.php.
Referenced by ILIAS\Style\Content\CharacteristicManager\addCharacteristic(), addCharacteristic(), ILIAS\Style\Content\CharacteristicManager\deleteCharacteristic(), ilStyleCharacteristicGUI\pasteCharacteristics(), ILIAS\Style\Content\ColorManager\updateColor(), and writeCSSFile().
ilObjStyleSheet::addCharacteristic | ( | string | $a_type, |
string | $a_char, | ||
bool | $a_hidden = false , |
||
int | $order_nr = 0 , |
||
bool | $outdated = false |
||
) |
Definition at line 918 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, _writeUpToDate(), ilObject\getId(), and setUpToDate().
ilObjStyleSheet::addMediaQuery | ( | string | $a_mquery, |
int | $order_nr = 0 |
||
) |
Definition at line 2749 of file class.ilObjStyleSheet.php.
References ilObject\$db, ilObject\$id, $ilDB, ilObject\getId(), and getMaxMQueryOrderNr().
Referenced by create().
ilObjStyleSheet::addParameter | ( | string | $a_tag, |
string | $a_par, | ||
string | $a_type, | ||
int | $a_mq_id = 0 , |
||
bool | $a_custom = false |
||
) |
write style parameter to db
todo check usages add mq_id
string | $a_tag | tag name (tag.class, e.g. "div.Mnemonic") |
string | $a_par | tag parameter (e.g. "margin-left") |
string | $a_type | style type (e.g. "section") |
Definition at line 1059 of file class.ilObjStyleSheet.php.
References ilObject\$db, ilObject\$id, $ilDB, getAvailableParameters(), ilObject\getId(), read(), and writeCSSFile().
ilObjStyleSheet::addTemplate | ( | string | $a_type, |
string | $a_name, | ||
array | $a_classes | ||
) |
Add table template.
Definition at line 2912 of file class.ilObjStyleSheet.php.
References $c, ilObject\$db, $ilDB, ilObjStyleSheetGUI\_getTemplatePreview(), ilObject\getId(), and writeTemplatePreview().
Referenced by create().
ilObjStyleSheet::addTemplateClass | ( | int | $a_t_id, |
string | $a_type, | ||
string | $a_class | ||
) |
ilObjStyleSheet::characteristicExists | ( | string | $a_char, |
string | $a_style_type | ||
) |
Check whether characteristic exists.
Definition at line 901 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and ilObject\getId().
ilObjStyleSheet::cleanExportDirectory | ( | ) |
Definition at line 1734 of file class.ilObjStyleSheet.php.
References ilFileUtils\delDir(), ilFileUtils\getDataDir(), and ilObject\getId().
Referenced by export().
ilObjStyleSheet::copyImagesToDir | ( | string | $a_target | ) |
Copy images to directory.
Definition at line 1045 of file class.ilObjStyleSheet.php.
References getImagesDirectory(), and ilFileUtils\rCopy().
ilObjStyleSheet::create | ( | int | $a_from_style = 0 , |
bool | $a_import_mode = false |
||
) |
Create a new style.
Definition at line 778 of file class.ilObjStyleSheet.php.
References $c, ilObject\$db, $DIC, ilObject\$id, $ilDB, $service, _createImagesDirectory(), _getTemplateClassTypes(), addMediaQuery(), addTemplate(), createFromXMLFile(), createImagesDirectory(), ilObject\getId(), getImagesDirectory(), getScope(), ilFileUtils\rCopy(), read(), and writeCSSFile().
ilObjStyleSheet::createExportDirectory | ( | ) |
Definition at line 1707 of file class.ilObjStyleSheet.php.
References ilFileUtils\getDataDir(), ilObject\getId(), and ilFileUtils\makeDir().
Referenced by createExportSubDirectory(), and export().
ilObjStyleSheet::createExportSubDirectory | ( | ) |
Definition at line 1746 of file class.ilObjStyleSheet.php.
References createExportDirectory(), getExportSubDir(), and ilFileUtils\makeDir().
Referenced by export().
ilObjStyleSheet::createFromXMLFile | ( | string | $a_file, |
bool | $a_skip_parent_create = false |
||
) |
create style from xml file todo: add mq_id and custom
Definition at line 1924 of file class.ilObjStyleSheet.php.
References ilObject\$db, ilObject\$id, $ilDB, do_3_10_Migration(), ilObject\getId(), read(), ilStr\subStr(), and update().
Referenced by create(), and import().
ilObjStyleSheet::createImagesDirectory | ( | ) |
Create images directory <data_dir>/sty/sty_<id>/images.
Definition at line 1093 of file class.ilObjStyleSheet.php.
References _createImagesDirectory(), and ilObject\getId().
Referenced by create(), and import().
ilObjStyleSheet::createImportDirectory | ( | ) |
Definition at line 1834 of file class.ilObjStyleSheet.php.
References ilFileUtils\getDataDir(), ilObject\getId(), and ilFileUtils\makeDir().
Referenced by import().
ilObjStyleSheet::delete | ( | ) |
Definition at line 1220 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, ilObjContentObject\_deleteStyleAssignments(), ilObject\getId(), and ilFileUtils\getWebspaceDir().
ilObjStyleSheet::deleteCustomStylePars | ( | string | $a_tag, |
string | $a_class, | ||
string | $a_type, | ||
int | $a_mq_id = 0 |
||
) |
Delete style parameter by tag/class/parameter.
string | $a_tag | tag |
string | $a_class | class |
string | $a_type | type |
int | $a_mq_id | media query id |
Definition at line 1183 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and ilObject\getId().
ilObjStyleSheet::deleteMediaQuery | ( | int | $a_id | ) |
Delete media query.
int | $a_id | media query id |
Definition at line 2823 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and saveMediaQueryOrder().
ilObjStyleSheet::deleteParameter | ( | int | $a_id | ) |
delete style parameter
Definition at line 1166 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
ilObjStyleSheet::deleteStyleParOfChar | ( | string | $a_type, |
string | $a_class | ||
) |
Delete style parameters of characteristic.
Definition at line 1205 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and ilObject\getId().
ilObjStyleSheet::determineTemplateStyleClassType | ( | string | $t, |
string | $k | ||
) |
Definition at line 2134 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::do_3_10_CharMigration | ( | int | $a_id = 0 | ) |
This is more or less a copy of Services/Migration/DBUpdate_1385/classes ilStyleMigration->addMissingStyleCharacteristics() Any changes here may also be interesting there.
Definition at line 2322 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
Referenced by do_3_10_Migration().
ilObjStyleSheet::do_3_10_Migration | ( | ) |
Migrates 3.10 style to 3.11 style.
Definition at line 2264 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, do_3_10_CharMigration(), do_3_9_Migration(), and ilObject\getId().
Referenced by createFromXMLFile().
ilObjStyleSheet::do_3_9_Migration | ( | int | $a_id | ) |
Migrate old 3.9 styles.
Definition at line 2458 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
Referenced by do_3_10_Migration().
ilObjStyleSheet::export | ( | ) |
Definition at line 1789 of file class.ilObjStyleSheet.php.
References cleanExportDirectory(), createExportDirectory(), createExportSubDirectory(), exportXML(), getExportSubDir(), getImagesDirectory(), ilFileUtils\rCopy(), and ilFileUtils\zip().
ilObjStyleSheet::exportXML | ( | string | $a_dir | ) |
export style xml file to directory
Definition at line 1814 of file class.ilObjStyleSheet.php.
References getXML().
Referenced by export().
|
static |
Definition at line 2146 of file class.ilObjStyleSheet.php.
Referenced by addParameter().
|
static |
Definition at line 769 of file class.ilObjStyleSheet.php.
Referenced by ilCOPageHTMLExport\exportStyles().
|
static |
Definition at line 524 of file class.ilObjStyleSheet.php.
Referenced by ilObjStyleSheetGUI\saveObject().
ilObjStyleSheet::getCharacteristics | ( | string | $a_type = "" , |
bool | $a_no_hidden = false , |
||
bool | $a_include_core = true |
||
) |
Get characteristics.
Definition at line 944 of file class.ilObjStyleSheet.php.
Referenced by ilPCSectionGUI\_getCharacteristics(), and ilPCMediaObjectGUI\_getCharacteristics().
ilObjStyleSheet::getColorCodeForName | ( | string | $a_name | ) |
Definition at line 2536 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and _getColorFlavor().
Referenced by writeCSSFile().
ilObjStyleSheet::getColors | ( | ) |
Get colors of style.
Definition at line 2505 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
Referenced by getXML().
|
static |
Definition at line 1593 of file class.ilObjStyleSheet.php.
Referenced by ilCOPageHTMLExport\exportStyles(), and ILIAS\Export\PrintProcessGUI\renderPrintView().
|
static |
get content style path static (to avoid full reading)
Definition at line 1548 of file class.ilObjStyleSheet.php.
References $DIC, $ilSetting, $path, ilObject\_exists(), _lookupUpToDate(), ilFileUtils\getWebspaceDir(), ILIAS\Repository\int(), and ilWACSignedPath\signFile().
Referenced by ilDclDetailedViewDefinitionGUI\__construct(), ilImprintGUI\__construct(), ilPageLayoutGUI\__construct(), ilPortfolioPageGUI\__construct(), ilBlogPostingGUI\__construct(), ilDclDetailedViewGUI\__construct(), ilAssQuestionPreviewGUI\__construct(), ILIAS\Style\Content\GUIService\addCss(), ilPageObjectGUI\displayMedia(), assOrderingQuestionGUI\editNesting(), ilLOEditorGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilAssQuestionHintsGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilCOPageHTMLExport\exportStyles(), ilAssQuestionPageCommandForwarder\forward(), ilAuthLoginPageEditorGUI\forwardToPageObject(), ILIAS\COPage\Editor\Components\Page\PageQueryActionHandler\getConfig(), ILIAS\Portfolio\Export\PortfolioHtmlExport\getInitialisedTemplate(), ILIAS\Blog\Export\BlogHtmlExport\getInitialisedTemplate(), ilCOPageHTMLExport\getPreparedMainTemplate(), ilObjQuestionPoolGUI\getQueryParamInt(), ilObjStyleSheetGUI\includeCSS(), ilCOPageHTMLExport\initResourceTemplate(), ILIAS\Glossary\Export\GlossaryHtmlExport\initScreen(), ilAssQuestionPreviewGUI\initStyleSheets(), ilGlossaryPresentationGUI\media(), ilTestServiceGUI\outCorrectSolution(), ilTestPlayerAbstractGUI\outCorrectSolution(), ilStyleCharacteristicGUI\outputTagStyleEditScreen(), ilTestPlayerAbstractGUI\populateContentStyleBlock(), ilObjStyleSheetGUI\propertiesObject(), ILIAS\Export\PrintProcessGUI\renderPrintView(), ilPCParagraphGUI\setStyle(), ilStartUpGUI\showLoginPage(), ilObjMediaPoolGUI\showMedia(), ilObjMediaPoolGUI\showPage(), and ilTestCorrectionsGUI\showSolution().
|
static |
Get effective Style Id.
int | style id that may be set in object |
string | object type |
Definition at line 1508 of file class.ilObjStyleSheet.php.
References $DIC, $ilSetting, ilObject\_lookupType(), and ILIAS\Repository\int().
ilObjStyleSheet::getExportSubDir | ( | ) |
The local directory, that will be included within the zip file.
Definition at line 1774 of file class.ilObjStyleSheet.php.
References $export_sub_dir, and ilObject\getId().
Referenced by createExportSubDirectory(), and export().
ilObjStyleSheet::getHideStatus | ( | string | $a_type, |
string | $a_char | ||
) |
Get characteristic hidden status.
Definition at line 1002 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
ilObjStyleSheet::getImagesDirectory | ( | ) |
Definition at line 1146 of file class.ilObjStyleSheet.php.
References _getImagesDirectory(), and ilObject\getId().
Referenced by copyImagesToDir(), create(), export(), getThumbnailsDirectory(), and import().
ilObjStyleSheet::getMaxMQueryOrderNr | ( | ) |
Get maximum media query order nr.
Definition at line 2774 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
Referenced by addMediaQuery().
ilObjStyleSheet::getMediaQueries | ( | ) |
Definition at line 2733 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
Referenced by saveMediaQueryOrder(), and writeCSSFile().
ilObjStyleSheet::getMediaQueryForId | ( | int | $a_id | ) |
Get media query for id.
Definition at line 2806 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
ilObjStyleSheet::getParametersOfClass | ( | string | $a_type, |
string | $a_class, | ||
int | $a_mq_id = 0 |
||
) |
Definition at line 1533 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 1603 of file class.ilObjStyleSheet.php.
Referenced by ilPageLayoutGUI\__construct(), ilPortfolioPageGUI\__construct(), ilPCPlaceHolder\getCssFiles(), ilPortfolioTemplatePageGUI\showPage(), and ilPageObjectGUI\showPage().
ilObjStyleSheet::getScope | ( | ) |
Definition at line 547 of file class.ilObjStyleSheet.php.
References $scope.
Referenced by create(), and update().
ilObjStyleSheet::getStyle | ( | ) |
Definition at line 1639 of file class.ilObjStyleSheet.php.
References $style.
Referenced by writeCSSFile().
ilObjStyleSheet::getStyleParameterGroups | ( | ) |
Get grouped parameter.
Definition at line 2003 of file class.ilObjStyleSheet.php.
References $parameter.
|
static |
Definition at line 1598 of file class.ilObjStyleSheet.php.
Referenced by ilDclDetailedViewDefinitionGUI\__construct(), ilImprintGUI\__construct(), ilPageLayoutGUI\__construct(), ilWikiPageGUI\__construct(), ilPortfolioPageGUI\__construct(), ilBlogPostingGUI\__construct(), ilDclDetailedViewGUI\__construct(), ilAssQuestionPreviewGUI\__construct(), ilGlossaryTermGUI\confirmDefinitionDeletion(), ilObjGlossaryGUI\confirmDefinitionDeletion(), assOrderingQuestionGUI\editNesting(), ilTermDefinitionEditorGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilCOPageHTMLExport\exportStyles(), ilAssQuestionPageCommandForwarder\forward(), ilAuthLoginPageEditorGUI\forwardToPageObject(), ilContainerGUI\forwardToPageObject(), ilContainerGUI\getContainerPageHTML(), ilContainerStartObjectsContentGUI\getPageHTML(), ilCOPageHTMLExport\getPreparedMainTemplate(), ilObjQuestionPoolGUI\getQueryParamInt(), ilObjForumGUI\getSafePostCommands(), ilCOPageHTMLExport\initResourceTemplate(), ilAssQuestionPreviewGUI\initStyleSheets(), ilObjContentPageGUI\initStyleSheets(), ilObjForumGUI\initStyleSheets(), ilGlossaryTermGUI\listDefinitions(), ilLMEditorGUI\main_header(), ilTestServiceGUI\outCorrectSolution(), ilTestPlayerAbstractGUI\outCorrectSolution(), ilTestPlayerAbstractGUI\populateSyntaxStyleBlock(), ilContentPageKioskModeView\renderContentStyle(), ILIAS\Export\PrintProcessGUI\renderPrintView(), ilGlossaryPresentationGUI\setContentStyles(), ilLMPresentationGUI\setContentStyles(), ilObjWikiGUI\setContentStyleSheet(), ilObjContentPageGUI\setTabs(), ilStartUpGUI\showLoginPage(), ilObjMediaPoolGUI\showPage(), and ilTestCorrectionsGUI\showSolution().
ilObjStyleSheet::getTemplate | ( | int | $a_t_id | ) |
int | $a_t_id | template id |
Definition at line 3012 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and getTemplateClasses().
Referenced by ilObjStyleSheetGUI\_getTemplatePreview().
ilObjStyleSheet::getTemplateClasses | ( | int | $a_tid | ) |
Get template classes.
Definition at line 2892 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and ILIAS\LTI\ToolProvider\$key.
Referenced by getTemplate(), and getTemplates().
ilObjStyleSheet::getTemplates | ( | string | $a_type | ) |
Get table templates of style.
Definition at line 2870 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, $templates, and getTemplateClasses().
Referenced by ilPageContentGUI\getTemplateOptions(), getTemplateXML(), and getXML().
ilObjStyleSheet::getTemplateXML | ( | ) |
Get table template xml.
Definition at line 3059 of file class.ilObjStyleSheet.php.
References $c, ilObject\$db, $ilDB, ilObject\$type, _getTemplateClassTypes(), and getTemplates().
Referenced by ilObjStyleSheetGUI\_getTemplatePreview(), ilPCTableGUI\getCellContent(), and ilPCTableGUI\getPropertiesFormValues().
ilObjStyleSheet::getThumbnailsDirectory | ( | ) |
Definition at line 1157 of file class.ilObjStyleSheet.php.
References getImagesDirectory().
ilObjStyleSheet::getUpToDate | ( | ) |
ilObjStyleSheet::getXML | ( | ) |
get xml representation of style object todo: add mq_id
Definition at line 1658 of file class.ilObjStyleSheet.php.
References $c, $xml, _determineTag(), _getTemplateClassTypes(), getColors(), ilObject\getDescription(), getTemplates(), ilObject\getTitle(), and handleXmlString().
Referenced by exportXML().
ilObjStyleSheet::handleXmlString | ( | string | $a_str | ) |
Definition at line 1649 of file class.ilObjStyleSheet.php.
Referenced by getXML().
|
staticprotected |
Definition at line 2608 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::ilClone | ( | ) |
clone style sheet (note: styles have no ref ids and return an object id)
Definition at line 1022 of file class.ilObjStyleSheet.php.
References ilObject\$lng, ilObject\getDescription(), ilObject\getId(), ilObject\getTitle(), ilObject\getType(), ilLanguage\loadLanguageModule(), lookupStyleSetting(), and ilLanguage\txt().
ilObjStyleSheet::import | ( | $a_file | ) |
array | string | $a_file |
Definition at line 1868 of file class.ilObjStyleSheet.php.
References _addMissingStyleClassesToStyle(), createFromXMLFile(), createImagesDirectory(), createImportDirectory(), ilObject\getId(), getImagesDirectory(), ilFileUtils\moveUploadedFile(), ilFileUtils\rCopy(), read(), ilFileUtils\unzip(), and writeCSSFile().
|
static |
Definition at line 2103 of file class.ilObjStyleSheet.php.
Referenced by ILIAS\Style\Content\CharacteristicTableGUI\fillRow(), ilStyleCharacteristicGUI\removeOutdated(), and ilStyleCharacteristicGUI\setOutdated().
|
static |
Lookup objects for style.
Definition at line 3265 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, ilObject\_lookupType(), and ILIAS\Repository\int().
|
static |
Lookup object style.
Definition at line 3238 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, and ilObject\_lookupType().
Referenced by ilStyleDataSet\getDependencies(), ILIAS\Style\Content\Object\ObjectManager\getStyleId(), ILIAS\Style\Content\Object\ObjectManager\inheritFromParent(), and ilContainerXmlWriter\writeSubitems().
ilObjStyleSheet::lookupStyleSetting | ( | string | $a_name | ) |
Lookup style setting.
Definition at line 3201 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
Referenced by ilClone().
ilObjStyleSheet::lookupTemplateName | ( | int | $a_t_id | ) |
Lookup table template name for template ID.
Definition at line 3032 of file class.ilObjStyleSheet.php.
Referenced by ilObjStyleSheetGUI\_getTemplatePreview().
ilObjStyleSheet::lookupTemplatePreview | ( | int | $a_t_id | ) |
Lookup table template preview.
Definition at line 3127 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
ilObjStyleSheet::read | ( | ) |
read style properties
Definition at line 1271 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, $res, ilObject\getId(), setScope(), and setUpToDate().
Referenced by addParameter(), create(), createFromXMLFile(), import(), and update().
ilObjStyleSheet::removeColor | ( | string | $a_name | ) |
Remove a color.
Definition at line 2527 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
ilObjStyleSheet::removeTemplate | ( | int | $a_t_id | ) |
Remove table template.
Definition at line 3164 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
ilObjStyleSheet::saveHideStatus | ( | string | $a_type, |
string | $a_char, | ||
bool | $a_hide | ||
) |
Save characteristic hidden status.
Definition at line 983 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and ilObject\getId().
ilObjStyleSheet::saveMediaQueryOrder | ( | array | $a_order_nr = null | ) |
Save media query order.
Definition at line 2839 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, getMediaQueries(), and ilArrayUtil\sortArray().
Referenced by deleteMediaQuery().
ilObjStyleSheet::setCharacteristics | ( | array | $a_chars | ) |
Definition at line 975 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::setExportSubDir | ( | string | $a_dir | ) |
Set local directory, that will be included within the zip file.
Definition at line 1766 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::setScope | ( | int | $a_scope | ) |
Definition at line 542 of file class.ilObjStyleSheet.php.
Referenced by read().
ilObjStyleSheet::setStyle | ( | array | $a_style | ) |
Definition at line 1644 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::setUpToDate | ( | bool | $a_up_to_date = true | ) |
Set style up to date (false + update will trigger css generation next time)
Definition at line 532 of file class.ilObjStyleSheet.php.
Referenced by addCharacteristic(), read(), and writeCSSFile().
ilObjStyleSheet::templateExists | ( | string | $a_template_name | ) |
Check whether template exists.
Definition at line 2995 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
ilObjStyleSheet::update | ( | ) |
Definition at line 1608 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, ilObject\getId(), getScope(), read(), and writeCSSFile().
Referenced by createFromXMLFile().
ilObjStyleSheet::updateMediaQuery | ( | int | $a_id, |
string | $a_mquery | ||
) |
ilObjStyleSheet::updateStyleParameter | ( | int | $a_id, |
string | $a_value | ||
) |
update style parameter per id
Definition at line 1627 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
ilObjStyleSheet::updateTemplate | ( | int | $a_t_id, |
string | $a_name, | ||
array | $a_classes | ||
) |
Update table template.
Definition at line 2950 of file class.ilObjStyleSheet.php.
References $c, ilObject\$db, and $ilDB.
ilObjStyleSheet::writeCSSFile | ( | string | $a_target_file = "" , |
string | $a_image_dir = "" |
||
) |
write css file to webspace directory
Definition at line 1345 of file class.ilObjStyleSheet.php.
References _writeUpToDate(), getColorCodeForName(), ilObject\getId(), getMediaQueries(), getStyle(), ilFileUtils\getWebspaceDir(), ILIAS\Repository\int(), ilFileUtils\makeDirParents(), and setUpToDate().
Referenced by addParameter(), create(), import(), and update().
|
static |
Definition at line 566 of file class.ilObjStyleSheet.php.
Referenced by ILIAS\Style\Content\Object\ObjectManager\cloneTo(), ilStyleDataSet\importRecord(), and ILIAS\Style\Content\Object\ObjectManager\setOwnerOfStyle().
ilObjStyleSheet::writeStyleSetting | ( | string | $a_name, |
string | $a_value | ||
) |
|
static |
Write style usage.
Definition at line 3218 of file class.ilObjStyleSheet.php.
Referenced by ILIAS\Style\Content\Object\ObjectManager\cloneTo(), ilContainerImporter\finalProcessing(), ilStyleDataSet\importRecord(), ILIAS\Style\Content\Object\ObjectManager\inheritFromParent(), and ILIAS\Style\Content\Object\ObjectManager\updateStyleId().
ilObjStyleSheet::writeTemplatePreview | ( | int | $a_t_id, |
string | $a_preview_html | ||
) |
Write table template preview.
Definition at line 3105 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
Referenced by addTemplate().
|
static |
Definition at line 303 of file class.ilObjStyleSheet.php.
|
staticprotected |
Definition at line 503 of file class.ilObjStyleSheet.php.
|
staticprotected |
Definition at line 500 of file class.ilObjStyleSheet.php.
|
staticprotected |
Definition at line 502 of file class.ilObjStyleSheet.php.
|
staticprotected |
Definition at line 501 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 33 of file class.ilObjStyleSheet.php.
Referenced by getCharacteristics().
|
protected |
Definition at line 31 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 381 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 32 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 288 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 30 of file class.ilObjStyleSheet.php.
Referenced by getExportSubDir().
|
static |
Definition at line 264 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 36 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 298 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 29 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 41 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 42 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 45 of file class.ilObjStyleSheet.php.
Referenced by getStyleParameterGroups().
|
static |
Definition at line 377 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 28 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 39 of file class.ilObjStyleSheet.php.
Referenced by getScope().
array ilObjStyleSheet::$style = [] |
Definition at line 35 of file class.ilObjStyleSheet.php.
Referenced by getStyle().
|
protected |
Definition at line 37 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 269 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 463 of file class.ilObjStyleSheet.php.
Referenced by getTemplates().
|
protected |
Definition at line 34 of file class.ilObjStyleSheet.php.
Referenced by getUpToDate().