public function isExtension($directory)
    {
        $returnValue = (bool) false;

        
        $hasStructure = $this->findStructureManifest($directory) !== false;
        $hasPHPManifest = false;
        
        $files = scandir($this->options['input']);
        if ($files !== false) {
        	foreach ($files as $f) {
				if (is_file($this->options['input'] . '/' .$f) && is_readable($this->options['input'] . '/' . $f)) {
					if ($f == 'manifest.php') {
						$hasPHPManifest = true;
					}
				}
        	}
        }
        
        $returnValue = $hasStructure || $hasPHPManifest;
        

        return (bool) $returnValue;
    }
public function isExtension($directory)
    {
        $returnValue = (bool) false;

        
        $hasStructure = $this->findStructureManifest($directory) !== false;
        $hasPHPManifest = false;
        
        $files = scandir($this->options['input']);
        if ($files !== false) {
        	foreach ($files as $f) {
				if (is_file($this->options['input'] . '/' .$f) && is_readable($this->options['input'] . '/' . $f)) {
					if ($f == 'manifest.php') {
						$hasPHPManifest = true;
					}
				}
        	}
        }
        
        $returnValue = $hasStructure || $hasPHPManifest;
        

        return (bool) $returnValue;
    }
public function isExtension ( $ directory ) { $ returnValue = ( bool ) false ; $ hasStructure = $ this -> findStructureManifest ( $ directory ) !== false ; $ hasPHPManifest = false ; $ files = scandir ( $ this -> options [ 'input' ] ) ; if ( $ files !== false ) { foreach ( $ files as $ f ) { if ( is_file ( $ this -> options [ 'input' ] . '/' . $ f ) && is_readable ( $ this -> options [ 'input' ] . '/' . $ f ) ) { if ( $ f == 'manifest.php' ) { $ hasPHPManifest = true ; } } } } $ returnValue = $ hasStructure || $ hasPHPManifest ; return ( bool ) $ returnValue ; }
Determines if an given directory actually contains a TAO extension.

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@param  string directory
@return boolean
Determines if an given directory actually contains a TAO extension .