apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: File_Archive_Predicate_Custom

Source Location: /File_Archive-1.5.5/File/Archive/Predicate/Custom.php

Class Overview

File_Archive_Predicate
   |
   --File_Archive_Predicate_Custom

Custom predicate built by supplying a string expression


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: File_Archive_Predicate

File_Archive_Predicate::isTrue()
Indicates whether the current file from the reader should be kept

Class Details

[line 45]
Custom predicate built by supplying a string expression

Example: new File_Archive_Predicate_Custom("return strlen($name)<100;") new File_Archive_Predicate_Custom("strlen($name)<100;") new File_Archive_Predicate_Custom("strlen($name)<100") new File_Archive_Predicate_Custom("strlen($source->getFilename())<100")

  • See: File_Archive_Predicate, File_Archive_Reader_Filter


[ Top ]


Class Variables

$expression =

[line 47]


Type:   mixed


[ Top ]

$useMIME =

[line 50]


Type:   mixed


[ Top ]

$useName =

[line 48]


Type:   mixed


[ Top ]

$useStat =

[line 49]


Type:   mixed


[ Top ]



Method Detail

File_Archive_Predicate_Custom (Constructor)   [line 58]

File_Archive_Predicate_Custom File_Archive_Predicate_Custom( string $expression)


Parameters:

string   $expression   —  PHP code that evaluates too a boolean It can use the $source variable. If return is ommited, it will be added to the begining of the expression. A ; will also be added at the end so that you don't need to write it

[ Top ]

isTrue   [line 71]

void isTrue( &$source)

  • See: File_Archive_Predicate::isTrue()

Overrides File_Archive_Predicate::isTrue() (Indicates whether the current file from the reader should be kept)

Parameters:

   &$source   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:48:27 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.