Commit 35df8ed0 authored by Benoit Mortier's avatar Benoit Mortier
Browse files

Fixes: #981 Improve the FusionDirectory API

Showing with 32 additions and 6 deletions
+32 -6
......@@ -20,7 +20,13 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*! \brief This class contains all the function needed to make dialogs
/*!
* \file class_SnapShotDialog
* Source code for SnapShotDialog
*/
/*!
* \brief This class contains all the function needed to make dialogs
* for the snapshot functionality
*/
class SnapShotDialog extends plugin
......@@ -41,7 +47,15 @@ class SnapShotDialog extends plugin
var $snap_shot_bases = array();
var $last_list = array();
/*!
* \brief Create a SnapShotDialog
*
* \param string $config
*
* \param string $dn The DN
*
* \param string $parent
*/
function SnapShotDialog(&$config, $dn, &$parent)
{
plugin::plugin($config,$dn);
......@@ -50,14 +64,22 @@ class SnapShotDialog extends plugin
}
/* Show deleted snapshots from these bases */
/*!
* \brief Set a snapshot base
*
* Show deleted snapshots from these bases
*
* \param string $bases
*/
function set_snapshot_bases($bases)
{
$this->snap_shot_bases = $bases;
}
/* Display snapshot dialog */
/*!
* \brief Display snapshot dialog
*/
function execute()
{
plugin::execute();
......@@ -156,7 +178,9 @@ class SnapShotDialog extends plugin
return($smarty->fetch(get_template_path("snapshotdialog.tpl")));
}
/*!
* \brief Check the snapshot dialog
*/
function check()
{
$message = plugin::check();
......@@ -168,7 +192,9 @@ class SnapShotDialog extends plugin
return($message);
}
/*!
* \brief Save an object
*/
function save_object()
{
plugin::save_object();
......
  • bmortier @bmortier

    mentioned in issue #370 (closed)

    By sabaku on 2017-09-02T14:45:19 (imported from GitLab)

    ·

    mentioned in issue #370 (closed)

    By sabaku on 2017-09-02T14:45:19 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment