Filestore Module
Implementation
When calling driver based methods such as FreePBX::Filestore→put('FTP',1,foo.tar.gz); you should wrap it in a try catch.
Exception code 501 method not implemented in driver
Exception code 404 Driver not implemented
Methods
listAll
Description | List all filestore types and locations |
---|---|
Example | FreePBX::Filestore()→listAll('all'); FreePBX::Filestore()→listAll(array('general','backup')); Argument can be a string or an array.
|
Returns | array() array(
'filestoreTypes' => array(
'FTP',
'SSH',
),
'locations' => array(
'FTP' => array(
array(
'id' => 1,
'name' => 'Name',
'description'
),
array(
'id' => 2,
'name' => 'Name',
'description'
),
),
'SSH' => array(
array(
'id' => 1,
'name' => 'Name',
'description'
),
array(
'id' => 2,
'name' => 'Name',
'description'
),
),
),
); |