ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Class ilObjStyleSheet. More...
Public Member Functions | |
ilObjStyleSheet ($a_id=0, $a_call_by_reference=false) | |
Constructor public. More... | |
setRefId () | |
Set ref id (show error message, since styles do not use ref ids) More... | |
getRefId () | |
Get ref id (show error message, since styles do not use ref ids) More... | |
putInTree () | |
Put in tree (show error message, since styles do not use ref ids) More... | |
createReference () | |
Create a reference (show error message, since styles do not use ref ids) More... | |
setUpToDate ($a_up_to_date=true) | |
Set style up to date (false + update will trigger css generation next time) More... | |
getUpToDate () | |
Get up to date. More... | |
setScope ($a_scope) | |
Set scope. More... | |
getScope () | |
Get scope. More... | |
_writeUpToDate ($a_id, $a_up_to_date) | |
Write up to date. More... | |
_lookupUpToDate ($a_id) | |
Looup up to date. More... | |
_writeStandard ($a_id, $a_std) | |
Write standard flag. More... | |
_writeScope ($a_id, $a_scope) | |
Write scope. More... | |
_lookupStandard ($a_id) | |
Lookup standard flag. More... | |
_writeActive ($a_id, $a_active) | |
Write active flag. More... | |
_lookupActive ($a_id) | |
Lookup active flag. More... | |
_getStandardStyles ($a_exclude_default_style=false, $a_include_deactivated=false, $a_scope=0) | |
Get standard styles. More... | |
_getClonableContentStyles () | |
Get all clonable styles (active standard styles and individual learning module styles with write permission). More... | |
assignMetaData (&$a_meta_data) | |
assign meta data object More... | |
& | getMetaData () |
get meta data object More... | |
create ($a_from_style=0, $a_import_mode=false) | |
Create a new style. More... | |
deleteCharacteristic ($a_type, $a_tag, $a_class) | |
Delete Characteristic. More... | |
characteristicExists ($a_char, $a_style_type) | |
Check whether characteristic exists. More... | |
addCharacteristic ($a_type, $a_char, $a_hidden=false) | |
Add characteristic. More... | |
copyCharacteristic ($a_from_style_id, $a_from_type, $a_from_char, $a_to_char) | |
Copy characteristic. More... | |
getCharacteristics ($a_type="", $a_no_hidden=false) | |
Get characteristics. More... | |
setCharacteristics ($a_chars) | |
Set characteristics. More... | |
saveHideStatus ($a_type, $a_char, $a_hide) | |
Save characteristic hide status. More... | |
getHideStatus ($a_type, $a_char) | |
Get characteristic hide status. More... | |
ilClone () | |
clone style sheet (note: styles have no ref ids and return an object id) More... | |
copyImagesToDir ($a_target) | |
Copy images to directory. More... | |
addParameter ($a_tag, $a_par, $a_type, $a_mq_id=0, $a_custom=false) | |
write style parameter to db More... | |
createImagesDirectory () | |
Create images directory <data_dir>/sty/sty_<id>/images. More... | |
getImagesDirectory () | |
Get images directory. More... | |
getThumbnailsDirectory () | |
Get thumbnails directory. More... | |
getImages () | |
Get images of style. More... | |
uploadImage ($a_file) | |
Upload image. More... | |
deleteImage ($a_file) | |
Delete an image. More... | |
deleteParameter ($a_id) | |
delete style parameter More... | |
deleteStylePar ($a_tag, $a_class, $a_par, $a_type, $a_mq_id=0, $a_custom=false) | |
Delete style parameter by tag/class/parameter. More... | |
deleteCustomStylePars ($a_tag, $a_class, $a_type, $a_mq_id=0) | |
Delete style parameter by tag/class/parameter. More... | |
deleteStyleParOfChar ($a_type, $a_class) | |
Delete style parameters of characteristic. More... | |
delete () | |
delete style object More... | |
read () | |
read style properties More... | |
writeCSSFile ($a_target_file="", $a_image_dir="") | |
write css file to webspace directory More... | |
getParametersOfClass ($a_type, $a_class, $a_mq_id=0) | |
Get parameters of class. More... | |
getContentStylePath ($a_style_id) | |
get content style path More... | |
getContentPrintStyle () | |
get content print style More... | |
getSyntaxStylePath () | |
get syntax style path More... | |
getPlaceHolderStylePath () | |
get placeholder style path (for Page Layouts) More... | |
update () | |
updateStyleParameter ($a_id, $a_value) | |
update style parameter per id More... | |
replaceStylePar ($a_tag, $a_class, $a_par, $a_val, $a_type, $a_mq_id=0, $a_custom=false) | |
Set style parameter per tag/class/parameter. More... | |
_replaceStylePar ($style_id, $a_tag, $a_class, $a_par, $a_val, $a_type, $a_mq_id=0, $a_custom=false) | |
getStyle () | |
todo: bad style! should return array of objects, not multi-dim-arrays More... | |
setStyle ($a_style) | |
set styles More... | |
handleXmlString ($a_str) | |
Handle xml strin. More... | |
getXML () | |
get xml representation of style object todo: add mq_id More... | |
createExportDirectory () | |
Create export directory. More... | |
cleanExportDirectory () | |
Clear export directory. More... | |
createExportSubDirectory () | |
Create export directory. More... | |
setExportSubDir ($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 () | |
Create export file. More... | |
exportXML ($a_dir) | |
export style xml file to directory More... | |
createImportDirectory () | |
Create import directory. More... | |
import ($a_file) | |
Import. More... | |
createFromXMLFile ($a_file, $a_skip_parent_create=false) | |
create style from xml file todo: add mq_id and custom More... | |
getStyleParameterGroups () | |
Get grouped parameter. More... | |
_getPseudoClasses ($tag) | |
determineTemplateStyleClassType ($t, $k) | |
do_3_10_Migration () | |
Migrates 3.10 style to 3.11 style. More... | |
do_3_10_CharMigration ($a_id="") | |
This is more or less a copy of Services/Migration/DBUpdate_1385/classes ilStyleMigration->addMissingStyleCharacteristics() More... | |
do_3_9_Migration ($a_id) | |
Migrate old 3.9 styles. More... | |
getColors () | |
Get colors of style. More... | |
addColor ($a_name, $a_code) | |
Add color. More... | |
updateColor ($a_name, $a_new_name, $a_code) | |
Update color. More... | |
removeColor ($a_name) | |
Remove a color. More... | |
colorExists ($a_color_name) | |
Check whether color exists. More... | |
getColorCodeForName ($a_name) | |
Remove a color. More... | |
getMediaQueries () | |
Get colors of style. More... | |
addMediaQuery ($a_mquery) | |
Add media query. More... | |
getMaxMQueryOrderNr () | |
Get maximum media query order nr. More... | |
updateMediaQuery ($a_id, $a_mquery) | |
Update media query. More... | |
getMediaQueryForId ($a_id) | |
Get media query for id. More... | |
deleteMediaQuery ($a_id) | |
Delete media query. More... | |
saveMediaQueryOrder ($a_order_nr=null) | |
Save media query order. More... | |
getTemplates ($a_type) | |
Get table templates of style. More... | |
getTemplateClasses ($a_tid) | |
Get template classes. More... | |
addTemplate ($a_type, $a_name, $a_classes) | |
Add table template. More... | |
updateTemplate ($a_t_id, $a_name, $a_classes) | |
Update table template. More... | |
templateExists ($a_template_name) | |
Check whether template exists. More... | |
getTemplate ($a_t_id) | |
Get template. More... | |
lookupTemplateName ($a_t_id) | |
Lookup table template name for template ID. More... | |
getTemplateXML () | |
Get table template xml. More... | |
writeTemplatePreview ($a_t_id, $a_preview_html) | |
Write table template preview. More... | |
lookupTemplatePreview ($a_t_id) | |
Lookup table template preview. More... | |
removeTemplate ($a_t_id) | |
Remove table template. More... | |
writeStyleSetting ($a_name, $a_value) | |
Write Style Setting. More... | |
lookupStyleSetting ($a_name) | |
Lookup style setting. More... | |
![]() | |
ilObject ($a_id=0, $a_reference=true) | |
Constructor public. More... | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) More... | |
read ($a_force_db=false) | |
read object data from db into object More... | |
getId () | |
get object id public More... | |
setId ($a_id) | |
set object id public More... | |
setRefId ($a_id) | |
set reference id public More... | |
getRefId () | |
get reference id public More... | |
getType () | |
get object type public More... | |
setType ($a_type) | |
set object type public More... | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions More... | |
getTitle () | |
get object title public More... | |
getUntranslatedTitle () | |
get untranslated object title public More... | |
setTitle ($a_title) | |
set object title More... | |
getDescription () | |
get object description More... | |
setDescription ($a_desc) | |
set object description More... | |
getLongDescription () | |
get object long description (stored in object_description) More... | |
getImportId () | |
get import id More... | |
setImportId ($a_import_id) | |
set import id More... | |
getOwner () | |
get object owner More... | |
getOwnerName () | |
_lookupOwnerName ($a_owner_id) | |
lookup owner name for owner id More... | |
setOwner ($a_owner) | |
set object owner More... | |
getCreateDate () | |
get create date public More... | |
getLastUpdateDate () | |
get last update date public More... | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. More... | |
setObjDataRecord ($a_record) | |
set object_data record (note: this method should only be called from the ilObjectFactory class) More... | |
create () | |
create More... | |
update () | |
update object in db More... | |
MDUpdateListener ($a_element) | |
Meta data update listener. More... | |
createMetaData () | |
create meta data entry More... | |
updateMetaData () | |
update meta data entry More... | |
deleteMetaData () | |
delete meta data entry More... | |
updateOwner () | |
update owner of object in db More... | |
_getIdForImportId ($a_import_id) | |
get current object id for import id (static) More... | |
_lookupOwner ($a_id) | |
lookup object owner More... | |
_lookupLastUpdate ($a_id, $a_as_string=false) | |
lookup last update More... | |
_getLastUpdateOfObjects ($a_objs) | |
Get last update for a set of media objects. More... | |
_setDeletedDate ($a_ref_id) | |
only called in ilTree::saveSubTree More... | |
_resetDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes More... | |
_lookupDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes More... | |
_writeTitle ($a_obj_id, $a_title) | |
write title to db (static) More... | |
_writeDescription ($a_obj_id, $a_desc) | |
write description to db (static) More... | |
_writeImportId ($a_obj_id, $a_import_id) | |
write import id to db (static) More... | |
_isInTrash ($a_ref_id) | |
checks wether object is in trash More... | |
_hasUntrashedReference ($a_obj_id) | |
checks wether an object has at least one reference that is not in trash More... | |
_getObjectsDataForType ($a_type, $a_omit_trash=false) | |
get all objects of a certain type More... | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? More... | |
setPermissions ($a_parent_ref) | |
set permissions of object More... | |
setParentRolePermissions ($a_parent_ref) | |
Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g courses, groups for building permission intersections with non_member templates. More... | |
createReference () | |
creates reference for object More... | |
countReferences () | |
count references of object More... | |
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 If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public More... | |
applyDidacticTemplate ($a_tpl_id) | |
Apply template. More... | |
notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0) | |
notifys an object about an event occured Based on the event passed, each object may decide how it reacts. More... | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getXMLZip () | |
getHTMLDirectory () | |
cloneObject ($a_target_id, $a_copy_id=0, $a_omit_tree=false) | |
Clone object permissions, put in tree ... More... | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. More... | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. More... | |
cloneMetaData ($target_obj) | |
Copy meta data. More... | |
_lookupCreationDate ($a_id) | |
Lookup creation date. More... | |
Static Public Member Functions | |
static | _getBasicStyleDom () |
Get basic style dom. More... | |
static | _createImagesDirectory ($a_style_id) |
Create images directory <data_dir>/sty/sty_<id>/images. More... | |
static | _getImagesDirectory ($a_style_id) |
Get images directory. More... | |
static | getEffectiveContentStyleId ($a_style_id, $a_type="") |
Get effective Style Id. More... | |
static | _getStyleParameterInputType ($par) |
static | _getStyleParameterSubPar ($par) |
static | _getStyleParameters ($a_tag="") |
static | _getFilteredGroups () |
static | _getStyleParameterNumericUnits ($a_no_percentage=false) |
static | _getStyleParameterValues ($par) |
static | _getStyleSuperTypes () |
static | _isExpandable ($a_type) |
static | _isHideable ($a_type) |
static | _getStyleSuperTypeForType ($a_type) |
static | _getCoreStyles () |
Get core styles. More... | |
static | _getTemplateClassTypes ($a_template_type="") |
Get template class types. More... | |
static | _determineTag ($a_type) |
static | getAvailableParameters () |
Get available parameters. More... | |
static | _addMissingStyleClassesToStyle ($a_id) |
Add missing style classes to all styles. More... | |
static | _addMissingStyleClassesToAllStyles ($a_styles="") |
Add missing style classes to all styles todo: add mq_id and custom handling. More... | |
static | _getColorFlavor ($a_rgb, $a_i) |
Get color flavor. More... | |
static | _explodeRGB ($a_rgb, $as_dec=false) |
Explode an RGB string into an array. More... | |
static | _RGBToHLS ($a_rgb) |
RGB to HLS (both arrays, 0..255) More... | |
static | _HLSToRGB ($a_hls) |
HLS to RGB (both arrays, 0..255) More... | |
static | _lookupTemplateIdByName ($a_style_id, $a_name) |
Lookup table template preview. More... | |
static | writeStyleUsage ($a_obj_id, $a_style_id) |
Write style usage. More... | |
static | lookupObjectStyle ($a_obj_id) |
Lookup object style. More... | |
![]() | |
static | _lookupObjIdByImportId ($a_import_id) |
static | _getAllReferences ($a_id) |
get all reference ids of object More... | |
static | _lookupTitle ($a_id) |
lookup object title More... | |
static | _getIdsForTitle ($title, $type='', $partialmatch=false) |
static | _lookupDescription ($a_id) |
lookup object description More... | |
static | _lookupObjId ($a_id) |
static | setDeletedDates ($a_ref_ids) |
Set deleted date type $ilDB. More... | |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type More... | |
static | _lookupObjectId ($a_ref_id) |
lookup object id More... | |
static | _exists ($a_id, $a_reference=false, $a_type=null) |
checks if an object exists in object_data More... | |
static | _getObjectsByType ($a_obj_type="", $a_owner="") |
Get objects by type. More... | |
static | _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true) |
Prepare copy wizard object selection. More... | |
static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Get icon for repository item. More... | |
static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
Collect deletion dependencies. More... | |
static | getDeletionDependencies ($a_obj_id) |
Get deletion dependencies. More... | |
static | getLongDescriptions (array $a_obj_ids) |
Get long description data. More... | |
static | getAllOwnedRepositoryObjects ($a_user_id) |
Get all ids of objects user owns. More... | |
static | hasAutoRating ($a_type, $a_ref_id) |
Check if auto rating is active for parent group/course. More... | |
Data Fields | |
$style | |
![]() | |
const | TITLE_LENGTH = 255 |
max length of object title More... | |
const | DESC_LENGTH = 128 |
$ilias | |
$lng | |
$id | |
$ref_id | |
$type | |
$title | |
$untranslatedTitle | |
$desc | |
$long_desc | |
$owner | |
$create_date | |
$last_update | |
$import_id | |
$register = false | |
$referenced | |
$objectList | |
$max_title | |
$max_desc | |
$add_dots | |
$obj_data_record | |
object_data record More... | |
Static Public Attributes | |
static | $num_unit = array("px", "em", "ex", "%", "pt", "pc", "in", "mm", "cm") |
static | $num_unit_no_perc = array("px", "em", "ex", "pt", "pc", "in", "mm", "cm") |
static | $parameter |
static | $filtered_groups |
static | $style_super_types |
static | $expandable_types |
static | $hideable_types |
static | $assigned_tags |
static | $pseudo_classes |
static | $core_styles |
static | $templates |
Static Protected Attributes | |
static | $basic_style_file = "./Services/Style/basic_style/style.xml" |
static | $basic_style_image_dir = "./Services/Style/basic_style/images" |
static | $basic_style_dom |
Class ilObjStyleSheet.
Definition at line 15 of file class.ilObjStyleSheet.php.
|
static |
Add missing style classes to all styles todo: add mq_id and custom handling.
Definition at line 2527 of file class.ilObjStyleSheet.php.
References $core_styles, $file, ilObject\$id, $ilDB, _createImagesDirectory(), _getBasicStyleDom(), _getCoreStyles(), _getImagesDirectory(), and ilObject\_getObjectsDataForType().
Referenced by _addMissingStyleClassesToStyle().
|
static |
Add missing style classes to all styles.
Definition at line 2517 of file class.ilObjStyleSheet.php.
References _addMissingStyleClassesToAllStyles().
Referenced by import().
|
static |
Create images directory <data_dir>/sty/sty_<id>/images.
Definition at line 1218 of file class.ilObjStyleSheet.php.
References $ilErr, ilUtil\getWebspaceDir(), and ilUtil\makeDir().
Referenced by _addMissingStyleClassesToAllStyles(), and createImagesDirectory().
|
static |
Definition at line 2494 of file class.ilObjStyleSheet.php.
Referenced by _getCoreStyles(), copyCharacteristic(), ilObjStyleSheetGUI\deleteTemplateObject(), ilStyleTableGUI\fillRow(), and ilObjStyleSheetGUI\saveCharacteristicObject().
|
static |
Explode an RGB string into an array.
Definition at line 3043 of file class.ilObjStyleSheet.php.
References $r.
Referenced by _getColorFlavor().
|
static |
Get basic style dom.
Definition at line 814 of file class.ilObjStyleSheet.php.
References $ilBench.
Referenced by _addMissingStyleClassesToAllStyles().
ilObjStyleSheet::_getClonableContentStyles | ( | ) |
Get all clonable styles (active standard styles and individual learning module styles with write permission).
Definition at line 760 of file class.ilObjStyleSheet.php.
References ilObject\$id, $ilDB, ilObject\$ref_id, ilObject\_getAllReferences(), ilObjContentObject\_lookupContObjIdByStyleId(), and ilObject\_lookupTitle().
Referenced by ilObjStyleSheetGUI\createObject().
|
static |
Get color flavor.
Definition at line 3016 of file class.ilObjStyleSheet.php.
References _explodeRGB(), _HLSToRGB(), and _RGBToHLS().
Referenced by ilStyleColorTableGUI\fillRow().
|
static |
Get core styles.
Definition at line 2457 of file class.ilObjStyleSheet.php.
References _determineTag().
Referenced by ilStyleTableGUI\__construct(), _addMissingStyleClassesToAllStyles(), deleteCharacteristic(), ilObjStyleSheetGUI\deleteCharacteristicConfirmationObject(), and ilObjStyleSheetGUI\deleteCoreCharMessage().
|
static |
Definition at line 2400 of file class.ilObjStyleSheet.php.
Referenced by ilObjStyleSheetGUI\getValues(), and ilObjStyleSheetGUI\initTagStyleForm().
|
static |
Get images directory.
Definition at line 1268 of file class.ilObjStyleSheet.php.
References ilUtil\getWebspaceDir().
Referenced by _addMissingStyleClassesToAllStyles(), and getImagesDirectory().
ilObjStyleSheet::_getPseudoClasses | ( | $tag | ) |
Definition at line 2484 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::_getStandardStyles | ( | $a_exclude_default_style = false , |
|
$a_include_deactivated = false , |
|||
$a_scope = 0 |
|||
) |
Get standard styles.
Definition at line 714 of file class.ilObjStyleSheet.php.
References $ilDB, ilObject\$ilias, $path, $res, and ilObject\_lookupTitle().
Referenced by ilPageLayoutGUI\initForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesEditableForm(), ilObjContentObjectGUI\initStylePropertiesForm(), ilObjPortfolioBaseGUI\initStylePropertiesForm(), ilObjSCORM2004LearningModuleGUI\initStylePropertiesForm(), ilObjWikiGUI\initStylePropertiesForm(), ilObjGlossaryGUI\initStylePropertiesForm(), ilObjBlogGUI\initStylePropertiesForm(), ilContainerGUI\initStylePropertiesForm(), and ilObjSCORM2004LearningModuleGUI\properties().
|
static |
Definition at line 2369 of file class.ilObjStyleSheet.php.
Referenced by ilObjStyleSheetGUI\initTagStyleForm().
|
static |
Definition at line 2405 of file class.ilObjStyleSheet.php.
Referenced by ilFontSizeInputGUI\insert(), ilNumericStyleValueInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilTRBLBorderWidthInputGUI\insert(), and ilTRBLNumericStyleValueInputGUI\insert().
|
static |
Definition at line 2381 of file class.ilObjStyleSheet.php.
Referenced by ilObjStyleSheetGUI\getValues(), and ilObjStyleSheetGUI\saveTagStyle().
|
static |
Definition at line 2375 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 2414 of file class.ilObjStyleSheet.php.
Referenced by ilFontSizeInputGUI\insert(), ilTRBLBorderStyleInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), and ilTRBLBorderWidthInputGUI\insert().
|
static |
Definition at line 2439 of file class.ilObjStyleSheet.php.
References $t.
Referenced by ilObjStyleSheetGUI\ilObjStyleSheetGUI().
|
static |
Definition at line 2424 of file class.ilObjStyleSheet.php.
Referenced by ilStyleTableGUI\__construct(), ilObjStyleSheetGUI\editObject(), ilStyleTableGUI\fillRow(), ilObjStyleSheetGUI\initCharacteristicForm(), and ilObjStyleSheetGUI\setSubTabs().
|
static |
Get template class types.
Definition at line 2473 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 3115 of file class.ilObjStyleSheet.php.
Referenced by _getColorFlavor().
|
static |
Definition at line 2429 of file class.ilObjStyleSheet.php.
Referenced by ilStyleTableGUI\__construct(), ilObjStyleSheetGUI\editObject(), and ilObjStyleSheetGUI\initCharacteristicForm().
|
static |
Definition at line 2434 of file class.ilObjStyleSheet.php.
Referenced by ilStyleTableGUI\__construct(), and ilStyleTableGUI\fillRow().
ilObjStyleSheet::_lookupActive | ( | $a_id | ) |
Lookup active flag.
Definition at line 699 of file class.ilObjStyleSheet.php.
Referenced by ilObjStyleSettingsGUI\editContentStylesObject().
ilObjStyleSheet::_lookupStandard | ( | $a_id | ) |
Lookup standard flag.
Definition at line 671 of file class.ilObjStyleSheet.php.
Referenced by ilObjCategoryGUI\afterSave(), ilObjPortfolioBase\cloneBasics(), ilObjWiki\cloneObject(), ilObjGlossary\cloneObject(), ilObjContentObject\cloneObject(), ilObjSCORM2004LearningModule\copyAuthoredContent(), ilObjBlog\doCloneObject(), ilObjSCORM2004LearningModuleGUI\initPropertiesEditableForm(), ilObjContentObjectGUI\initStylePropertiesForm(), ilObjPortfolioBaseGUI\initStylePropertiesForm(), ilObjSCORM2004LearningModuleGUI\initStylePropertiesForm(), ilObjWikiGUI\initStylePropertiesForm(), ilObjGlossaryGUI\initStylePropertiesForm(), ilObjBlogGUI\initStylePropertiesForm(), ilContainerGUI\initStylePropertiesForm(), ilObjSCORM2004LearningModuleGUI\properties(), ilObjSCORM2004LearningModuleGUI\saveProperties(), ilObjContentObjectGUI\saveStyleSettings(), ilObjPortfolioBaseGUI\saveStyleSettings(), ilObjSCORM2004LearningModuleGUI\saveStyleSettings(), ilObjGlossaryGUI\saveStyleSettings(), ilObjBlogGUI\saveStyleSettings(), ilObjWikiGUI\saveStyleSettingsObject(), and ilContainerGUI\saveStyleSettingsObject().
|
static |
Lookup table template preview.
Definition at line 3594 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by ilPCTabsGUI\getFormValues(), and ilPCTableGUI\getPropertiesFormValues().
ilObjStyleSheet::_lookupUpToDate | ( | $a_id | ) |
Looup up to date.
Definition at line 630 of file class.ilObjStyleSheet.php.
Referenced by getContentStylePath().
ilObjStyleSheet::_replaceStylePar | ( | $style_id, | |
$a_tag, | |||
$a_class, | |||
$a_par, | |||
$a_val, | |||
$a_type, | |||
$a_mq_id = 0 , |
|||
$a_custom = false |
|||
) |
Definition at line 1892 of file class.ilObjStyleSheet.php.
References ilObject\$id, $ilDB, and ilObject\getId().
Referenced by replaceStylePar().
|
static |
RGB to HLS (both arrays, 0..255)
Definition at line 3062 of file class.ilObjStyleSheet.php.
References $r.
Referenced by _getColorFlavor().
ilObjStyleSheet::_writeActive | ( | $a_id, | |
$a_active | |||
) |
Write active flag.
Definition at line 686 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by ilObjStyleSettingsGUI\saveActiveStylesObject().
ilObjStyleSheet::_writeScope | ( | $a_id, | |
$a_scope | |||
) |
Write scope.
Definition at line 658 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by ilObjStyleSettingsGUI\saveScopeObject().
ilObjStyleSheet::_writeStandard | ( | $a_id, | |
$a_std | |||
) |
Write standard flag.
Definition at line 645 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by ilObjStyleSheetGUI\copyStyleObject(), ilObjStyleSheetGUI\importStyleObject(), and ilObjStyleSheetGUI\saveObject().
ilObjStyleSheet::_writeUpToDate | ( | $a_id, | |
$a_up_to_date | |||
) |
Write up to date.
Definition at line 617 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by addCharacteristic(), deleteCharacteristic(), ilObjStyleSheetGUI\pasteCharacteristicsObject(), updateColor(), and writeCSSFile().
ilObjStyleSheet::addCharacteristic | ( | $a_type, | |
$a_char, | |||
$a_hidden = false |
|||
) |
Add characteristic.
Definition at line 1007 of file class.ilObjStyleSheet.php.
References $ilDB, _writeUpToDate(), ilObject\getId(), and setUpToDate().
Referenced by copyCharacteristic().
ilObjStyleSheet::addColor | ( | $a_name, | |
$a_code | |||
) |
Add color.
Definition at line 2897 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by copyCharacteristic(), and create().
ilObjStyleSheet::addMediaQuery | ( | $a_mquery | ) |
Add media query.
string | $a_mquery | media query |
Definition at line 3227 of file class.ilObjStyleSheet.php.
References ilObject\$id, $ilDB, ilObject\getId(), and getMaxMQueryOrderNr().
Referenced by create().
ilObjStyleSheet::addParameter | ( | $a_tag, | |
$a_par, | |||
$a_type, | |||
$a_mq_id = 0 , |
|||
$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 1180 of file class.ilObjStyleSheet.php.
References ilObject\$id, $ilDB, getAvailableParameters(), ilObject\getId(), read(), and writeCSSFile().
ilObjStyleSheet::addTemplate | ( | $a_type, | |
$a_name, | |||
$a_classes | |||
) |
Add table template.
Definition at line 3388 of file class.ilObjStyleSheet.php.
References $ilDB, $t, ilObjStyleSheetGUI\_getTemplatePreview(), ilObject\getId(), and writeTemplatePreview().
Referenced by create().
ilObjStyleSheet::assignMetaData | ( | & | $a_meta_data | ) |
assign meta data object
Definition at line 806 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::characteristicExists | ( | $a_char, | |
$a_style_type | |||
) |
Check whether characteristic exists.
Definition at line 989 of file class.ilObjStyleSheet.php.
References $ilDB, and ilObject\getId().
Referenced by copyCharacteristic().
ilObjStyleSheet::cleanExportDirectory | ( | ) |
Clear export directory.
Definition at line 2069 of file class.ilObjStyleSheet.php.
References ilUtil\delDir(), ilUtil\getDataDir(), and ilObject\getId().
Referenced by export().
ilObjStyleSheet::colorExists | ( | $a_color_name | ) |
Check whether color exists.
Definition at line 2967 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by copyCharacteristic().
ilObjStyleSheet::copyCharacteristic | ( | $a_from_style_id, | |
$a_from_type, | |||
$a_from_char, | |||
$a_to_char | |||
) |
Copy characteristic.
Definition at line 1027 of file class.ilObjStyleSheet.php.
References $ilDB, _determineTag(), addCharacteristic(), addColor(), characteristicExists(), colorExists(), deleteStyleParOfChar(), ilObjStyleSheet(), and replaceStylePar().
ilObjStyleSheet::copyImagesToDir | ( | $a_target | ) |
Copy images to directory.
Definition at line 1166 of file class.ilObjStyleSheet.php.
References getImagesDirectory(), and ilUtil\rCopy().
ilObjStyleSheet::create | ( | $a_from_style = 0 , |
|
$a_import_mode = false |
|||
) |
Create a new style.
Definition at line 838 of file class.ilObjStyleSheet.php.
References ilObject\$id, $ilDB, $t, $templates, _getTemplateClassTypes(), addColor(), addMediaQuery(), addTemplate(), createFromXMLFile(), createImagesDirectory(), ilObject\getId(), getImagesDirectory(), getScope(), ilObjStyleSheet(), ilUtil\rCopy(), read(), and writeCSSFile().
ilObjStyleSheet::createExportDirectory | ( | ) |
Create export directory.
Definition at line 2036 of file class.ilObjStyleSheet.php.
References ilUtil\getDataDir(), ilObject\getId(), and ilUtil\makeDir().
Referenced by createExportSubDirectory(), and export().
ilObjStyleSheet::createExportSubDirectory | ( | ) |
Create export directory.
Definition at line 2086 of file class.ilObjStyleSheet.php.
References createExportDirectory(), getExportSubDir(), and ilUtil\makeDir().
Referenced by export().
ilObjStyleSheet::createFromXMLFile | ( | $a_file, | |
$a_skip_parent_create = false |
|||
) |
create style from xml file todo: add mq_id and custom
Definition at line 2271 of file class.ilObjStyleSheet.php.
References ilObject\$id, $ilDB, do_3_10_Migration(), ilObject\getId(), read(), and update().
Referenced by create(), and import().
ilObjStyleSheet::createImagesDirectory | ( | ) |
Create images directory <data_dir>/sty/sty_<id>/images.
Definition at line 1209 of file class.ilObjStyleSheet.php.
References _createImagesDirectory(), and ilObject\getId().
Referenced by create(), import(), and uploadImage().
ilObjStyleSheet::createImportDirectory | ( | ) |
Create import directory.
Definition at line 2180 of file class.ilObjStyleSheet.php.
References ilUtil\getDataDir(), ilObject\getId(), and ilUtil\makeDir().
Referenced by import().
ilObjStyleSheet::createReference | ( | ) |
Create a reference (show error message, since styles do not use ref ids)
Definition at line 577 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::delete | ( | ) |
delete style object
Definition at line 1423 of file class.ilObjStyleSheet.php.
References $ilDB, ilObjContentObject\_deleteStyleAssignments(), ilObject\getId(), and ilUtil\getWebspaceDir().
ilObjStyleSheet::deleteCharacteristic | ( | $a_type, | |
$a_tag, | |||
$a_class | |||
) |
Delete Characteristic.
Definition at line 962 of file class.ilObjStyleSheet.php.
References $core_styles, $ilDB, _getCoreStyles(), _writeUpToDate(), ilObject\getId(), and setUpToDate().
ilObjStyleSheet::deleteCustomStylePars | ( | $a_tag, | |
$a_class, | |||
$a_type, | |||
$a_mq_id = 0 |
|||
) |
Delete style parameter by tag/class/parameter.
string | $a_tag | tag |
string | $a_class | class |
string | $a_par | parameter |
string | $a_type | type |
string | $a_mq_id | media query id |
Definition at line 1384 of file class.ilObjStyleSheet.php.
References $ilDB, and ilObject\getId().
ilObjStyleSheet::deleteImage | ( | $a_file | ) |
Delete an image.
Definition at line 1324 of file class.ilObjStyleSheet.php.
References getImagesDirectory(), and getThumbnailsDirectory().
ilObjStyleSheet::deleteMediaQuery | ( | $a_id | ) |
Delete media query.
int | $a_id | media query id |
Definition at line 3298 of file class.ilObjStyleSheet.php.
References $ilDB, and saveMediaQueryOrder().
ilObjStyleSheet::deleteParameter | ( | $a_id | ) |
delete style parameter
int | $a_id | style parameter id |
Definition at line 1341 of file class.ilObjStyleSheet.php.
References $ilDB.
ilObjStyleSheet::deleteStylePar | ( | $a_tag, | |
$a_class, | |||
$a_par, | |||
$a_type, | |||
$a_mq_id = 0 , |
|||
$a_custom = false |
|||
) |
Delete style parameter by tag/class/parameter.
string | $a_tag | tag |
string | $a_class | class |
string | $a_par | parameter |
string | $a_type | type |
string | $a_mq_id | media query id |
Definition at line 1359 of file class.ilObjStyleSheet.php.
References $ilDB, and ilObject\getId().
ilObjStyleSheet::deleteStyleParOfChar | ( | $a_type, | |
$a_class | |||
) |
Delete style parameters of characteristic.
string | tag |
string | class |
string | parameter |
string | type |
Definition at line 1407 of file class.ilObjStyleSheet.php.
References $ilDB, and ilObject\getId().
Referenced by copyCharacteristic().
ilObjStyleSheet::determineTemplateStyleClassType | ( | $t, | |
$k | |||
) |
Definition at line 2489 of file class.ilObjStyleSheet.php.
References $t.
ilObjStyleSheet::do_3_10_CharMigration | ( | $a_id = "" | ) |
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 2688 of file class.ilObjStyleSheet.php.
Referenced by do_3_10_Migration().
ilObjStyleSheet::do_3_10_Migration | ( | ) |
Migrates 3.10 style to 3.11 style.
Definition at line 2625 of file class.ilObjStyleSheet.php.
References $ilDB, do_3_10_CharMigration(), do_3_9_Migration(), and ilObject\getId().
Referenced by createFromXMLFile().
ilObjStyleSheet::do_3_9_Migration | ( | $a_id | ) |
Migrate old 3.9 styles.
Definition at line 2829 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by do_3_10_Migration().
ilObjStyleSheet::export | ( | ) |
Create export file.
Definition at line 2133 of file class.ilObjStyleSheet.php.
References cleanExportDirectory(), createExportDirectory(), createExportSubDirectory(), exportXML(), getExportSubDir(), getImagesDirectory(), ilUtil\rCopy(), and ilUtil\zip().
ilObjStyleSheet::exportXML | ( | $a_dir | ) |
export style xml file to directory
Definition at line 2155 of file class.ilObjStyleSheet.php.
References $file, and getXML().
Referenced by export().
|
static |
Get available parameters.
Definition at line 2502 of file class.ilObjStyleSheet.php.
Referenced by addParameter().
ilObjStyleSheet::getCharacteristics | ( | $a_type = "" , |
|
$a_no_hidden = false |
|||
) |
ilObjStyleSheet::getColorCodeForName | ( | $a_name | ) |
Remove a color.
Definition at line 2984 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by writeCSSFile().
ilObjStyleSheet::getColors | ( | ) |
Get colors of style.
Definition at line 2874 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by getXML().
ilObjStyleSheet::getContentPrintStyle | ( | ) |
get content print style
static
Definition at line 1827 of file class.ilObjStyleSheet.php.
Referenced by ilGlossaryPresentationGUI\printView(), ilObjWikiGUI\printViewObject(), and ilLMPresentationGUI\showPrintView().
ilObjStyleSheet::getContentStylePath | ( | $a_style_id | ) |
get content style path
static (to avoid full reading)
Definition at line 1784 of file class.ilObjStyleSheet.php.
References ilObject\$ilias, ilObject\_exists(), _lookupUpToDate(), ilUtil\getWebspaceDir(), and ilObjStyleSheet().
Referenced by ilImprintGUI\__construct(), ilMediaPoolPageGUI\__construct(), ilPageLayoutGUI\__construct(), ilPortfolioPageGUI\__construct(), ilBlogPostingGUI\__construct(), ilDataCollectionRecordViewGUI\__construct(), ilObjPaymentSettingsGUI\checkShopActivationObject(), ilGlossaryTermGUI\confirmDefinitionDeletion(), ilPageObjectGUI\displayMedia(), ilPCDataTableGUI\editData(), ilObjGroupGUI\executeCommand(), ilTermDefinitionEditorGUI\executeCommand(), ilPaymentObjectGUI\executeCommand(), ilObjCategoryGUI\executeCommand(), ilLOEditorGUI\executeCommand(), ilObjQuestionPoolGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjRootFolderGUI\executeCommand(), ilScormExportUtil\exportContentCSS(), ilObjPaymentSettingsGUI\forwardToDocumentsPageObject(), ilShopInfoGUI\forwardToPageObject(), ilTermsConditionsGUI\forwardToPageObject(), ilAuthLoginPageEditorGUI\forwardToPageObject(), ilContainerGUI\forwardToPageObject(), ilShopGUI\forwardToPageObject(), ilContainerGUI\getContainerPageHTML(), ilObjPaymentSettingsGUI\getDocumentsPageHTML(), ilStartUpGUI\getLoginPageEditorHTML(), ilTermsConditionsGUI\getPageHTML(), ilShopInfoGUI\getPageHTML(), ilContainerStartObjectsContentGUI\getPageHTML(), ilShopGUI\getPageHTML(), ilLMPresentationGUI\ilGlossary(), ilLMPresentationGUI\ilMedia(), ilLMPresentationGUI\ilPage(), ilAssQuestionPreviewGUI\initStyleSheets(), ilGlossaryPresentationGUI\listDefinitions(), ilGlossaryTermGUI\listDefinitions(), ilGlossaryPresentationGUI\listTermByGiven(), ilLMEditorGUI\main_header(), ilGlossaryPresentationGUI\media(), ilTestEvaluationGUI\outCorrectSolution(), ilTestPlayerAbstractGUI\outCorrectSolution(), ilTestPlayerAbstractGUI\populateContentStyleBlock(), ilSCORM2004ScoGUI\sco_preview(), ilSCORM2004NodeGUI\setContentStyle(), ilObjPortfolioBaseGUI\setContentStyleSheet(), ilObjWikiGUI\setContentStyleSheet(), ilObjGlossaryGUI\setContentStyleSheet(), ilObjBlogGUI\setContentStyleSheet(), ilPCParagraphGUI\setStyle(), ilObjDlBookGUI\showAbstract(), ilObjDlBookGUI\showCitation(), ilLMPresentationGUI\showDownloadList(), ilObjMediaPoolGUI\showMedia(), ilLMPresentationGUI\showMessageScreen(), ilContainerObjectiveGUI\showObjectives(), ilObjMediaPoolGUI\showPage(), ilPageObjectGUI\showPage(), ilLMPresentationGUI\showPreconditionsOfPage(), ilLMPresentationGUI\showPrintView(), ilLMPresentationGUI\showPrintViewSelection(), ilLMPresentationGUI\showTableOfContents(), and ilContObjectManifestBuilder\writeResources().
|
static |
Get effective Style Id.
integer | style id that may be set in object |
string | object type |
Definition at line 1739 of file class.ilObjStyleSheet.php.
References $ilSetting, and ilObject\_lookupType().
Referenced by ilMediaPoolPageGUI\__construct(), ilLMPresentationGUI\basicPageGuiInit(), ilContainerStartObjectsGUI\executeCommand(), ilObjSystemFolderGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilSCORM2004PageNodeGUI\executeCommand(), ilLMPageObjectGUI\executeCommand(), ilLOEditorGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilContainerGUI\forwardToPageObject(), ilContainerGUI\getContainerPageHTML(), ilContainerStartObjectsContentGUI\getPageHTML(), ilObjDataCollectionGUI\getType(), ilObjPortfolioBaseGUI\handlePageCall(), ilObjSCORM2004LearningModule\prepareHTMLExporter(), ilContainerObjectiveGUI\renderObjective(), ilDataCollectionRecordViewGUI\renderRecord(), ilLMPresentationGUI\showPrintView(), and ilObjWikiGUI\viewPageObject().
ilObjStyleSheet::getExportSubDir | ( | ) |
The local directory, that will be included within the zip file.
Definition at line 2116 of file class.ilObjStyleSheet.php.
Referenced by createExportSubDirectory(), and export().
ilObjStyleSheet::getHideStatus | ( | $a_type, | |
$a_char | |||
) |
Get characteristic hide status.
Definition at line 1125 of file class.ilObjStyleSheet.php.
References $ilDB.
ilObjStyleSheet::getImages | ( | ) |
Get images of style.
Definition at line 1286 of file class.ilObjStyleSheet.php.
References ilUtil\getDir(), and getImagesDirectory().
ilObjStyleSheet::getImagesDirectory | ( | ) |
Get images directory.
Definition at line 1260 of file class.ilObjStyleSheet.php.
References _getImagesDirectory(), and ilObject\getId().
Referenced by copyImagesToDir(), create(), deleteImage(), export(), getImages(), getThumbnailsDirectory(), and uploadImage().
ilObjStyleSheet::getMaxMQueryOrderNr | ( | ) |
Get maximum media query order nr.
Definition at line 3249 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by addMediaQuery().
ilObjStyleSheet::getMediaQueries | ( | ) |
Get colors of style.
Definition at line 3206 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by saveMediaQueryOrder(), and writeCSSFile().
ilObjStyleSheet::getMediaQueryForId | ( | $a_id | ) |
Get media query for id.
Definition at line 3283 of file class.ilObjStyleSheet.php.
References $ilDB.
& ilObjStyleSheet::getMetaData | ( | ) |
get meta data object
Definition at line 830 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::getParametersOfClass | ( | $a_type, | |
$a_class, | |||
$a_mq_id = 0 |
|||
) |
ilObjStyleSheet::getPlaceHolderStylePath | ( | ) |
get placeholder style path (for Page Layouts)
static
Definition at line 1847 of file class.ilObjStyleSheet.php.
Referenced by ilPageLayoutGUI\__construct(), ilSCORM2004NodeGUI\setContentStyle(), and ilPortfolioTemplatePageGUI\showPage().
ilObjStyleSheet::getRefId | ( | ) |
Get ref id (show error message, since styles do not use ref ids)
Definition at line 560 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::getScope | ( | ) |
Get scope.
Definition at line 609 of file class.ilObjStyleSheet.php.
Referenced by create(), and update().
ilObjStyleSheet::getStyle | ( | ) |
todo: bad style! should return array of objects, not multi-dim-arrays
Definition at line 1945 of file class.ilObjStyleSheet.php.
References $style.
Referenced by writeCSSFile().
ilObjStyleSheet::getStyleParameterGroups | ( | ) |
Get grouped parameter.
Definition at line 2358 of file class.ilObjStyleSheet.php.
References $parameter.
ilObjStyleSheet::getSyntaxStylePath | ( | ) |
get syntax style path
static
Definition at line 1837 of file class.ilObjStyleSheet.php.
Referenced by ilImprintGUI\__construct(), ilMediaPoolPageGUI\__construct(), ilWikiPageGUI\__construct(), ilPageLayoutGUI\__construct(), ilPortfolioPageGUI\__construct(), ilBlogPostingGUI\__construct(), ilDataCollectionRecordViewGUI\__construct(), ilGlossaryTermGUI\confirmDefinitionDeletion(), ilObjGlossaryGUI\confirmDefinitionDeletion(), ilTermDefinitionEditorGUI\executeCommand(), ilObjQuestionPoolGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjGlossary\exportHTML(), ilObjContentObject\exportHTML(), ilCOPageHTMLExport\exportStyles(), ilAuthLoginPageEditorGUI\forwardToPageObject(), ilContainerGUI\forwardToPageObject(), ilContainerGUI\getContainerPageHTML(), ilStartUpGUI\getLoginPageEditorHTML(), ilContainerStartObjectsContentGUI\getPageHTML(), ilLMPresentationGUI\ilGlossary(), ilLMPresentationGUI\ilPage(), ilAssQuestionPreviewGUI\initStyleSheets(), ilGlossaryPresentationGUI\listDefinitions(), ilGlossaryTermGUI\listDefinitions(), ilGlossaryPresentationGUI\listTermByGiven(), ilLMEditorGUI\main_header(), ilTestEvaluationGUI\outCorrectSolution(), ilTestPlayerAbstractGUI\outCorrectSolution(), ilTestPlayerAbstractGUI\populateSyntaxStyleBlock(), ilObjWikiGUI\printViewObject(), ilSCORM2004NodeGUI\setContentStyle(), ilObjDlBookGUI\showAbstract(), ilObjDlBookGUI\showCitation(), ilContainerObjectiveGUI\showObjectives(), ilObjMediaPoolGUI\showPage(), and ilLMPresentationGUI\showPrintView().
ilObjStyleSheet::getTemplate | ( | $a_t_id | ) |
Get template.
Definition at line 3467 of file class.ilObjStyleSheet.php.
References $ilDB, and getTemplateClasses().
ilObjStyleSheet::getTemplateClasses | ( | $a_tid | ) |
Get template classes.
Definition at line 3368 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by getTemplate(), and getTemplates().
ilObjStyleSheet::getTemplates | ( | $a_type | ) |
Get table templates of style.
Definition at line 3346 of file class.ilObjStyleSheet.php.
References $ilDB, $templates, and getTemplateClasses().
Referenced by getTemplateXML(), and getXML().
ilObjStyleSheet::getTemplateXML | ( | ) |
Get table template xml.
Definition at line 3506 of file class.ilObjStyleSheet.php.
References $ilDB, $t, ilObject\$type, _getTemplateClassTypes(), and getTemplates().
ilObjStyleSheet::getThumbnailsDirectory | ( | ) |
Get thumbnails directory.
Definition at line 1277 of file class.ilObjStyleSheet.php.
References getImagesDirectory().
Referenced by deleteImage(), and uploadImage().
ilObjStyleSheet::getUpToDate | ( | ) |
Get up to date.
Definition at line 593 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::getXML | ( | ) |
get xml representation of style object todo: add mq_id
Definition at line 1974 of file class.ilObjStyleSheet.php.
References $t, _getTemplateClassTypes(), getColors(), ilObject\getDescription(), getTemplates(), and ilObject\getTitle().
Referenced by exportXML().
ilObjStyleSheet::handleXmlString | ( | $a_str | ) |
ilObjStyleSheet::ilClone | ( | ) |
clone style sheet (note: styles have no ref ids and return an object id)
public
Definition at line 1145 of file class.ilObjStyleSheet.php.
References ilObject\$lng, $log, ilObject\getDescription(), ilObject\getId(), ilObject\getTitle(), ilObject\getType(), ilObjStyleSheet(), and lookupStyleSetting().
ilObjStyleSheet::ilObjStyleSheet | ( | $a_id = 0 , |
|
$a_call_by_reference = false |
|||
) |
Constructor public.
integer | reference_id or object_id |
boolean | treat the id as reference_id (true) or object_id (false) |
Definition at line 537 of file class.ilObjStyleSheet.php.
Referenced by copyCharacteristic(), create(), getContentStylePath(), and ilClone().
ilObjStyleSheet::import | ( | $a_file | ) |
Import.
Definition at line 2213 of file class.ilObjStyleSheet.php.
References $file, _addMissingStyleClassesToStyle(), createFromXMLFile(), createImagesDirectory(), createImportDirectory(), ilObject\getId(), ilUtil\moveUploadedFile(), ilUtil\rCopy(), read(), ilUtil\unzip(), and writeCSSFile().
|
static |
Lookup object style.
Definition at line 3679 of file class.ilObjStyleSheet.php.
References $ilDB, and ilObject\_lookupType().
Referenced by ilObjCategoryGUI\afterSave(), ilObjBlog\doRead(), ilObjPortfolioBase\doRead(), ilBlogExporter\getXmlExportTailDependencies(), ilBlogDataSet\getXmlRecord(), ilObjGlossary\read(), ilObjWiki\read(), and ilContainer\read().
ilObjStyleSheet::lookupStyleSetting | ( | $a_name | ) |
Lookup style setting.
Definition at line 3649 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by ilClone().
ilObjStyleSheet::lookupTemplateName | ( | $a_t_id | ) |
Lookup table template name for template ID.
Definition at line 3488 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by ilObjStyleSheetGUI\updateTemplateObject().
ilObjStyleSheet::lookupTemplatePreview | ( | $a_t_id | ) |
Lookup table template preview.
Definition at line 3577 of file class.ilObjStyleSheet.php.
References $ilDB.
ilObjStyleSheet::putInTree | ( | ) |
Put in tree (show error message, since styles do not use ref ids)
Definition at line 569 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::read | ( | ) |
read style properties
Definition at line 1476 of file class.ilObjStyleSheet.php.
References $ilDB, $res, ilObject\getId(), setScope(), and setUpToDate().
Referenced by addParameter(), create(), createFromXMLFile(), import(), and update().
ilObjStyleSheet::removeColor | ( | $a_name | ) |
ilObjStyleSheet::removeTemplate | ( | $a_t_id | ) |
ilObjStyleSheet::replaceStylePar | ( | $a_tag, | |
$a_class, | |||
$a_par, | |||
$a_val, | |||
$a_type, | |||
$a_mq_id = 0 , |
|||
$a_custom = false |
|||
) |
Set style parameter per tag/class/parameter.
Definition at line 1887 of file class.ilObjStyleSheet.php.
References _replaceStylePar(), and ilObject\getId().
Referenced by copyCharacteristic(), and updateColor().
ilObjStyleSheet::saveHideStatus | ( | $a_type, | |
$a_char, | |||
$a_hide | |||
) |
Save characteristic hide status.
Definition at line 1110 of file class.ilObjStyleSheet.php.
References $ilDB, and ilObject\getId().
ilObjStyleSheet::saveMediaQueryOrder | ( | $a_order_nr = null | ) |
Save media query order.
int | $a_order_nr | order nr |
Definition at line 3314 of file class.ilObjStyleSheet.php.
References $ilDB, getMediaQueries(), and ilUtil\sortArray().
Referenced by deleteMediaQuery().
ilObjStyleSheet::setCharacteristics | ( | $a_chars | ) |
Set characteristics.
Definition at line 1101 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::setExportSubDir | ( | $a_dir | ) |
Set local directory, that will be included within the zip file.
Definition at line 2108 of file class.ilObjStyleSheet.php.
Referenced by ilContObjectExport\buildExportFileXML().
ilObjStyleSheet::setRefId | ( | ) |
Set ref id (show error message, since styles do not use ref ids)
Definition at line 552 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::setScope | ( | $a_scope | ) |
Set scope.
Definition at line 601 of file class.ilObjStyleSheet.php.
Referenced by read().
ilObjStyleSheet::setStyle | ( | $a_style | ) |
set styles
Definition at line 1953 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::setUpToDate | ( | $a_up_to_date = true | ) |
Set style up to date (false + update will trigger css generation next time)
Definition at line 585 of file class.ilObjStyleSheet.php.
Referenced by addCharacteristic(), deleteCharacteristic(), read(), and writeCSSFile().
ilObjStyleSheet::templateExists | ( | $a_template_name | ) |
Check whether template exists.
Definition at line 3450 of file class.ilObjStyleSheet.php.
References $ilDB.
ilObjStyleSheet::update | ( | ) |
Definition at line 1852 of file class.ilObjStyleSheet.php.
References $ilDB, ilObject\getId(), getScope(), read(), and writeCSSFile().
Referenced by createFromXMLFile().
ilObjStyleSheet::updateColor | ( | $a_name, | |
$a_new_name, | |||
$a_code | |||
) |
Update color.
Definition at line 2912 of file class.ilObjStyleSheet.php.
References $ilDB, _writeUpToDate(), ilObject\getId(), and replaceStylePar().
ilObjStyleSheet::updateMediaQuery | ( | $a_id, | |
$a_mquery | |||
) |
Update media query.
int | $a_id | id |
string | $a_mquery | media query |
Definition at line 3267 of file class.ilObjStyleSheet.php.
References $ilDB.
ilObjStyleSheet::updateStyleParameter | ( | $a_id, | |
$a_value | |||
) |
update style parameter per id
int | $a_id | style parameter id |
int | $a_id | style parameter value |
Definition at line 1872 of file class.ilObjStyleSheet.php.
References $ilDB.
ilObjStyleSheet::updateTemplate | ( | $a_t_id, | |
$a_name, | |||
$a_classes | |||
) |
ilObjStyleSheet::uploadImage | ( | $a_file | ) |
Upload image.
Definition at line 1312 of file class.ilObjStyleSheet.php.
References createImagesDirectory(), getImagesDirectory(), getThumbnailsDirectory(), ilUtil\moveUploadedFile(), and ilUtil\resizeImage().
ilObjStyleSheet::writeCSSFile | ( | $a_target_file = "" , |
|
$a_image_dir = "" |
|||
) |
write css file to webspace directory
Definition at line 1559 of file class.ilObjStyleSheet.php.
References _writeUpToDate(), getColorCodeForName(), ilObject\getId(), getMediaQueries(), getStyle(), ilUtil\getWebspaceDir(), and setUpToDate().
Referenced by addParameter(), create(), import(), and update().
ilObjStyleSheet::writeStyleSetting | ( | $a_name, | |
$a_value | |||
) |
|
static |
Write style usage.
Definition at line 3665 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by ilObjCategoryGUI\afterSave(), ilObjGlossary\create(), ilObjWiki\create(), ilContainer\create(), ilObjBlog\doUpdate(), ilObjPortfolioBase\doUpdate(), ilBlogImporter\finalProcessing(), ilObjGlossary\update(), ilObjWiki\update(), and ilContainer\update().
ilObjStyleSheet::writeTemplatePreview | ( | $a_t_id, | |
$a_preview_html | |||
) |
Write table template preview.
Definition at line 3556 of file class.ilObjStyleSheet.php.
References $ilDB.
Referenced by addTemplate().
|
static |
Definition at line 283 of file class.ilObjStyleSheet.php.
|
staticprotected |
Definition at line 529 of file class.ilObjStyleSheet.php.
|
staticprotected |
Definition at line 527 of file class.ilObjStyleSheet.php.
|
staticprotected |
Definition at line 528 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 376 of file class.ilObjStyleSheet.php.
Referenced by _addMissingStyleClassesToAllStyles(), and deleteCharacteristic().
|
static |
Definition at line 270 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 242 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 278 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 19 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 20 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 23 of file class.ilObjStyleSheet.php.
Referenced by getStyleParameterGroups().
|
static |
Definition at line 372 of file class.ilObjStyleSheet.php.
ilObjStyleSheet::$style |
Definition at line 17 of file class.ilObjStyleSheet.php.
Referenced by getStyle().
|
static |
Definition at line 247 of file class.ilObjStyleSheet.php.
|
static |
Definition at line 496 of file class.ilObjStyleSheet.php.
Referenced by create(), and getTemplates().