phpDocumentor showsource
[ class tree: showsource ] [ index: showsource ] [ all elements ]

Class: ShowSource

Source Location: /myphp-1.9/myphp-1.9-showsource/html/util/ShowSource.php

Class ShowSource

Class Overview

Show the Source code for all HTML classes

The requested path and file names are scrambled

  1. Usage_
  2. $html = new ShowSource($path,$file);
  3. print $html->getHtml();
  4. Or
  5. ShowSource::display($path,$file);

Located in /myphp-1.9/myphp-1.9-showsource/html/util/ShowSource.php [line 42]



		
		
		
		

Properties

Methods

[ Top ]
Property Summary
String   $file  
String   $path  
String   $real  

[ Top ]
Method Summary
ShowSource   ShowSource()   Constructor
void   addHtml()   Add the current html to the SourceCode object
void   display()   Display html
String   getDemo()   Get the source code.
String   getHtml()   Get the source code
String   getSource()   Get the source code.
void   link()   Display a link
void   show()   Display show

[ Top ]
Properties
String   $file = '' [line 56]

[ Top ]
String   $path = '' [line 51]

[ Top ]
String   $real = '' [line 46]

[ Top ]
Methods
Constructor ShowSource  [line 63]

  ShowSource ShowSource( [String $path = ''], [String $file = '']  )

Constructor

Parameters:
String   $path:  The scrambled path to the file to show
String   $file:  The scrambled filename of the file to show


[ Top ]
addHtml  [line 194]

  void addHtml( [String $html = '']  )

Add the current html to the SourceCode object

  1. Usage:
  2. $element = new Element();
  3. $element->addHtml();
  4. Or
  5. $element = new Element();
  6. $element->addHtml($element->getStart());

Parameters:
String   $html:  Use other html than fetched from $element->getHtml()


[ Top ]
display  [line 223]

  void display( [String $path = ''], [String $file = '']  )

Display html

  1. Usage:
  2. ShowSource::display($path,$file);

Parameters:
String   $path:  The path to the file to show
String   $file:  The filename of the file to show

API Tags:
Static:  


[ Top ]
getDemo  [line 77]

  String getDemo( String $text  )

Get the source code.

Parameters:
String   $text:  The text to show

API Tags:
Return:  The html


[ Top ]
getHtml  [line 161]

  String getHtml( )

Get the source code


API Tags:
Return:  The source code of the file


[ Top ]
getSource  [line 120]

  String getSource( )

Get the source code.

Allow only i.e. CONTENT_FILE_NAME to be seen, due to security issues


API Tags:
Return:  The source code of the file


[ Top ]
link  [line 240]

  void link( [String $path = '.'], [String $file = 'content.php'], [String $aux = '']  )

Display a link

  1. Usage:
  2. ShowSource::link($path,$file,$aux);
  3. i.e. ShowSource::link('.','/content.php');

Parameters:
String   $path:  The path to the file to show
String   $file:  The filename of the file to show
String   $aux:  The type of link to use:
or <li>...</li>

API Tags:
Static:  


[ Top ]
show  [line 258]

  void show( [String $path = ''], [String $file = '']  )

Display show

  1. Usage:
  2. ShowSource::show($path,$file);

Parameters:
String   $path:  The path to the file to show
String   $file:  The filename of the file to show

API Tags:
Static:  


[ Top ]

Documentation generated on Thu, 22 Dec 2005 17:18:16 +0100 by phpDocumentor 1.3.0RC3