|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Class ilPCSourceCode. More...
Inheritance diagram for ilPCSourceCode:
Collaboration diagram for ilPCSourceCode:Public Member Functions | |
| init () | |
| Init page content component. More... | |
| modifyPageContentPostXsl ($a_output, $outputmode="presentation") | |
| Modify page content after xsl. More... | |
| highlightText ($a_text, $proglang, $autoindent) | |
| Highligths Text with given ProgLang. More... | |
| hasHighlighter ($hfile_ext) | |
Public Member Functions inherited from ilPCParagraph | |
| init () | |
| Init page content component. More... | |
| setNode (&$a_node) | |
| Set Page Content Node. More... | |
| createAtNode (&$node) | |
| Create new page content (incl. More... | |
| createBeforeNode (&$node) | |
| Create new page content (incl. More... | |
| createAfter ($node) | |
| Create paragraph node (incl. More... | |
| create (&$a_pg_obj, $a_hier_id, $a_pc_id="") | |
| Create paragraph node (incl. More... | |
| setText ($a_text, $a_auto_split=false) | |
| Set (xml) content of text paragraph. More... | |
| getText ($a_short_mode=false) | |
| Get (xml) content of paragraph. More... | |
| getParagraphSequenceContent ($a_pg_obj) | |
| Get paragraph sequenc of current paragraph. More... | |
| setCharacteristic ($a_char) | |
| Set Characteristic of paragraph. More... | |
| getCharacteristic () | |
| Get characteristic of paragraph. More... | |
| setSubCharacteristic ($a_char) | |
| set attribute subcharacteristic More... | |
| getAutoIndent () | |
| Get AutoIndent (Code Paragraphs) More... | |
| setAutoIndent ($a_char) | |
| getSubCharacteristic () | |
| get attribute subcharacteristic More... | |
| setDownloadTitle ($a_char) | |
| set attribute download title More... | |
| getDownloadTitle () | |
| get attribute download title More... | |
| setShowLineNumbers ($a_char) | |
| set attribute showlinenumbers More... | |
| getShowLineNumbers () | |
| get attribute showlinenumbers More... | |
| setLanguage ($a_lang) | |
| set language More... | |
| getLanguage () | |
| get language More... | |
| input2xml ($a_text, $a_wysiwyg=0, $a_handle_lists=true) | |
| autoSplit ($a_text) | |
| This function splits a paragraph text that has been already processed with input2xml at each header position =header1=, ==header2== or ===header3=== and returns an array that contains the single chunks. More... | |
| handleNextBr ($a_str) | |
| Remove preceding More... | |
| removeTrailingBr ($a_str) | |
| Remove trailing More... | |
| getType () | |
| Need to override getType from ilPageContent to distinguish between Pararagraph and Source. More... | |
| saveJS ($a_pg_obj, $a_content, $a_char, $a_pc_id, $a_insert_at="") | |
| Save input coming from ajax. More... | |
| getLastSavedPCId ($a_pg_obj, $a_as_ajax_str=false) | |
| Get last inserted pc ids. More... | |
| updatePage ($a_page) | |
| Update page object (it would be better to have this centralized and to change the constructors and pass the page object instead the dom object) More... | |
| autoLinkGlossaries ($a_glos) | |
| Auto link glossaries. More... | |
| saveAnchors ($a_page, $a_domdoc) | |
| Save anchors. More... | |
| saveMetaKeywords ($a_page, $a_domdoc) | |
| save all keywords More... | |
| getJavascriptFiles ($a_mode) | |
| Get Javascript files. More... | |
| getOnloadCode ($a_mode) | |
| Get onload code. More... | |
Public Member Functions inherited from ilPageContent | |
| __construct ($a_pg_obj) | |
| Constructor. More... | |
| setPage ($a_val) | |
| Set page. More... | |
| getPage () | |
| Get page. More... | |
| init () | |
| Init object. More... | |
| getType () | |
| Get type of page content. More... | |
| setNode (&$a_node) | |
| Set xml node of page content. More... | |
| & | getNode () |
| Get xml node of page content. More... | |
| getJavascriptFiles () | |
| Get Javascript files. More... | |
| getCssFiles () | |
| Get css files. More... | |
| getOnloadCode () | |
| Get on load code. More... | |
| setHierId ($a_hier_id) | |
| Set hierarchical ID in xml structure. More... | |
| getHierId () | |
| Get hierarchical id. More... | |
| lookupHierId () | |
| Get hierarchical id from dom. More... | |
| readHierId () | |
| Read PC Id. More... | |
| setPcId ($a_pcid) | |
| Set PC Id. More... | |
| getPCId () | |
| Get PC Id. More... | |
| readPCId () | |
| Read PC Id. More... | |
| writePCId ($a_pc_id) | |
| Write pc id. More... | |
| isGreaterHierId ($a, $b) | |
| Check whether Hier ID $a is greater than Hier ID $b. More... | |
| setEnabled ($value) | |
| Set Enabled value for page content component. More... | |
| enable () | |
| Enable page content. More... | |
| disable () | |
| Disable page content. More... | |
| isEnabled () | |
| Check whether page content is enabled. More... | |
| createPageContentNode ($a_set_this_node=true) | |
| Create page content node (always use this method first when adding a new element) More... | |
| modifyPageContentPostXsl ($a_output, $a_mode) | |
| Modify page content after xsl. More... | |
Static Public Member Functions | |
| static | getLangVars () |
| Get lang vars needed for editing. More... | |
Static Public Member Functions inherited from ilPCParagraph | |
| static | _input2xml ($a_text, $a_lang, $a_wysiwyg=0, $a_handle_lists=true) |
| converts user input to xml More... | |
| static | intLinks2xml ($a_text) |
| internal links to xml More... | |
| static | input2xmlReplaceLists ($a_text) |
| Converts xml from DB to output in edit textarea. More... | |
| static | xml2outputReplaceLists ($a_text) |
| Replaces with *. More... | |
| static | segmentString ($a_haystack, $a_needles) |
| Segments a string into an array at each position of a substring. More... | |
| static | xml2output ($a_text, $a_wysiwyg=false, $a_replace_lists=true) |
| Converts xml from DB to output in edit textarea. More... | |
| static | handleAjaxContent ($a_content) |
| Handle ajax content. More... | |
| static | handleAjaxContentPost ($text) |
| Post input2xml handling of ajax content. More... | |
| static | autoLinkGlossariesPage ($a_page, $a_terms) |
| Auto link glossary of whole page. More... | |
| static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
| After page has been updated (or created) More... | |
| static | beforePageDelete ($a_page) |
| Before page is being deleted. More... | |
| static | afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr) |
| After page history entry has been created. More... | |
| static | _deleteAnchors ($a_parent_type, $a_page_id, $a_page_lang) |
| Delete anchors of a page. More... | |
| static | _saveAnchor ($a_parent_type, $a_page_id, $a_page_lang, $a_anchor_name) |
| Save an anchor. More... | |
| static | _readAnchors ($a_parent_type, $a_page_id, $a_page_lang="-") |
| Read anchors of a page. More... | |
Static Public Member Functions inherited from ilPageContent | |
| static | incEdId ($ed_id) |
| Increases an hierarchical editing id at lowest level (last number) More... | |
| static | decEdId ($ed_id) |
| Decreases an hierarchical editing id at lowest level (last number) More... | |
| static | haveSameContainer ($ed_id1, $ed_id2) |
| Check, if two ids are in same container. More... | |
| static | sortHierIds ($a_array) |
| Sort an array of Hier IDS in ascending order. More... | |
| static | getLangVars () |
| Get lang vars needed for editing. More... | |
| static | handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false) |
| Handle copied content. More... | |
| static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
| After page has been updated (or created) More... | |
| static | beforePageDelete ($a_page) |
| Before page is being deleted. More... | |
| static | afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr) |
| After page history entry has been created. More... | |
Additional Inherited Members | |
Data Fields inherited from ilPCParagraph | |
| $dom | |
| $par_node | |
Data Fields inherited from ilPageContent | |
| $hier_id | |
| $node | |
| $dom | |
Protected Member Functions inherited from ilPageContent | |
| setType ($a_type) | |
| Set Type. More... | |
Static Protected Member Functions inherited from ilPCParagraph | |
| static | linkTermsInDom ($a_dom, $a_terms, $a_par_node=null) |
| Link terms in a dom page object in bb style. More... | |
Class ilPCSourceCode.
Paragraph of ilPageObject
Definition at line 17 of file class.ilPCSourceCode.php.
|
static |
Get lang vars needed for editing.
Reimplemented from ilPageContent.
Definition at line 31 of file class.ilPCSourceCode.php.
| ilPCSourceCode::hasHighlighter | ( | $hfile_ext | ) |
Definition at line 186 of file class.ilPCSourceCode.php.
Referenced by highlightText().
Here is the caller graph for this function:| ilPCSourceCode::highlightText | ( | $a_text, | |
| $proglang, | |||
| $autoindent | |||
| ) |
Highligths Text with given ProgLang.
Definition at line 163 of file class.ilPCSourceCode.php.
References hasHighlighter().
Referenced by modifyPageContentPostXsl().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCSourceCode::init | ( | ) |
Init page content component.
Reimplemented from ilPCParagraph.
Definition at line 22 of file class.ilPCSourceCode.php.
References ilPageContent\setType().
Here is the call graph for this function:| ilPCSourceCode::modifyPageContentPostXsl | ( | $a_output, | |
$outputmode = "presentation" |
|||
| ) |
Modify page content after xsl.
| string | $a_output |
Reimplemented from ilPageContent.
Definition at line 42 of file class.ilPCSourceCode.php.
References ilPCParagraph\$dom, $n, $path, $res, ilPageContent\getPage(), highlightText(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function: