[ Index ]

PHP Cross Reference of Nucleus CMS 3.32

title

Body

[close]

/nucleus/libs/ -> skinie.php (summary)

(no description)

File Size: 571 lines (16 kb)
Included or required: 4 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

SKINIMPORT:: (15 methods):
  SKINIMPORT()
  reset()
  readFile()
  getSkinNames()
  getTemplateNames()
  getInfo()
  writeToDatabase()
  checkSkinNameClashes()
  checkTemplateNameClashes()
  startElement()
  endElement()
  characterData()
  getCharacterData()
  clearCharacterData()
  searchForCandidates()

SKINEXPORT:: (6 methods):
  SKINEXPORT()
  addTemplate()
  addSkin()
  setInfo()
  export()
  escapeCDATA()


Class: SKINIMPORT  - X-Ref

This class contains two classes that can be used for importing and
exporting Nucleus skins: SKINIMPORT and SKINEXPORT

SKINIMPORT()   X-Ref
constructor initializes data structures


reset()   X-Ref
No description

readFile($filename, $metaOnly = 0)   X-Ref
Reads an XML file into memory

param: $filename
param: $metaOnly

getSkinNames()   X-Ref
Returns the list of skin names


getTemplateNames()   X-Ref
Returns the list of template names


getInfo()   X-Ref
Returns the extra information included in the XML file


writeToDatabase($allowOverwrite = 0)   X-Ref
Writes the skins and templates to the database

param: $allowOverwrite

checkSkinNameClashes()   X-Ref
returns an array of all the skin nameclashes (empty array when no name clashes)


checkTemplateNameClashes()   X-Ref
returns an array of all the template nameclashes
(empty array when no name clashes)


startElement($parser, $name, $attrs)   X-Ref
Called by XML parser for each new start element encountered


endElement($parser, $name)   X-Ref
Called by the XML parser for each closing tag encountered


characterData($parser, $data)   X-Ref
Called by XML parser for data inside elements


getCharacterData()   X-Ref
Returns the data collected so far


clearCharacterData()   X-Ref
Clears the data buffer


searchForCandidates($dir)   X-Ref
Static method that looks for importable XML files in subdirs of the given dir


Class: SKINEXPORT  - X-Ref

SKINEXPORT()   X-Ref
Constructor initializes data structures


addTemplate($id)   X-Ref
Adds a template to be exported

param: id

addSkin($id)   X-Ref
Adds a skin to be exported

param: id

setInfo($info)   X-Ref
Sets the extra info to be included in the exported file


export($setHeaders = 1)   X-Ref
Outputs the XML contents of the export file

param: $setHeaders

escapeCDATA($cdata)   X-Ref
Escapes CDATA content so it can be included in another CDATA section




Generated: Tue Feb 12 15:34:36 2008 Cross-referenced by PHPXref 0.7