ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
parses the template.xml that defines all styles of the current template More...
Public Member Functions | |
ilStyleDefinition ($a_template_id="") | |
Constructor. More... | |
getStyles () | |
get translation type (sys, db or 0)s More... | |
getTemplateId () | |
getTemplateName () | |
getTemplateVersion () | |
getStyle ($a_id) | |
getStyleName ($a_id) | |
getImageDirectory ($a_master_style, $a_substyle="") | |
getSoundDirectory ($a_id) | |
getAllTemplates () | |
setHandlers ($a_xml_parser) | |
set event handler More... | |
handlerBeginTag ($a_xml_parser, $a_name, $a_attribs) | |
start tag handler More... | |
handlerCharacterData ($a_xml_parser, $a_data) | |
end tag handler More... | |
handlerEndTag ($a_xml_parser, $a_name) | |
end tag handler More... | |
writeSystemStyleCategoryAssignment ($a_skin_id, $a_style_id, $a_substyle, $a_ref_id) | |
Write category assignment. More... | |
deleteSystemStyleCategoryAssignment ($a_skin_id, $a_style_id, $a_substyle, $a_ref_id) | |
Delete category style assignment. More... | |
![]() | |
ilSaxParser ($a_xml_file='', $throwException=false) | |
Constructor setup ILIAS global object public. More... | |
setXMLContent ($a_xml_content) | |
getXMLContent () | |
getInputType () | |
startParsing () | |
stores xml data in array More... | |
createParser () | |
create parser More... | |
setOptions ($a_xml_parser) | |
set parser options More... | |
setHandlers ($a_xml_parser) | |
set event handler should be overwritten by inherited class private More... | |
openXMLFile () | |
open xml file More... | |
parse ($a_xml_parser, $a_fp=null) | |
parse xml file More... | |
freeParser ($a_xml_parser) | |
free xml parser handle More... | |
setThrowException ($throwException) | |
set error handling More... | |
![]() | |
PEAR ($error_class=null) | |
Constructor. More... | |
_PEAR () | |
Destructor (the emulated type of...). More... | |
& | getStaticProperty ($class, $var) |
If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. More... | |
registerShutdownFunc ($func, $args=array()) | |
Use this function to register a shutdown method for static classes. More... | |
isError ($data, $code=null) | |
Tell whether a value is a PEAR error. More... | |
setErrorHandling ($mode=null, $options=null) | |
Sets how errors generated by this object should be handled. More... | |
expectError ($code=' *') | |
This method is used to tell which errors you expect to get. More... | |
popExpect () | |
This method pops one element off the expected error codes stack. More... | |
_checkDelExpect ($error_code) | |
This method checks unsets an error code if available. More... | |
delExpect ($error_code) | |
This method deletes all occurences of the specified element from the expected error codes stack. More... | |
& | raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. More... | |
& | throwError ($message=null, $code=null, $userinfo=null) |
Simpler form of raiseError with fewer options. More... | |
staticPushErrorHandling ($mode, $options=null) | |
staticPopErrorHandling () | |
pushErrorHandling ($mode, $options=null) | |
Push a new error handler on top of the error handler options stack. More... | |
popErrorHandling () | |
Pop the last error handler used. More... | |
loadExtension ($ext) | |
OS independant PHP extension load. More... | |
Static Public Member Functions | |
static | _getAllTemplates () |
static | styleExists ($skin, $style) |
Check wheter a style exists. More... | |
static | skinExists ($skin) |
Check wheter a skin exists. More... | |
static | getCurrentStyle () |
get the current style More... | |
static | getCurrentMasterStyle () |
get the current style More... | |
static | setCurrentSkin ($a_skin) |
set a new current skin More... | |
static | setCurrentStyle ($a_style) |
set a new current style More... | |
static | getAllSkinStyles () |
Get all skins/styles. More... | |
static | getSystemStyleCategoryAssignments ($a_skin_id, $a_style_id) |
Get all system style category assignments. More... | |
Static Public Attributes | |
static | $current_skin |
static | $current_style |
static | $current_master_style |
Additional Inherited Members | |
![]() | |
$input_type = null | |
$xml_content = '' | |
$ilias | |
$lng | |
$xml_file | |
$throwException = false | |
![]() | |
$_debug = false | |
$_default_error_mode = null | |
$_default_error_options = null | |
$_default_error_handler = '' | |
$_error_class = 'PEAR_Error' | |
$_expected_errors = array() | |
![]() | |
handleError ($message, $code) | |
use given error handler to handle error message or internal ilias error message handle More... | |
parses the template.xml that defines all styles of the current template
Definition at line 14 of file class.ilStyleDefinition.php.
|
static |
Definition at line 125 of file class.ilStyleDefinition.php.
References $file.
Referenced by ilUserImportParser\ilUserImportParser().
ilStyleDefinition::deleteSystemStyleCategoryAssignment | ( | $a_skin_id, | |
$a_style_id, | |||
$a_substyle, | |||
$a_ref_id | |||
) |
Delete category style assignment.
Definition at line 592 of file class.ilStyleDefinition.php.
References $ilDB.
Referenced by ilObjStyleSettingsGUI\deleteSysStyleCatAssignmentsObject().
|
static |
Get all skins/styles.
Definition at line 505 of file class.ilStyleDefinition.php.
References $style, ilObjUser\_getNumberOfUsersForStyle(), and ilStyleDefinition().
Referenced by ilObjStyleSettingsGUI\assignStylesToCatsObject(), ilObjStyleSettingsGUI\editSystemStylesObject(), ilSystemStylesTableGUI\getStyles(), and ilObjStyleSettingsGUI\saveStyleSettingsObject().
ilStyleDefinition::getAllTemplates | ( | ) |
Definition at line 156 of file class.ilStyleDefinition.php.
|
static |
get the current style
use always this function instead of getting the account's style the current style may be changed on the fly by setCurrentStyle()
Definition at line 428 of file class.ilStyleDefinition.php.
References ilSaxParser\$ilias.
Referenced by ilUtil\getImagePath().
|
static |
get the current style
use always this function instead of getting the account's style the current style may be changed on the fly by setCurrentStyle()
Definition at line 362 of file class.ilStyleDefinition.php.
References $_GET, ilSaxParser\$ilias, and $path.
Referenced by ilUtil\getImagePath(), and ilUtil\getStyleSheetLocation().
ilStyleDefinition::getImageDirectory | ( | $a_master_style, | |
$a_substyle = "" |
|||
) |
Definition at line 111 of file class.ilStyleDefinition.php.
ilStyleDefinition::getSoundDirectory | ( | $a_id | ) |
Definition at line 120 of file class.ilStyleDefinition.php.
ilStyleDefinition::getStyle | ( | $a_id | ) |
Definition at line 100 of file class.ilStyleDefinition.php.
ilStyleDefinition::getStyleName | ( | $a_id | ) |
Definition at line 106 of file class.ilStyleDefinition.php.
ilStyleDefinition::getStyles | ( | ) |
get translation type (sys, db or 0)s
string | object type public |
Definition at line 71 of file class.ilStyleDefinition.php.
|
static |
Get all system style category assignments.
string | $a_skin_id | skin id |
string | $a_style_id | style id |
Definition at line 549 of file class.ilStyleDefinition.php.
References $ilDB.
Referenced by ilSystemStylesTableGUI\fillRow(), and ilSysStyleCatAssignmentTableGUI\getStyleCatAssignments().
ilStyleDefinition::getTemplateId | ( | ) |
Definition at line 84 of file class.ilStyleDefinition.php.
References $template_id.
ilStyleDefinition::getTemplateName | ( | ) |
Definition at line 90 of file class.ilStyleDefinition.php.
ilStyleDefinition::getTemplateVersion | ( | ) |
Definition at line 95 of file class.ilStyleDefinition.php.
ilStyleDefinition::handlerBeginTag | ( | $a_xml_parser, | |
$a_name, | |||
$a_attribs | |||
) |
start tag handler
ressouce | internal xml_parser_handler |
string | element tag name |
array | element attributes private |
Definition at line 185 of file class.ilStyleDefinition.php.
ilStyleDefinition::handlerCharacterData | ( | $a_xml_parser, | |
$a_data | |||
) |
end tag handler
ressouce | internal xml_parser_handler |
string | data private |
Definition at line 298 of file class.ilStyleDefinition.php.
ilStyleDefinition::handlerEndTag | ( | $a_xml_parser, | |
$a_name | |||
) |
end tag handler
ressouce | internal xml_parser_handler |
string | element tag name private |
Definition at line 321 of file class.ilStyleDefinition.php.
References ilSaxParser\$ilias.
ilStyleDefinition::ilStyleDefinition | ( | $a_template_id = "" | ) |
Constructor.
parse
public
Definition at line 39 of file class.ilStyleDefinition.php.
References ilSaxParser\$ilias.
Referenced by getAllSkinStyles(), and setCurrentSkin().
|
static |
set a new current skin
string | skin id |
Definition at line 474 of file class.ilStyleDefinition.php.
References ilStyleDefinition().
|
static |
set a new current style
string | style id |
Definition at line 494 of file class.ilStyleDefinition.php.
ilStyleDefinition::setHandlers | ( | $a_xml_parser | ) |
set event handler
ressouce | internal xml_parser_handler private |
Definition at line 170 of file class.ilStyleDefinition.php.
|
static |
Check wheter a skin exists.
string | $skin | skin id |
Definition at line 272 of file class.ilStyleDefinition.php.
Referenced by ilObjUser\read().
|
static |
Check wheter a style exists.
string | $skin | skin id |
string | $style | style id |
Definition at line 242 of file class.ilStyleDefinition.php.
References $style.
ilStyleDefinition::writeSystemStyleCategoryAssignment | ( | $a_skin_id, | |
$a_style_id, | |||
$a_substyle, | |||
$a_ref_id | |||
) |
Write category assignment.
Definition at line 572 of file class.ilStyleDefinition.php.
References $ilDB.
Referenced by ilObjStyleSettingsGUI\saveStyleCatAssignmentObject().
|
static |
Definition at line 29 of file class.ilStyleDefinition.php.
|
static |
Definition at line 20 of file class.ilStyleDefinition.php.
|
static |
Definition at line 27 of file class.ilStyleDefinition.php.