ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilFMSettings Class Reference

File Manager settings. More...

+ Collaboration diagram for ilFMSettings:

Public Member Functions

 enable ($a_status)
 Enable file manager.
 isEnabled ()
 check if enabled
 enableLocalFS ($a_stat)
 Enable local file system frame.
 isLocalFSEnabled ()
 Check if local file system frame is enabled by default.
 setMaxFileSize ($a_size)
 getMaxFileSize ()
 update ()
 Update settings.

Static Public Member Functions

static getInstance ()
 Get singleton instance.

Protected Member Functions

 getStorage ()
 Get storage.
 read ()
 Read settings.

Private Member Functions

 __construct ()
 Singleton constructor.

Private Attributes

 $storage = null
 $enabled = false
 $localFS = true
 $maxFileSize = 64

Static Private Attributes

static $instance = null

Detailed Description

File Manager settings.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 9 of file class.ilFMSettings.php.

Constructor & Destructor Documentation

ilFMSettings::__construct ( )
private

Singleton constructor.

Definition at line 21 of file class.ilFMSettings.php.

References read().

{
$this->storage = new ilSetting('fm');
$this->read();
}

+ Here is the call graph for this function:

Member Function Documentation

ilFMSettings::enable (   $a_status)

Enable file manager.

Parameters
bool$a_status

Definition at line 53 of file class.ilFMSettings.php.

Referenced by read().

{
$this->enabled = $a_status;
}

+ Here is the caller graph for this function:

ilFMSettings::enableLocalFS (   $a_stat)

Enable local file system frame.

Parameters
<type>$a_stat

Definition at line 71 of file class.ilFMSettings.php.

Referenced by read().

{
$this->localFS = $a_stat;
}

+ Here is the caller graph for this function:

static ilFMSettings::getInstance ( )
static
ilFMSettings::getMaxFileSize ( )

Definition at line 90 of file class.ilFMSettings.php.

References $maxFileSize.

Referenced by update().

{
}

+ Here is the caller graph for this function:

ilFMSettings::getStorage ( )
protected

Get storage.

Returns
ilSetting

Definition at line 44 of file class.ilFMSettings.php.

References $storage.

Referenced by read(), and update().

{
}

+ Here is the caller graph for this function:

ilFMSettings::isEnabled ( )

check if enabled

Returns
bool

Definition at line 62 of file class.ilFMSettings.php.

References $enabled.

Referenced by update().

{
}

+ Here is the caller graph for this function:

ilFMSettings::isLocalFSEnabled ( )

Check if local file system frame is enabled by default.

Returns
<type>

Definition at line 80 of file class.ilFMSettings.php.

References $localFS.

Referenced by update().

{
}

+ Here is the caller graph for this function:

ilFMSettings::read ( )
protected

Read settings.

Definition at line 109 of file class.ilFMSettings.php.

References enable(), enableLocalFS(), getStorage(), and setMaxFileSize().

Referenced by __construct().

{
$this->enable($this->getStorage()->get('enabled', $this->enabled));
$this->enableLocalFS($this->getStorage()->get('local'), $this->localFS);
$this->setMaxFileSize($this->getStorage()->get('maxFileSize',$this->maxFileSize));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilFMSettings::setMaxFileSize (   $a_size)

Definition at line 85 of file class.ilFMSettings.php.

Referenced by read().

{
$this->maxFileSize = $a_size;
}

+ Here is the caller graph for this function:

ilFMSettings::update ( )

Update settings.

Definition at line 99 of file class.ilFMSettings.php.

References getMaxFileSize(), getStorage(), isEnabled(), and isLocalFSEnabled().

{
$this->getStorage()->set('enabled',(int) $this->isEnabled());
$this->getStorage()->set('local',(int) $this->isLocalFSEnabled());
$this->getStorage()->set('maxFileSize', (int) $this->getMaxFileSize());
}

+ Here is the call graph for this function:

Field Documentation

ilFMSettings::$enabled = false
private

Definition at line 14 of file class.ilFMSettings.php.

Referenced by isEnabled().

ilFMSettings::$instance = null
staticprivate

Definition at line 11 of file class.ilFMSettings.php.

Referenced by getInstance().

ilFMSettings::$localFS = true
private

Definition at line 15 of file class.ilFMSettings.php.

Referenced by isLocalFSEnabled().

ilFMSettings::$maxFileSize = 64
private

Definition at line 16 of file class.ilFMSettings.php.

Referenced by getMaxFileSize().

ilFMSettings::$storage = null
private

Definition at line 13 of file class.ilFMSettings.php.

Referenced by getStorage().


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