PHP 클래스 CopyTask, symfony-1.4

저자: Andreas Aderhold, [email protected]
상속: extends Task
파일 보기 프로젝트 열기: vjousse/symfony-1.4 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$completeDirMap asoc array containing mapped file names
$destDir the destiantion file (from xml attribute)
$destFile the source file (from xml attribute)
$dirCopyMap asoc array containing mapped file names
$file
$fileCopyMap
$fileUtils asoc array containing complete dir names
$filesets a instance of fileutils
$filterChains all fileset objects assigned to this task
$flatten include empty dirs? (from XML)
$includeEmpty sync timestamps (from xml attribute)
$mapperElement apply the FlattenMapper right way (from XML)
$overwrite the destination dir (from xml attribute)
$preserveLMT overwrite destination (from xml attribute)
$verbosity all filterchains objects assigned to this task

공개 메소드들

메소드 설명
__construct ( ) : object Sets up this object internal stuff. i.e. the Fileutils instance
createFileSet ( ) : object Nested creator, creates a FileSet for this task
createFilterChain ( ) : object Creates a filterchain
createMapper ( ) : object Nested creator, creates one Mapper for this task
main ( ) : true The main entry point where everything gets in motion.
setFile ( PhingFile $file ) : void Set the file. We have to manually take care of the type that is coming due to limited type support in php in and convert it manually if neccessary.
setIncludeEmptyDirs ( $bool ) : void Set the include empty dirs flag. IntrospectionHelper takes care of booleans in set* methods so we can assume that the right value (boolean primitive) is coming in here.
setOverwrite ( $bool ) : void Set the overwrite flag. IntrospectionHelper takes care of booleans in set* methods so we can assume that the right value (boolean primitive) is coming in here.
setTodir ( PhingFile $dir ) : void Set the toDir. We have to manually take care of the type that is coming due to limited type support in php in and convert it manually if neccessary.
setTofile ( PhingFile $file ) : void Set the toFile. We have to manually take care of the type that is coming due to limited type support in php in and convert it manually if neccessary.
setTstamp ( $bool ) : void Set the preserve timestmap flag. IntrospectionHelper takes care of booleans in set* methods so we can assume that the right value (boolean primitive) is coming in here.
setVerbose ( boolean $verbosity ) Used to force listing of all names of copied files.

보호된 메소드들

메소드 설명
doWork ( ) : void Actually copies the files
validateAttributes ( ) : void Validates attributes coming in from XML

비공개 메소드들

메소드 설명
_scan ( &$fromDir, &$toDir, &$files, &$dirs ) : void Compares source files to destination files to see if they should be copied.
buildMap ( &$fromDir, &$toDir, &$names, &$mapper, &$map ) : void Builds a map of filenames (from->to) that should be copied

메소드 상세

__construct() 공개 메소드

Sets up this object internal stuff. i.e. the Fileutils instance
public __construct ( ) : object
리턴 object The CopyTask instnace

createFileSet() 공개 메소드

Nested creator, creates a FileSet for this task
public createFileSet ( ) : object
리턴 object The created fileset object

createFilterChain() 공개 메소드

Creates a filterchain
public createFilterChain ( ) : object
리턴 object The created filterchain object

createMapper() 공개 메소드

Nested creator, creates one Mapper for this task
public createMapper ( ) : object
리턴 object The created Mapper type object

doWork() 보호된 메소드

Actually copies the files
protected doWork ( ) : void
리턴 void

main() 공개 메소드

The main entry point where everything gets in motion.
public main ( ) : true
리턴 true on success

setFile() 공개 메소드

Set the file. We have to manually take care of the type that is coming due to limited type support in php in and convert it manually if neccessary.
public setFile ( PhingFile $file ) : void
$file PhingFile
리턴 void

setIncludeEmptyDirs() 공개 메소드

Set the include empty dirs flag. IntrospectionHelper takes care of booleans in set* methods so we can assume that the right value (boolean primitive) is coming in here.
public setIncludeEmptyDirs ( $bool ) : void
리턴 void

setOverwrite() 공개 메소드

Set the overwrite flag. IntrospectionHelper takes care of booleans in set* methods so we can assume that the right value (boolean primitive) is coming in here.
public setOverwrite ( $bool ) : void
리턴 void

setTodir() 공개 메소드

Set the toDir. We have to manually take care of the type that is coming due to limited type support in php in and convert it manually if neccessary.
public setTodir ( PhingFile $dir ) : void
$dir PhingFile
리턴 void

setTofile() 공개 메소드

Set the toFile. We have to manually take care of the type that is coming due to limited type support in php in and convert it manually if neccessary.
public setTofile ( PhingFile $file ) : void
$file PhingFile
리턴 void

setTstamp() 공개 메소드

Set the preserve timestmap flag. IntrospectionHelper takes care of booleans in set* methods so we can assume that the right value (boolean primitive) is coming in here.
public setTstamp ( $bool ) : void
리턴 void

setVerbose() 공개 메소드

Used to force listing of all names of copied files.
public setVerbose ( boolean $verbosity )
$verbosity boolean

validateAttributes() 보호된 메소드

Validates attributes coming in from XML
protected validateAttributes ( ) : void
리턴 void

프로퍼티 상세

$completeDirMap 보호되어 있는 프로퍼티

asoc array containing mapped file names
protected $completeDirMap

$destDir 보호되어 있는 프로퍼티

the destiantion file (from xml attribute)
protected $destDir

$destFile 보호되어 있는 프로퍼티

the source file (from xml attribute)
protected $destFile

$dirCopyMap 보호되어 있는 프로퍼티

asoc array containing mapped file names
protected $dirCopyMap

$file 보호되어 있는 프로퍼티

protected $file

$fileCopyMap 보호되어 있는 프로퍼티

protected $fileCopyMap

$fileUtils 보호되어 있는 프로퍼티

asoc array containing complete dir names
protected $fileUtils

$filesets 보호되어 있는 프로퍼티

a instance of fileutils
protected $filesets

$filterChains 보호되어 있는 프로퍼티

all fileset objects assigned to this task
protected $filterChains

$flatten 보호되어 있는 프로퍼티

include empty dirs? (from XML)
protected $flatten

$includeEmpty 보호되어 있는 프로퍼티

sync timestamps (from xml attribute)
protected $includeEmpty

$mapperElement 보호되어 있는 프로퍼티

apply the FlattenMapper right way (from XML)
protected $mapperElement

$overwrite 보호되어 있는 프로퍼티

the destination dir (from xml attribute)
protected $overwrite

$preserveLMT 보호되어 있는 프로퍼티

overwrite destination (from xml attribute)
protected $preserveLMT

$verbosity 보호되어 있는 프로퍼티

all filterchains objects assigned to this task
protected $verbosity