ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ZipStream\Option\File Class Reference
+ Collaboration diagram for ZipStream\Option\File:

Public Member Functions

 defaultTo (Archive $archiveOptions)
 
 getComment ()
 
 setComment (string $comment)
 
 getMethod ()
 
 setMethod (Method $method)
 
 getDeflateLevel ()
 
 setDeflateLevel (int $deflateLevel)
 
 getTime ()
 
 setTime (DateTime $time)
 
 getSize ()
 
 setSize (int $size)
 

Private Attributes

 $comment = ''
 
 $method
 
 $deflateLevel
 
 $time
 
 $size = 0
 

Detailed Description

Definition at line 8 of file File.php.

Member Function Documentation

◆ defaultTo()

ZipStream\Option\File::defaultTo ( Archive  $archiveOptions)

Definition at line 31 of file File.php.

References ZipStream\Option\Archive\getDeflateLevel().

31  : void
32  {
33  $this->deflateLevel = $this->deflateLevel ?: $archiveOptions->getDeflateLevel();
34  $this->time = $this->time ?: new DateTime();
35  }
+ Here is the call graph for this function:

◆ getComment()

ZipStream\Option\File::getComment ( )
Returns
string

Definition at line 40 of file File.php.

References ZipStream\Option\File\$comment.

40  : string
41  {
42  return $this->comment;
43  }

◆ getDeflateLevel()

ZipStream\Option\File::getDeflateLevel ( )
Returns
int

Definition at line 72 of file File.php.

References ZipStream\Option\Archive\DEFAULT_DEFLATE_LEVEL.

72  : int
73  {
74  return $this->deflateLevel ?: Archive::DEFAULT_DEFLATE_LEVEL;
75  }

◆ getMethod()

ZipStream\Option\File::getMethod ( )
Returns
Method

Definition at line 56 of file File.php.

References ZipStream\Option\Method\DEFLATE.

56  : Method
57  {
58  return $this->method ?: Method::DEFLATE();
59  }
$sc Method

◆ getSize()

ZipStream\Option\File::getSize ( )
Returns
int

Definition at line 104 of file File.php.

References ZipStream\Option\File\$size.

104  : int
105  {
106  return $this->size;
107  }

◆ getTime()

ZipStream\Option\File::getTime ( )
Returns
DateTime

Definition at line 88 of file File.php.

References ZipStream\Option\File\$time.

88  : DateTime
89  {
90  return $this->time;
91  }

◆ setComment()

ZipStream\Option\File::setComment ( string  $comment)
Parameters
string$comment

Definition at line 48 of file File.php.

References ZipStream\Option\File\$comment, and comment().

48  : void
49  {
50  $this->comment = $comment;
51  }
comment()
Definition: comment.php:2
+ Here is the call graph for this function:

◆ setDeflateLevel()

ZipStream\Option\File::setDeflateLevel ( int  $deflateLevel)
Parameters
int$deflateLevel

Definition at line 80 of file File.php.

References ZipStream\Option\File\$deflateLevel.

80  : void
81  {
82  $this->deflateLevel = $deflateLevel;
83  }

◆ setMethod()

ZipStream\Option\File::setMethod ( Method  $method)
Parameters
Method$method

Definition at line 64 of file File.php.

References ZipStream\Option\File\$method.

64  : void
65  {
66  $this->method = $method;
67  }

◆ setSize()

ZipStream\Option\File::setSize ( int  $size)
Parameters
int$size

Definition at line 112 of file File.php.

References ZipStream\Option\File\$size, and size.

112  : void
113  {
114  $this->size = $size;
115  }
font size
Definition: langcheck.php:162

◆ setTime()

ZipStream\Option\File::setTime ( DateTime  $time)
Parameters
DateTime$time

Definition at line 96 of file File.php.

References ZipStream\Option\File\$time.

96  : void
97  {
98  $this->time = $time;
99  }

Field Documentation

◆ $comment

ZipStream\Option\File::$comment = ''
private

Definition at line 13 of file File.php.

Referenced by ZipStream\Option\File\getComment(), and ZipStream\Option\File\setComment().

◆ $deflateLevel

ZipStream\Option\File::$deflateLevel
private

Definition at line 21 of file File.php.

Referenced by ZipStream\Option\File\setDeflateLevel().

◆ $method

ZipStream\Option\File::$method
private

Definition at line 17 of file File.php.

Referenced by ZipStream\Option\File\setMethod().

◆ $size

ZipStream\Option\File::$size = 0
private

Definition at line 29 of file File.php.

Referenced by ZipStream\Option\File\getSize(), and ZipStream\Option\File\setSize().

◆ $time

ZipStream\Option\File::$time
private

Definition at line 25 of file File.php.

Referenced by ZipStream\Option\File\getTime(), and ZipStream\Option\File\setTime().


The documentation for this class was generated from the following file: