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

Class: Utility_Chmod

Source Location: /utility_classes/chmod.class.php

Class Overview




Variables

Methods



Class Details

[line 38]


[ Top ]


Class Variables

static $instance =  null

[line 45]

Singleton



Tags:

access:  public

Type:   object


[ Top ]

$base =  null

[line 52]

Reference to base class



Tags:

access:  public

Type:   object


[ Top ]

$_default_dir_mask =  0755

[line 66]

Default chmod value that will be applied to directories.



Tags:

access:  public

Type:   mixed


[ Top ]

$_default_file_mask =  0644

[line 59]

Default chmod value that will be applied to files.



Tags:

access:  public

Type:   mixed


[ Top ]

$_writable_dirs = array(
      '/'
   )

[line 98]

List of directories that are supposed to be writable



Tags:

access:  public

Type:   mixed


[ Top ]

$_writable_dir_mask =  0777

[line 82]

Chmod value that will be applied to directories that are supposed to be writable.



Tags:

access:  public

Type:   mixed


[ Top ]

$_writable_files = array(
      
   )

[line 89]

List of files that are supposed to be writable



Tags:

access:  public

Type:   mixed


[ Top ]

$_writable_file_mask =  0666

[line 74]

Chmod value that will be applied to files that are supposed to be writable.



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 108]

Utility_Chmod __construct( )

Start instance of base class, load configuration and establish database connection. Please don't call the constructor direcly, use the singleton pattern instead.



Tags:

access:  public


[ Top ]

method chmodDirDefault [line 241]

void chmodDirDefault( string $dir)

Changes rights to dir to fit the default dir mask definition.



Tags:

throws:  Utility_ChmodException
access:  public


Parameters:

string   $dir  

[ Top ]

method chmodDirWritable [line 228]

void chmodDirWritable( string $dir)

Changes rights to dir to fit the writable dir mask definition.



Tags:

throws:  Utility_ChmodException
access:  public


Parameters:

string   $dir  

[ Top ]

method chmodFileDefault [line 215]

void chmodFileDefault( string $file)

Changes rights to files to fit the default file mask definition.



Tags:

throws:  Utility_ChmodException
access:  public


Parameters:

string   $file  

[ Top ]

method chmodFileWritable [line 202]

void chmodFileWritable( string $file)

Changes rights to files to fit the writable file mask definition.



Tags:

throws:  Utility_ChmodException
access:  public


Parameters:

string   $file  

[ Top ]

method setDefaultDirMask [line 150]

void setDefaultDirMask( int $mode)

Sets default chmod mode for directories. Please note that you have to supply a four digit long octal mode value.



Tags:

throws:  Utility_ChmodException
access:  public


Parameters:

int   $mode  

[ Top ]

method setDefaultFileMask [line 133]

void setDefaultFileMask( int $mode)

Sets default chmod mode for files. Please note that you have to supply a four digit long octal mode value.



Tags:

throws:  Utility_ChmodException
access:  public


Parameters:

int   $mode  

[ Top ]

method setWritableDirMask [line 186]

void setWritableDirMask( int $mode)

Sets chmod mode for directories that are supposed to be writable.

Please note that you have to supply a four digit long octal mode value.




Tags:

throws:  Utility_ChmodException
access:  public


Parameters:

int   $mode  

[ Top ]

method setWritableFileMask [line 168]

void setWritableFileMask( int $mode)

Sets chmod mode for files that are supposed to be writable.

Please note that you have to supply a four digit long octal mode value.




Tags:

throws:  Utility_ChmodException
access:  public


Parameters:

int   $mode  

[ Top ]


Documentation generated on Sun, 08 Jan 2012 17:51:44 +0100 by phpDocumentor 1.4.3