ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Class ilObjStyleSheet. 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... | |
![]() | |
getObjectProperties () | |
flushObjectProperties () | |
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 $description) | |
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 | getExportContentStylePath () |
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 | getBaseContentStylePath () |
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 | getIconForType (string $type) |
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", "rem", "ex", "%", "pt", "pc", "in", "mm", "cm") |
static array | $num_unit_no_perc = array("px", "em", "rem", "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 | div => ["hover" |
static array | before |
static array | img |
static array | $core_styles |
static array | $templates |
Static Protected Member Functions | |
static | hexdec (string $hex) |
Protected Attributes | |
InternalDomainService | $domain |
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 |
LOMServices | $lom_services |
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 = "" |
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 = "../vendor/ilias/Style/basic_style/style.xml" |
static string | $basic_style_zip = "../vendor/ilias/Style/basic_style/style.zip" |
static string | $basic_style_image_dir = "./components/ILIAS/COPage/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 () | |
Class ilObjStyleSheet.
Definition at line 28 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::__construct | ( | int | $a_id = 0 , |
bool | $a_call_by_reference = false |
||
) |
Definition at line 495 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 2176 of file class.ilObjStyleSheet.php.
References $DIC, $id, $ilDB, _createImagesDirectory(), _getBasicStyleDom(), _getCoreStyles(), _getImagesDirectory(), and ilObject\_getObjectsDataForType().
Referenced by _addMissingStyleClassesToStyle().
|
static |
Add missing style classes to all styles.
Definition at line 2165 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 1077 of file class.ilObjStyleSheet.php.
References $DIC, $ilErr, ilFileUtils\getWebspaceDir(), and ilFileUtils\makeDir().
Referenced by _addMissingStyleClassesToAllStyles(), and createImagesDirectory().
|
static |
Definition at line 2147 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 2598 of file class.ilObjStyleSheet.php.
References $r.
Referenced by _getColorFlavor().
|
static |
Definition at line 750 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 708 of file class.ilObjStyleSheet.php.
References $DIC, $id, $ilDB, $q, ilObject\$ref_id, ilObject\_getAllReferences(), ilObjContentObject\_lookupContObjIdByStyleId(), ilObject\_lookupTitle(), and ILIAS\Repository\int().
Referenced by ilObjStyleSheetGUI\getCloneForm().
|
static |
Get color flavor.
Definition at line 2572 of file class.ilObjStyleSheet.php.
References _explodeRGB(), _HLSToRGB(), and _RGBToHLS().
Referenced by ilStyleColorTableGUI\fillRow(), and getColorCodeForName().
|
static |
Definition at line 2098 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 2049 of file class.ilObjStyleSheet.php.
Referenced by ilStyleCharacteristicGUI\getValues(), and ilStyleCharacteristicGUI\initTagStyleForm().
|
static |
Definition at line 1126 of file class.ilObjStyleSheet.php.
References ilFileUtils\getWebspaceDir().
Referenced by _addMissingStyleClassesToAllStyles(), and getImagesDirectory().
|
static |
Definition at line 2134 of file class.ilObjStyleSheet.php.
|
static |
Get standard styles.
Definition at line 661 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, $ilSetting, $path, $q, $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 2020 of file class.ilObjStyleSheet.php.
Referenced by ilStyleCharacteristicGUI\initTagStyleForm().
|
static |
Definition at line 2054 of file class.ilObjStyleSheet.php.
Referenced by ilFontSizeInputGUI\insert(), ilNumericStyleValueInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilTRBLBorderWidthInputGUI\insert(), and ilTRBLNumericStyleValueInputGUI\insert().
|
static |
Definition at line 2032 of file class.ilObjStyleSheet.php.
Referenced by ilStyleCharacteristicGUI\getValues(), and ilStyleCharacteristicGUI\saveTagStyle().
|
static |
Definition at line 2026 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 2063 of file class.ilObjStyleSheet.php.
Referenced by ilFontSizeInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilTRBLBorderStyleInputGUI\insert(), and ilTRBLBorderWidthInputGUI\insert().
|
static |
Definition at line 2084 of file class.ilObjStyleSheet.php.
Referenced by ilObjStyleSheetGUI\__construct().
|
static |
Definition at line 2069 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 2125 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 2668 of file class.ilObjStyleSheet.php.
Referenced by _getColorFlavor().
|
static |
Definition at line 2074 of file class.ilObjStyleSheet.php.
Referenced by ILIAS\Style\Content\CharacteristicTableGUI\__construct(), ilStyleCharacteristicGUI\initCharacteristicForm(), and ilStyleCharacteristicGUI\listCharacteristics().
|
static |
Definition at line 2079 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 643 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, $q, and $res.
Referenced by ilContentStyleSettingsGUI\edit().
|
static |
Lookup standard flag.
Definition at line 614 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, $q, and $res.
Referenced by ILIAS\Style\Content\Object\ObjectManager\cloneTo(), ilObjectCopyGUI\copyParentPage(), and ILIAS\Style\Content\Object\ObjectManager\inheritFromParent().
|
static |
Lookup table template preview.
Definition at line 3149 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, and null.
Referenced by ilPCTableGUI\editData(), ilPCTabsGUI\getFormValues(), ilPCTableGUI\getPropertiesFormValues(), and ilPCDataTableGUI\initEditingForm().
|
static |
Lookup table template name for template ID.
Definition at line 3046 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, and null.
Referenced by ilObjStyleSheetGUI\updateTemplateObject().
|
static |
Definition at line 568 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, $q, and $res.
Referenced by getContentStylePath().
|
static |
RGB to HLS (both arrays, 0..255)
Definition at line 2626 of file class.ilObjStyleSheet.php.
References Vendor\Package\$b, and $r.
Referenced by _getColorFlavor().
|
static |
Definition at line 628 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, and $q.
Referenced by ilContentStyleSettingsGUI\saveActiveStyles().
|
static |
Definition at line 599 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, and $q.
Referenced by ilContentStyleSettingsGUI\saveScope().
|
static |
Write standard flag.
Definition at line 585 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, and $q.
Referenced by ilObjStyleSheetGUI\copyStyleObject(), ilContentStyleSettingsGUI\import(), ilObjStyleSheetGUI\importStyleObject(), and ilObjStyleSheetGUI\saveObject().
|
static |
Definition at line 543 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, and $q.
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 893 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 2755 of file class.ilObjStyleSheet.php.
References ilObject\$db, $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 1034 of file class.ilObjStyleSheet.php.
References ilObject\$db, $id, $ilDB, $q, getAvailableParameters(), ilObject\getId(), read(), and writeCSSFile().
ilObjStyleSheet::addTemplate | ( | string | $a_type, |
string | $a_name, | ||
array | $a_classes | ||
) |
Add table template.
Definition at line 2918 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 876 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and ilObject\getId().
ilObjStyleSheet::cleanExportDirectory | ( | ) |
Definition at line 1747 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 1020 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 769 of file class.ilObjStyleSheet.php.
References $c, ilObject\$db, $DIC, $id, $ilDB, $q, $service, _getTemplateClassTypes(), addMediaQuery(), addTemplate(), ilObject\getId(), getScope(), read(), and writeCSSFile().
ilObjStyleSheet::createExportDirectory | ( | ) |
Definition at line 1720 of file class.ilObjStyleSheet.php.
References ilFileUtils\getDataDir(), ilObject\getId(), and ilFileUtils\makeDir().
Referenced by createExportSubDirectory(), and export().
ilObjStyleSheet::createExportSubDirectory | ( | ) |
Definition at line 1759 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 1927 of file class.ilObjStyleSheet.php.
References ilObject\$db, $id, $ilDB, $q, do_3_10_Migration(), ilObject\getId(), read(), ilStr\subStr(), and update().
Referenced by import().
ilObjStyleSheet::createImagesDirectory | ( | ) |
Create images directory <data_dir>/sty/sty_<id>/images.
Definition at line 1068 of file class.ilObjStyleSheet.php.
References _createImagesDirectory(), and ilObject\getId().
ilObjStyleSheet::createImportDirectory | ( | ) |
Definition at line 1847 of file class.ilObjStyleSheet.php.
References ilFileUtils\getDataDir(), ilObject\getId(), and ilFileUtils\makeDir().
Referenced by import().
ilObjStyleSheet::delete | ( | ) |
Definition at line 1195 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, $q, 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 1158 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, $q, and ilObject\getId().
ilObjStyleSheet::deleteMediaQuery | ( | int | $a_id | ) |
Delete media query.
int | $a_id | media query id |
Definition at line 2829 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and saveMediaQueryOrder().
ilObjStyleSheet::deleteParameter | ( | int | $a_id | ) |
delete style parameter
Definition at line 1141 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and $q.
ilObjStyleSheet::deleteStyleParOfChar | ( | string | $a_type, |
string | $a_class | ||
) |
Delete style parameters of characteristic.
Definition at line 1180 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, $q, and ilObject\getId().
ilObjStyleSheet::determineTemplateStyleClassType | ( | string | $t, |
string | $k | ||
) |
Definition at line 2140 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 2328 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and $q.
Referenced by do_3_10_Migration().
ilObjStyleSheet::do_3_10_Migration | ( | ) |
Migrates 3.10 style to 3.11 style.
Definition at line 2270 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 2464 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
Referenced by do_3_10_Migration().
ilObjStyleSheet::export | ( | ) |
Definition at line 1802 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 1827 of file class.ilObjStyleSheet.php.
References getXML().
Referenced by export().
|
static |
Definition at line 2152 of file class.ilObjStyleSheet.php.
Referenced by addParameter().
|
static |
Definition at line 1616 of file class.ilObjStyleSheet.php.
Referenced by ilPCSourceCodeGUI\edit(), ilPCTableGUI\editData(), ilPCInteractiveImageGUI\editor(), and ilPageObjectGUI\showPage().
|
static |
Definition at line 760 of file class.ilObjStyleSheet.php.
Referenced by ilCOPageHTMLExport\exportStyles().
|
static |
Definition at line 515 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 919 of file class.ilObjStyleSheet.php.
Referenced by ilPCSectionGUI\_getCharacteristics(), ilPCMediaObjectGUI\_getCharacteristics(), and ilPCListGUI\_getListCharacteristics().
ilObjStyleSheet::getColorCodeForName | ( | string | $a_name | ) |
Definition at line 2542 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and _getColorFlavor().
Referenced by writeCSSFile().
ilObjStyleSheet::getColors | ( | ) |
Get colors of style.
Definition at line 2511 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
Referenced by getXML().
|
static |
Definition at line 1606 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 1569 of file class.ilObjStyleSheet.php.
References $DIC, $ilSetting, $path, ilObject\_exists(), _lookupUpToDate(), and ILIAS\Repository\int().
Referenced by ilDclDetailedViewDefinitionGUI\__construct(), ilPageLayoutGUI\__construct(), ilImprintGUI\__construct(), ilDclDetailedViewGUI\__construct(), ilPortfolioPageGUI\__construct(), ilAssQuestionPreviewGUI\__construct(), ILIAS\Style\Content\GUIService\addCss(), ilDashboardPageGUI\afterConstructor(), ilPageObjectGUI\displayMedia(), assOrderingQuestionGUI\editNesting(), ilLOEditorGUI\executeCommand(), ilAssQuestionHintsGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilCOPageHTMLExport\exportStyles(), ilAssQuestionPageCommandForwarder\forward(), ilAuthPageEditorGUI\forwardToPageObject(), ILIAS\UI\Implementation\Component\Layout\Page\PageQueryActionHandler\getConfig(), ilObjStyleSheetGUI\includeCSS(), ilCOPageHTMLExport\initResourceTemplate(), ILIAS\Glossary\Export\GlossaryHtmlExport\initScreen(), ilAssQuestionPreviewGUI\initStyleSheets(), ilGlossaryPresentationGUI\media(), ilTestServiceGUI\outCorrectSolution(), ilTestPlayerAbstractGUI\outCorrectSolution(), ilStyleCharacteristicGUI\outputTagStyleEditScreen(), ilTestEvaluationGUI\outUserPassDetails(), ilTestPlayerAbstractGUI\populateContentStyleBlock(), ilObjStyleSheetGUI\propertiesObject(), ILIAS\Export\PrintProcessGUI\renderPrintView(), ilTestEvaluationGUI\setCss(), ilPCParagraphGUI\setStyle(), ilStartUpGUI\showLoginPage(), ilObjMediaPoolGUI\showMedia(), ilDclDetailedViewDefinitionGUI\showPage(), 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 1524 of file class.ilObjStyleSheet.php.
References $DIC, $ilSetting, ilObject\_lookupType(), and ILIAS\Repository\int().
|
static |
Definition at line 1560 of file class.ilObjStyleSheet.php.
Referenced by ilCOPageHTMLExport\exportStyles(), ILIAS\Portfolio\Export\PortfolioHtmlExport\getInitialisedTemplate(), ILIAS\Wiki\Export\BlogHtmlExport\getInitialisedTemplate(), and ilCOPageHTMLExport\getPreparedMainTemplate().
ilObjStyleSheet::getExportSubDir | ( | ) |
The local directory, that will be included within the zip file.
Definition at line 1787 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 977 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
ilObjStyleSheet::getImagesDirectory | ( | ) |
Definition at line 1121 of file class.ilObjStyleSheet.php.
References _getImagesDirectory(), and ilObject\getId().
Referenced by copyImagesToDir(), export(), and getThumbnailsDirectory().
ilObjStyleSheet::getMaxMQueryOrderNr | ( | ) |
Get maximum media query order nr.
Definition at line 2780 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
Referenced by addMediaQuery().
ilObjStyleSheet::getMediaQueries | ( | ) |
Definition at line 2739 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 2812 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 1549 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::getScope | ( | ) |
Definition at line 538 of file class.ilObjStyleSheet.php.
References $scope.
Referenced by create(), and update().
ilObjStyleSheet::getStyle | ( | ) |
Definition at line 1652 of file class.ilObjStyleSheet.php.
References $style.
Referenced by writeCSSFile().
ilObjStyleSheet::getStyleParameterGroups | ( | ) |
Get grouped parameter.
Definition at line 2010 of file class.ilObjStyleSheet.php.
References $parameter.
|
static |
Definition at line 1611 of file class.ilObjStyleSheet.php.
Referenced by ilDclDetailedViewDefinitionGUI\__construct(), ilPageLayoutGUI\__construct(), ilImprintGUI\__construct(), ilTermDefinitionEditorGUI\__construct(), ilDclDetailedViewGUI\__construct(), ilPortfolioPageGUI\__construct(), ilWikiPageGUI\__construct(), ilBlogPostingGUI\__construct(), ilAssQuestionPreviewGUI\__construct(), assOrderingQuestionGUI\editNesting(), ilCOPageHTMLExport\exportStyles(), ilAssQuestionPageCommandForwarder\forward(), ilAuthPageEditorGUI\forwardToPageObject(), ilContainerGUI\forwardToPageObject(), ilContainerGUI\getContainerPageHTML(), ilContainerStartObjectsContentGUI\getPageHTML(), ilCOPageHTMLExport\getPreparedMainTemplate(), ilObjForumGUI\getSafePostCommands(), ilCOPageHTMLExport\initResourceTemplate(), ilAssQuestionPreviewGUI\initStyleSheets(), ilObjContentPageGUI\initStyleSheets(), ilObjForumGUI\initStyleSheets(), 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 3018 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 2898 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
Referenced by getTemplate(), and getTemplates().
ilObjStyleSheet::getTemplates | ( | string | $a_type | ) |
Get table templates of style.
Definition at line 2876 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 3065 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 1132 of file class.ilObjStyleSheet.php.
References getImagesDirectory().
ilObjStyleSheet::getUpToDate | ( | ) |
ilObjStyleSheet::getXML | ( | ) |
get xml representation of style object todo: add mq_id
Definition at line 1671 of file class.ilObjStyleSheet.php.
References $c, _determineTag(), _getTemplateClassTypes(), getColors(), ilObject\getDescription(), getTemplates(), ilObject\getTitle(), and handleXmlString().
Referenced by exportXML().
ilObjStyleSheet::handleXmlString | ( | string | $a_str | ) |
Definition at line 1662 of file class.ilObjStyleSheet.php.
Referenced by getXML().
|
staticprotected |
Definition at line 2614 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::ilClone | ( | ) |
clone style sheet (note: styles have no ref ids and return an object id)
Definition at line 997 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 1881 of file class.ilObjStyleSheet.php.
References _addMissingStyleClassesToStyle(), createFromXMLFile(), createImportDirectory(), ilObject\getId(), ilFileUtils\moveUploadedFile(), read(), and writeCSSFile().
|
static |
Definition at line 2110 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 3271 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, ilObject\_lookupType(), and ILIAS\Repository\int().
|
static |
Lookup object style.
Definition at line 3244 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, and ilObject\_lookupType().
Referenced by ilDashboardPageGUI\afterConstructor(), ilObjectCopyGUI\copyParentPage(), 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 3207 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 3038 of file class.ilObjStyleSheet.php.
Referenced by ilObjStyleSheetGUI\_getTemplatePreview().
ilObjStyleSheet::lookupTemplatePreview | ( | int | $a_t_id | ) |
Lookup table template preview.
Definition at line 3133 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
ilObjStyleSheet::read | ( | ) |
read style properties
Definition at line 1246 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, $q, $res, ilObject\getId(), null, setScope(), and setUpToDate().
Referenced by addParameter(), create(), createFromXMLFile(), import(), and update().
ilObjStyleSheet::removeColor | ( | string | $a_name | ) |
Remove a color.
Definition at line 2533 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
ilObjStyleSheet::removeTemplate | ( | int | $a_t_id | ) |
Remove table template.
Definition at line 3170 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 958 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 2845 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, getMediaQueries(), and ilArrayUtil\sortArray().
Referenced by deleteMediaQuery().
ilObjStyleSheet::setCharacteristics | ( | array | $a_chars | ) |
Definition at line 950 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::setExportSubDir | ( | string | $a_dir | ) |
Set local directory, that will be included within the zip file.
Definition at line 1779 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::setScope | ( | int | $a_scope | ) |
Definition at line 533 of file class.ilObjStyleSheet.php.
Referenced by read().
ilObjStyleSheet::setStyle | ( | array | $a_style | ) |
Definition at line 1657 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 523 of file class.ilObjStyleSheet.php.
Referenced by addCharacteristic(), read(), and writeCSSFile().
ilObjStyleSheet::templateExists | ( | string | $a_template_name | ) |
Check whether template exists.
Definition at line 3001 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
ilObjStyleSheet::update | ( | ) |
Definition at line 1621 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, $q, 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 1640 of file class.ilObjStyleSheet.php.
References ilObject\$db, $ilDB, and $q.
ilObjStyleSheet::updateTemplate | ( | int | $a_t_id, |
string | $a_name, | ||
array | $a_classes | ||
) |
Update table template.
Definition at line 2956 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 1320 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 557 of file class.ilObjStyleSheet.php.
References $DIC, $ilDB, and $q.
Referenced by ILIAS\Style\Content\Object\ObjectManager\cloneTo(), ilObjectCopyGUI\copyParentPage(), ilStyleDataSet\importRecord(), and ILIAS\Style\Content\Object\ObjectManager\setOwnerOfStyle().
ilObjStyleSheet::writeStyleSetting | ( | string | $a_name, |
string | $a_value | ||
) |
|
static |
Write style usage.
Definition at line 3224 of file class.ilObjStyleSheet.php.
Referenced by ILIAS\Style\Content\Object\ObjectManager\cloneTo(), ilObjectCopyGUI\copyParentPage(), 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 3111 of file class.ilObjStyleSheet.php.
References ilObject\$db, and $ilDB.
Referenced by addTemplate().
|
static |
Definition at line 304 of file class.ilObjStyleSheet.php.
|
staticprotected |
Definition at line 493 of file class.ilObjStyleSheet.php.
|
staticprotected |
Definition at line 490 of file class.ilObjStyleSheet.php.
|
staticprotected |
Definition at line 492 of file class.ilObjStyleSheet.php.
|
staticprotected |
Definition at line 491 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 36 of file class.ilObjStyleSheet.php.
Referenced by getCharacteristics().
|
protected |
Definition at line 34 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 380 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 30 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 35 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 289 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 33 of file class.ilObjStyleSheet.php.
Referenced by getExportSubDir().
|
static |
Definition at line 267 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 39 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 299 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 32 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 44 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 45 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 48 of file class.ilObjStyleSheet.php.
Referenced by getStyleParameterGroups().
|
static |
Definition at line 371 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 31 of file class.ilObjStyleSheet.php.
|
protected |
Definition at line 42 of file class.ilObjStyleSheet.php.
Referenced by getScope().
array ilObjStyleSheet::$style = [] |
Definition at line 38 of file class.ilObjStyleSheet.php.
Referenced by getStyle().
|
protected |
Definition at line 40 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 272 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 453 of file class.ilObjStyleSheet.php.
Referenced by getTemplates().
|
protected |
Definition at line 37 of file class.ilObjStyleSheet.php.
Referenced by getUpToDate().
|
static |
Definition at line 374 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 374 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 375 of file class.ilObjStyleSheet.php.