# types/selectors/SelectSelector.php

This selector just holds one other selector and forwards all requests to it. It exists so that there is a single selector type that can exist outside of any targets, as an element of project. It overrides all of the reference stuff so that it works as expected. Note that this is the only selector you can reference.

Author
  Hans Lellelid (Phing)
Author
  Bruce Atherton (Ant)
Package
  phing.types.selectors
Version
  $Revision: 526 $

## \SelectSelector
jump to top

Package: phing\types\selectors

This selector just holds one other selector and forwards all requests to it. It exists so that there is a single selector type that can exist outside of any targets, as an element of project. It overrides all of the reference stuff so that it works as expected. Note that this is the only selector you can reference.

Parent(s)
  \AndSelector < \BaseSelectorContainer < \BaseSelector < \DataType < \ProjectComponent
Author
  Hans Lellelid (Phing)
Author
  Bruce Atherton (Ant)
Version
  $Revision: 526 $

### Methods

`appendSelector( \selector $selector ) : \the`

Add a new selector into this container.

Parameters

Name | Type | Description
--- | --- | ---
$selector | \selector | the new selector to add

Returns

Type | Description
--- | ---
\the | selector that was added

`circularReference( ) : void`
inherited

Inherited from: DataType::circularReference()\AndSelector::circularReference()
`createAnd( ) : void`
inherited

Inherited from: BaseSelectorContainer::createAnd()\AndSelector::createAnd()
`createContains( ) : void`
inherited

Inherited from: BaseSelectorContainer::createContains()\AndSelector::createContains()
`createContainsRegexp( ) : void`
inherited

Inherited from: BaseSelectorContainer::createContainsRegexp()\AndSelector::createContainsRegexp()
`createCustom( ) : void`
inherited

Inherited from: BaseSelectorContainer::createCustom()\AndSelector::createCustom()
`createDate( ) : void`
inherited

Inherited from: BaseSelectorContainer::createDate()\AndSelector::createDate()
`createDepend( ) : void`
inherited

Inherited from: BaseSelectorContainer::createDepend()\AndSelector::createDepend()
`createDepth( ) : void`
inherited

Inherited from: BaseSelectorContainer::createDepth()\AndSelector::createDepth()
`createFilename( ) : void`
inherited

Inherited from: BaseSelectorContainer::createFilename()\AndSelector::createFilename()
`createMajority( ) : void`
inherited

Inherited from: BaseSelectorContainer::createMajority()\AndSelector::createMajority()
`createNone( ) : void`
inherited

Inherited from: BaseSelectorContainer::createNone()\AndSelector::createNone()
`createNot( ) : void`
inherited

Inherited from: BaseSelectorContainer::createNot()\AndSelector::createNot()
`createOr( ) : void`
inherited

Inherited from: BaseSelectorContainer::createOr()\AndSelector::createOr()
`createPresent( ) : void`
inherited

Inherited from: BaseSelectorContainer::createPresent()\AndSelector::createPresent()
`createSelector( ) : void`
inherited

Inherited from: BaseSelectorContainer::createSelector()\AndSelector::createSelector()
`createSize( ) : void`
inherited

Inherited from: BaseSelectorContainer::createSize()\AndSelector::createSize()
`createType( ) : void`
inherited

Inherited from: BaseSelectorContainer::createType()\AndSelector::createType()
`dieOnCircularReference( ) : void`
inherited

Inherited from: DataType::dieOnCircularReference()\AndSelector::dieOnCircularReference()
`getCheckedRef( ) : void`
inherited

Inherited from: DataType::getCheckedRef()\AndSelector::getCheckedRef()
`getDescription( ) : void`
inherited

Inherited from: DataType::getDescription()\AndSelector::getDescription()
`getError( ) : void`
inherited

Inherited from: BaseSelector::getError()\AndSelector::getError()
`getProject( ) : void`
inherited

Inherited from: ProjectComponent::getProject()\AndSelector::getProject()
`getRef( ) : void`

Performs the check for circular references and returns the referenced Selector.

`getSelectors( $p ) : void`

Returns the set of selectors as an array.

Parameters

Name | Type | Description
--- | --- | ---
$p |  |

`hasSelectors( ) : void`

Indicates whether there are any selectors here.

`isReference( ) : void`
inherited

Inherited from: DataType::isReference()\AndSelector::isReference()
`isSelected( \basedir $basedir, \filename $filename, \file $file ) : \whether`
inherited

Returns true (the file is selected) only if all other selectors agree that the file should be selected.

Inherited from: \AndSelector::isSelected()
Parameters

Name | Type | Description
--- | --- | ---
$basedir | \basedir | the base directory the scan is being done from
$filename | \filename | the name of the file to check
$file | \file | a PhingFile object for the filename that the selector can use

Returns

Type | Description
--- | ---
\whether | the file should be selected or not

`log( ) : void`
inherited

Inherited from: ProjectComponent::log()\AndSelector::log()
`noChildrenAllowed( ) : void`
inherited

Inherited from: DataType::noChildrenAllowed()\AndSelector::noChildrenAllowed()
`parsingComplete( ) : void`
inherited

Inherited from: DataType::parsingComplete()\AndSelector::parsingComplete()
`selectorCount( ) : void`

Gives the count of the number of selectors in this container

`selectorElements( ) : void`

Returns an enumerator for accessing the set of selectors.

`setDescription( ) : void`
inherited

Inherited from: DataType::setDescription()\AndSelector::setDescription()
`setError( ) : void`
inherited

Inherited from: BaseSelector::setError()\AndSelector::setError()
`setProject( ) : void`
inherited

Inherited from: ProjectComponent::setProject()\AndSelector::setProject()
`setRefid( ) : void`
inherited

Inherited from: DataType::setRefid()\AndSelector::setRefid()
`toString( ) : void`

`tooManyAttributes( ) : void`
inherited

Inherited from: DataType::tooManyAttributes()\AndSelector::tooManyAttributes()
`validate( ) : void`
inherited

Inherited from: BaseSelectorContainer::validate()\AndSelector::validate()
`verifySettings( ) : void`

Makes sure that there is only one entry, sets an error message if not.

Documentation was generated by DocBlox 0.17.1.