TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
AbstractFindAdapter Class Reference
Inheritance diagram for AbstractFindAdapter:
AbstractAdapter AdapterInterface BsdFindAdapter GnuFindAdapter

Public Member Functions

 __construct ()
 
 searchInDirectory ($dir)
 
- Public Member Functions inherited from AbstractAdapter
 isSupported ()
 
 setFollowLinks ($followLinks)
 
 setMode ($mode)
 
 setDepths (array $depths)
 
 setExclude (array $exclude)
 
 setNames (array $names)
 
 setNotNames (array $notNames)
 
 setContains (array $contains)
 
 setNotContains (array $notContains)
 
 setSizes (array $sizes)
 
 setDates (array $dates)
 
 setFilters (array $filters)
 
 setSort ($sort)
 
 setPath (array $paths)
 
 setNotPath (array $notPaths)
 
 ignoreUnreadableDirs ($ignore=true)
 
- Public Member Functions inherited from AdapterInterface
 getName ()
 

Protected Member Functions

 canBeUsed ()
 
 buildFindCommand (Command $command, $dir)
 
 buildFormatSorting (Command $command, $sort)
 
 buildContentFiltering (Command $command, array $contains, $not=false)
 
- Protected Member Functions inherited from AbstractAdapter
 canBeUsed ()
 

Protected Attributes

 $shell
 
- Protected Attributes inherited from AbstractAdapter
 $followLinks = false
 
 $mode = 0
 
 $minDepth = 0
 
 $maxDepth = PHP_INT_MAX
 
 $exclude = array()
 
 $names = array()
 
 $notNames = array()
 
 $contains = array()
 
 $notContains = array()
 
 $sizes = array()
 
 $dates = array()
 
 $filters = array()
 
 $sort = false
 
 $paths = array()
 
 $notPaths = array()
 
 $ignoreUnreadableDirs = false
 

Private Member Functions

 buildNamesFiltering (Command $command, array $names, $not=false)
 
 buildPathsFiltering (Command $command, $dir, array $paths, $not=false)
 
 buildSizesFiltering (Command $command, array $sizes)
 
 buildDatesFiltering (Command $command, array $dates)
 
 buildSorting (Command $command, $sort)
 

Detailed Description

Shell engine implementation using GNU find command.

Author
Jean-François Simon conta.nosp@m.ct@j.nosp@m.fsimo.nosp@m.n.fr

Definition at line 27 of file AbstractFindAdapter.php.

Constructor & Destructor Documentation

__construct ( )

Constructor.

Definition at line 37 of file AbstractFindAdapter.php.

Member Function Documentation

buildContentFiltering ( Command  $command,
array  $contains,
  $not = false 
)
abstractprotected
Parameters
Command$command
array$contains
bool$not

Referenced by AbstractFindAdapter\searchInDirectory().

buildDatesFiltering ( Command  $command,
array  $dates 
)
private
Parameters
Command$command
DateComparator[]$dates

Definition at line 270 of file AbstractFindAdapter.php.

References Command\add().

Referenced by AbstractFindAdapter\searchInDirectory().

buildFindCommand ( Command  $command,
  $dir 
)
protected
Parameters
Command$command
string$dir
Returns
Command

Definition at line 138 of file AbstractFindAdapter.php.

References Command\ins().

Referenced by AbstractFindAdapter\searchInDirectory().

buildFormatSorting ( Command  $command,
  $sort 
)
abstractprotected
Parameters
Command$command
string$sort

Referenced by AbstractFindAdapter\buildSorting().

buildNamesFiltering ( Command  $command,
array  $names,
  $not = false 
)
private
Parameters
Command$command
string[]$names
bool$not

Definition at line 152 of file AbstractFindAdapter.php.

References Command\add(), Command\cmd(), and Expression\create().

Referenced by AbstractFindAdapter\searchInDirectory().

buildPathsFiltering ( Command  $command,
  $dir,
array  $paths,
  $not = false 
)
private
Parameters
Command$command
string$dir
string[]$paths
bool$not

Definition at line 200 of file AbstractFindAdapter.php.

References Command\add(), Command\cmd(), and Expression\create().

Referenced by AbstractFindAdapter\searchInDirectory().

buildSizesFiltering ( Command  $command,
array  $sizes 
)
private
Parameters
Command$command
NumberComparator[]$sizes

Definition at line 240 of file AbstractFindAdapter.php.

References Command\add().

Referenced by AbstractFindAdapter\searchInDirectory().

buildSorting ( Command  $command,
  $sort 
)
private
Parameters
Command$command
string$sort
Exceptions
\InvalidArgumentException

Definition at line 310 of file AbstractFindAdapter.php.

References AbstractAdapter\$sort, and AbstractFindAdapter\buildFormatSorting().

Referenced by AbstractFindAdapter\searchInDirectory().

canBeUsed ( )
protected

{}

Definition at line 127 of file AbstractFindAdapter.php.

searchInDirectory (   $dir)

Member Data Documentation

$shell
protected

Definition at line 32 of file AbstractFindAdapter.php.