\phpDocumentor\DescriptorProjectDescriptor

Represents the entire project with its files, namespaces and indexes.

Summary

Methods
Properties
Constants
__construct()
setName()
getName()
setFiles()
getFiles()
setIndexes()
getIndexes()
setNamespace()
getNamespace()
setSettings()
getSettings()
setPartials()
getPartials()
isVisibilityAllowed()
No public properties found
No constants found
No protected methods found
$name
$namespace
$files
$indexes
$settings
$partials
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

Type

string

Methods

__construct()

__construct(  $name) 

Initializes this descriptor.

Parameters

$name

setName()

setName(string  $name) : void

Sets the name for this project.

Parameters

string $name

getName()

getName() : string

Returns the name of this project.

Returns

string

setIndexes()

setIndexes(\phpDocumentor\Descriptor\Collection  $indexes) : void

Sets all indexes for this project.

An index is a compilation of references to elements, usually constructed in a compiler step, that aids template generation by providing a conveniently assembled list. An example of such an index is the 'marker' index where a list of TODOs and FIXMEs are located in a central location for reporting.

Parameters

\phpDocumentor\Descriptor\Collection $indexes

setNamespace()

setNamespace(\phpDocumentor\Descriptor\NamespaceDescriptor  $namespace) : void

Sets the root namespace for this project together with all sub-namespaces.

Parameters

\phpDocumentor\Descriptor\NamespaceDescriptor $namespace

setPartials()

setPartials(\phpDocumentor\Descriptor\Collection  $partials) : void

Sets all partials that can be used in a template.

Partials are blocks of text that can be inserted anywhere in a template using a special indicator. An example is the introduction partial that can add a custom piece of text to the homepage.

Parameters

\phpDocumentor\Descriptor\Collection $partials

isVisibilityAllowed()

isVisibilityAllowed(integer  $visibility) : boolean

Checks whether the Project supports the given visibility.

Parameters

integer $visibility

One of the VISIBILITY_* constants of the Settings class.

Returns

boolean