Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: c:/www/apache/doc2//core/PhpdocSetupHandler.php
PHPDOC 2000/12/03 - PHPDoc

PhpdocSetupHandler

PhpdocObject
   |
  +-- PhpdocArgvHandler
     |
    +-- PhpdocSetupHandler

Handles the "setup".

 

private class PhpdocSetupHandler extends PhpdocArgvHandler

Handles the "setup".
This class provides all methods neccessary to "setup" Phpdoc and check thecurrent setup.

AuthorsUlf Wendel <ulf.wendel@phpdoc.de>
Version$Id: $

 
Direct known subclasses: Phpdoc

Methods inherited from PhpdocArgvHandler

handleargv, getargvhelpmessage

Methods inherited from PhpdocObject

setflagoutput, out, nametourl, outl, introspection

Public Method Summary

void

setSourceDirectory(string $sourcedir)

Sets the name of the directory with the source to scan.
void

setTemplateDirectory(string $sourcedir)

Sets the name of the directory with the templates.
bool

setApplication(string $application)

Sets the name of your application.
bool

setTarget(string $target)

Sets the target where the generated files are saved.

Private Method Summary

bool

setTargetFileSuffix(string $suffix)

Suffix for all rendered files in the application (not for the xml files)
bool

setSourceFileSuffix(mixed $suffix)

Suffix of all source code files in the application
array

checkStatus([ mixed $errors ])

Checks the current status of the object. Are all necessary informations to start parsing available?
string

getCheckedDirname(string $dirname)

Adds a slash at the end of the given filename if neccessary.

Fields inherited from PhpdocArgvHandler

$commands

Fields inherited from PhpdocObject

$err, $warn, $flag_output

Private Field Summary

string

$target

Name of the target directory.
string

$application

Name of the application parsed
string

$basedir

Basedir for all file operations
string

$targetFileSuffix

Suffix for all rendered files in the application (except for the xml files).
array

$sourceFileSuffix

Suffix of all source code files in the application
string

$sourceDirectory

Directory with the php sources to parse.

Public Method Details

setSourceDirectory

public void setSourceDirectory( string $sourcedir )

  Sets the name of the directory with the source to scan.

Parameter
string $sourcedir
Returns void


setTemplateDirectory

public void setTemplateDirectory( string $sourcedir )

  Sets the name of the directory with the templates.

Parameter
string $sourcedir
Returns void


setApplication

public bool setApplication( string $application )

  Sets the name of your application.
The application name gets used on many places in the default templates.

Parameter
string $application
name of the application
Returns bool $ok

Throws PhpdocError

setTarget

public bool setTarget( string $target )

  Sets the target where the generated files are saved.

Parameter
string $target
Returns bool $ok

Throws PhpdocError

Private Method Details

setTargetFileSuffix

private bool setTargetFileSuffix( string $suffix )

  Suffix for all rendered files in the application (not for the xml files)
By default the the suffix is set to ".html".

Parameter
string $suffix
string with the suffix
Returns bool $ok

See Also $targetFileSuffix
Author(s) Thomas Weinert <subjective@subjective.de>

setSourceFileSuffix

private bool setSourceFileSuffix( mixed $suffix )

  Suffix of all source code files in the application
By default only files with the suffix ".php" are recognized asphp source code files and parsed. If you used othersuffixes such as ".inc" you have to tell phpdoc to parsethem.

Parameter
mixed $suffix
string with one suffix or array of suffixes
Returns bool $ok

Throws PhpdocError
See Also $sourceFileSuffix

checkStatus

private array checkStatus( [ mixed $errors ] )

  Checks the current status of the object. Are all necessary informations to start parsing available?

Parameter
mixed $errors = >>""<<
Returns array $errors


getCheckedDirname

private string getCheckedDirname( string $dirname )

  Adds a slash at the end of the given filename if neccessary.

Parameter
string $dirname
Returns string

Directoryname


Private Field Details

$target

private string $target

>>""<<

Name of the target directory.


$application

private string $application

>>"PHPDoc"<<

Name of the application parsed

See Also setApplication()

$basedir

private string $basedir

>>""<<

Basedir for all file operations

See Also setApplication()

$targetFileSuffix

private string $targetFileSuffix

>>".html"<<

Suffix for all rendered files in the application (except for the xml files).

See Also setTargetFileSuffix()

$sourceFileSuffix

private array $sourceFileSuffix

>>array ( "php" )<<

Suffix of all source code files in the application
If you used other file suffixes than ".php" in you have to override this.variable using setSourceFileSuffix()

See Also setSourceFileSuffix()

$sourceDirectory

private string $sourceDirectory

>>""<<

Directory with the php sources to parse.

See Also setSourceDirectory()


Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta