Class Tx_ExtBibsonomyCsl_Helper

Description

Helper Class

Located in /Classes/Lib/Helper.php (line 33)


	
			
Method Summary
static string getDataFromCSLFile (string $filename, [string $charset = 'UTF-8'])
static string replaceSpecialCharacters (string $string)
void queryForLayouts ()
type user_getLayouts (type $config)
Methods
static method createStylesheetObject (line 79)

Creates an object of type Tx_ExtBibsonomyCsl_Domain_Model_CitationStylesheet from the given xml code and PID. The xml code will be parsed for a "title"-Tag and a "id"-Tag.

  • access: public
static Tx_ExtBibsonomyCsl_Domain_Model_CitationStylesheet createStylesheetObject (string $xmlSource, integer $pid)
  • string $xmlSource
  • integer $pid
static method getDataFromCSLFile (line 106)

Opens and reads a file into a variable. Then, the charset will be checked and adjusted if necessary. It returns the variable.

  • access: public
static string getDataFromCSLFile (string $filename, [string $charset = 'UTF-8'])
  • string $filename: name with path to the file
  • string $charset: = 'UTF-8'
static method replaceSpecialCharacters (line 147)

replaces all characters that are not a-z, A-Z, 0-9 with underscore character _

  • access: public
static string replaceSpecialCharacters (string $string)
  • string $string
queryForLayouts (line 57)
  • access: private
void queryForLayouts ()
user_getLayouts (line 42)

creates list of citation stylesheet items for the flexform in frontend plugin.

  • access: public
type user_getLayouts (type $config)
  • type $config

Documentation generated on Mon, 08 Oct 2012 14:35:47 +0200 by phpDocumentor 1.4.4