diff --git a/doc/html/RedBasicAuth_8php.html b/doc/html/RedBasicAuth_8php.html new file mode 100644 index 000000000..86984219c --- /dev/null +++ b/doc/html/RedBasicAuth_8php.html @@ -0,0 +1,127 @@ + + +
+ + + +![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | RedMatrix\RedDAV\RedBasicAuth |
Authentication backend class for RedDAV. More... | |
+Namespaces | |
namespace | RedMatrix\RedDAV |
![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | RedMatrix\RedDAV\RedDirectory |
RedDirectory class. More... | |
+Namespaces | |
namespace | RedMatrix\RedDAV |
![]() |
+
+ The Red Matrix
+
+ |
+
+Classes | |
class | RedMatrix\RedDAV\RedFile |
This class represents a file in DAV. More... | |
+Namespaces | |
namespace | RedMatrix\RedDAV |
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for RedMatrix\RedDAV\RedBasicAuth, including all inherited members.
+![]() |
+
+ The Red Matrix
+
+ |
+
Authentication backend class for RedDAV. + More...
++Public Member Functions | |
setCurrentUser ($name) | |
getCurrentUser () | |
setTimezone ($timezone) | |
Sets the timezone from the channel in RedBasicAuth. More... | |
getTimezone () | |
Returns the timezone. More... | |
setBrowserPlugin ($browser) | |
Set browser plugin for SabreDAV. More... | |
log () | |
Prints out all RedBasicAuth variables to logger(). More... | |
+Public Attributes | |
$channel_id = 0 | |
$channel_hash = '' | |
$observer = '' | |
$browser | |
$owner_id = 0 | |
$owner_nick = '' | |
+Protected Member Functions | |
validateUserPass ($username, $password) | |
Validates a username and password. More... | |
setAuthenticated ($r) | |
Sets variables and session parameters after successfull authentication. More... | |
+Protected Attributes | |
$channel_name = null | |
$timezone = '' | |
Authentication backend class for RedDAV.
+This class also contains some data which is not necessary for authentication like timezone settings.
+http://opensource.org/licenses/mit-license.php The MIT License (MIT)
+RedMatrix\RedDAV\RedBasicAuth::getCurrentUser | +( | +) | ++ |
Returns information about the currently logged-in channel.
+If nobody is currently logged in, this method should return null.
+RedMatrix\RedDAV\RedBasicAuth::getTimezone | +( | +) | ++ |
Returns the timezone.
+RedMatrix\RedDAV\RedBasicAuth::log | +( | +) | ++ |
Prints out all RedBasicAuth variables to logger().
+
+
|
+ +protected | +
Sets variables and session parameters after successfull authentication.
+array | $r | Array with the values for the authenticated channel. |
Referenced by RedMatrix\RedDAV\RedBasicAuth\validateUserPass().
+ +RedMatrix\RedDAV\RedBasicAuth::setBrowserPlugin | +( | ++ | $browser | ) | ++ |
Set browser plugin for SabreDAV.
+\Sabre\DAV\Browser\Plugin | $browser |
RedMatrix\RedDAV\RedBasicAuth::setCurrentUser | +( | ++ | $name | ) | ++ |
Sets the channel_name from the currently logged-in channel.
+string | $name | The channel's name |
RedMatrix\RedDAV\RedBasicAuth::setTimezone | +( | ++ | $timezone | ) | ++ |
Sets the timezone from the channel in RedBasicAuth.
+Set in mod/cloud.php if the channel has a timezone set.
+string | $timezone | The channel's timezone. |
+
|
+ +protected | +
Validates a username and password.
+Guest access is granted with the password "+++".
+string | $username | |
string | $password |
RedMatrix\RedDAV\RedBasicAuth::$browser | +
Referenced by RedMatrix\RedDAV\RedBasicAuth\setBrowserPlugin().
+ +RedMatrix\RedDAV\RedBasicAuth::$channel_hash = '' | +
RedMatrix\RedDAV\RedBasicAuth::$channel_id = 0 | +
+
|
+ +protected | +
Referenced by RedMatrix\RedDAV\RedBasicAuth\getCurrentUser().
+ +RedMatrix\RedDAV\RedBasicAuth::$observer = '' | +
RedMatrix\RedDAV\RedBasicAuth::$owner_id = 0 | +
RedMatrix\RedDAV\RedBasicAuth::$owner_nick = '' | +
+
|
+ +protected | +
Referenced by RedMatrix\RedDAV\RedBasicAuth\getTimezone(), and RedMatrix\RedDAV\RedBasicAuth\setTimezone().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for RedMatrix\RedDAV\RedDirectory, including all inherited members.
+$auth | RedMatrix\RedDAV\RedDirectory | private |
$ext_path | RedMatrix\RedDAV\RedDirectory | private |
$folder_hash | RedMatrix\RedDAV\RedDirectory | private |
$os_path | RedMatrix\RedDAV\RedDirectory | private |
$red_path | RedMatrix\RedDAV\RedDirectory | private |
$root_dir | RedMatrix\RedDAV\RedDirectory | private |
__construct($ext_path, &$auth_plugin) | RedMatrix\RedDAV\RedDirectory | |
childExists($name) | RedMatrix\RedDAV\RedDirectory | |
createDirectory($name) | RedMatrix\RedDAV\RedDirectory | |
createFile($name, $data=null) | RedMatrix\RedDAV\RedDirectory | |
getChild($name) | RedMatrix\RedDAV\RedDirectory | |
getChildren() | RedMatrix\RedDAV\RedDirectory | |
getDir() | RedMatrix\RedDAV\RedDirectory | |
getLastModified() | RedMatrix\RedDAV\RedDirectory | |
getName() | RedMatrix\RedDAV\RedDirectory | |
getQuotaInfo() | RedMatrix\RedDAV\RedDirectory | |
log() | RedMatrix\RedDAV\RedDirectory | private |
setName($name) | RedMatrix\RedDAV\RedDirectory |
![]() |
+
+ The Red Matrix
+
+ |
+
RedDirectory class. + More...
++Public Member Functions | |
__construct ($ext_path, &$auth_plugin) | |
Sets up the directory node, expects a full path. More... | |
getChildren () | |
Returns an array with all the child nodes. More... | |
getChild ($name) | |
Returns a child by name. More... | |
getName () | |
Returns the name of the directory. More... | |
setName ($name) | |
Renames the directory. More... | |
createFile ($name, $data=null) | |
Creates a new file in the directory. More... | |
createDirectory ($name) | |
Creates a new subdirectory. More... | |
childExists ($name) | |
Checks if a child exists. More... | |
getDir () | |
getLastModified () | |
Returns the last modification time for the directory, as a UNIX timestamp. More... | |
getQuotaInfo () | |
Return quota usage. More... | |
+Private Member Functions | |
log () | |
+Private Attributes | |
$red_path | |
$folder_hash | |
$ext_path | |
$root_dir = '' | |
$auth | |
$os_path = '' | |
RedDirectory class.
+A class that represents a directory.
+http://opensource.org/licenses/mit-license.php The MIT License (MIT)
+RedMatrix\RedDAV\RedDirectory::__construct | +( | ++ | $ext_path, | +
+ | + | & | +$auth_plugin | +
+ | ) | ++ |
Sets up the directory node, expects a full path.
+string | $ext_path | a full path |
RedBasicAuth | &$auth_plugin |
RedMatrix\RedDAV\RedDirectory::childExists | +( | ++ | $name | ) | ++ |
Checks if a child exists.
+string | $name | The name to check if it exists. |
RedMatrix\RedDAV\RedDirectory::createDirectory | +( | ++ | $name | ) | ++ |
Creates a new subdirectory.
+string | $name | the directory to create |
RedMatrix\RedDAV\RedDirectory::createFile | +( | ++ | $name, | +
+ | + | + | $data = null |
+
+ | ) | ++ |
Creates a new file in the directory.
+Data will either be supplied as a stream resource, or in certain cases as a string. Keep in mind that you may have to support either.
+After successful creation of the file, you may choose to return the ETag of the new file here.
+\Sabre\DAV\Exception\Forbidden |
string | $name | Name of the file |
resource | string | $data | Initial payload |
RedMatrix\RedDAV\RedDirectory::getChild | +( | ++ | $name | ) | ++ |
Returns a child by name.
+\Sabre\DAV\Exception\Forbidden | |
\Sabre\DAV\Exception\NotFound |
string | $name |
RedMatrix\RedDAV\RedDirectory::getChildren | +( | +) | ++ |
Returns an array with all the child nodes.
+\Sabre\DAV\Exception\Forbidden |
RedMatrix\RedDAV\RedDirectory::getDir | +( | +) | ++ |
\Sabre\DAV\Exception\NotFound |
Referenced by RedMatrix\RedDAV\RedDirectory\__construct().
+ +RedMatrix\RedDAV\RedDirectory::getLastModified | +( | +) | ++ |
Returns the last modification time for the directory, as a UNIX timestamp.
+It looks for the last edited file in the folder. If it is an empty folder it returns the lastmodified time of the folder itself, to prevent zero timestamps.
+RedMatrix\RedDAV\RedDirectory::getName | +( | +) | ++ |
Returns the name of the directory.
+RedMatrix\RedDAV\RedDirectory::getQuotaInfo | +( | +) | ++ |
Return quota usage.
+Should guests relly see the used/free values from filesystem of the complete store directory?
+
+
|
+ +private | +
Referenced by RedMatrix\RedDAV\RedDirectory\getChildren().
+ +RedMatrix\RedDAV\RedDirectory::setName | +( | ++ | $name | ) | ++ |
Renames the directory.
+\Sabre\DAV\Exception\Forbidden |
string | $name | The new name of the directory. |
+
|
+ +private | +
+
|
+ +private | +
Referenced by RedMatrix\RedDAV\RedDirectory\__construct(), and RedMatrix\RedDAV\RedDirectory\getDir().
+ +
+
|
+ +private | +
+
|
+ +private | +
Referenced by RedMatrix\RedDAV\RedDirectory\createFile(), and RedMatrix\RedDAV\RedDirectory\getDir().
+ +
+
|
+ +private | +
+
|
+ +private | +
![]() |
+
+ The Red Matrix
+
+ |
+
This is the complete list of members for RedMatrix\RedDAV\RedFile, including all inherited members.
+$auth | RedMatrix\RedDAV\RedFile | private |
$data | RedMatrix\RedDAV\RedFile | private |
$name | RedMatrix\RedDAV\RedFile | private |
__construct($name, $data, &$auth) | RedMatrix\RedDAV\RedFile | |
delete() | RedMatrix\RedDAV\RedFile | |
get() | RedMatrix\RedDAV\RedFile | |
getContentType() | RedMatrix\RedDAV\RedFile | |
getETag() | RedMatrix\RedDAV\RedFile | |
getLastModified() | RedMatrix\RedDAV\RedFile | |
getName() | RedMatrix\RedDAV\RedFile | |
getSize() | RedMatrix\RedDAV\RedFile | |
put($data) | RedMatrix\RedDAV\RedFile | |
setName($newName) | RedMatrix\RedDAV\RedFile |
![]() |
+
+ The Red Matrix
+
+ |
+
This class represents a file in DAV. + More...
++Public Member Functions | |
__construct ($name, $data, &$auth) | |
getName () | |
Returns the name of the file. More... | |
setName ($newName) | |
Renames the file. More... | |
put ($data) | |
Updates the data of the file. More... | |
get () | |
Returns the raw data. More... | |
getETag () | |
Returns the ETag for a file. More... | |
getContentType () | |
Returns the mime-type for a file. More... | |
getSize () | |
Returns the size of the node, in bytes. More... | |
getLastModified () | |
Returns the last modification time for the file, as a unix timestamp. More... | |
delete () | |
Delete the file. More... | |
+Private Attributes | |
$data | |
$auth | |
$name | |
This class represents a file in DAV.
+It provides all functions to work with files in Red's cloud through DAV protocol.
+http://opensource.org/licenses/mit-license.php The MIT License (MIT)
+RedMatrix\RedDAV\RedFile::__construct | +( | ++ | $name, | +
+ | + | + | $data, | +
+ | + | & | +$auth | +
+ | ) | ++ |
Sets up the node, expects a full path name.
+string | $name | |
array | $data | from attach table |
&$auth |
RedMatrix\RedDAV\RedFile::delete | +( | +) | ++ |
Delete the file.
+This method checks the permissions and then calls attach_delete() function to actually remove the file.
+\Sabre\DAV\Exception\Forbidden |
RedMatrix\RedDAV\RedFile::get | +( | +) | ++ |
Returns the raw data.
+RedMatrix\RedDAV\RedFile::getContentType | +( | +) | ++ |
Returns the mime-type for a file.
+If null is returned, we'll assume application/octet-stream
+RedMatrix\RedDAV\RedFile::getETag | +( | +) | ++ |
Returns the ETag for a file.
+An ETag is a unique identifier representing the current version of the file. If the file changes, the ETag MUST change. The ETag is an arbitrary string, but MUST be surrounded by double-quotes.
+Return null if the ETag can not effectively be determined.
+RedMatrix\RedDAV\RedFile::getLastModified | +( | +) | ++ |
Returns the last modification time for the file, as a unix timestamp.
+RedMatrix\RedDAV\RedFile::getName | +( | +) | ++ |
Returns the name of the file.
+RedMatrix\RedDAV\RedFile::getSize | +( | +) | ++ |
Returns the size of the node, in bytes.
+RedMatrix\RedDAV\RedFile::put | +( | ++ | $data | ) | ++ |
Updates the data of the file.
+resource | $data |
RedMatrix\RedDAV\RedFile::setName | +( | ++ | $newName | ) | ++ |
Renames the file.
+Sabre\DAV\Exception\Forbidden |
string | $name | The new name of the file. |
+
|
+ +private | +
Referenced by RedMatrix\RedDAV\RedFile\__construct().
+ +
+
|
+ +private | +
Referenced by RedMatrix\RedDAV\RedFile\__construct(), and RedMatrix\RedDAV\RedFile\put().
+ +
+
|
+ +private | +
Referenced by RedMatrix\RedDAV\RedFile\__construct().
+ +![]() |
+
+ The Red Matrix
+
+ |
+
![]() |
+
+ The Red Matrix
+
+ |
+
+Functions | |
locs_post (&$a) | |
locs_post | +( | +& | +$a | ) | ++ |
Placeholder file at present. This is going to involve a bit of work.
+This file will deal with the deletion of channels and management of hublocs.
+We need to provide the following functionality:
+