Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 30a817b1a5cbc3b9a11942bda9a91aed > files > 58

gosa-2.5.14-6mdv2010.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>GOsa: plugin class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a></div>
<h1>plugin Class Reference</h1>The plugin base class.  
<a href="#_details">More...</a>
<p>
<p>Inheritance diagram for plugin:
<p><center><img src="classplugin.png" usemap="#plugin_map" border="0" alt=""></center>
<map name="plugin_map">
<area href="classmailAccount.html" alt="mailAccount" shape="rect" coords="0,56,88,80">
<area href="classposixAccount.html" alt="posixAccount" shape="rect" coords="98,56,186,80">
<area href="classuser.html" alt="user" shape="rect" coords="196,56,284,80">
</map>
<a href="classplugin-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classplugin.html#a0">plugin</a> ($<a class="el" href="classplugin.html#o4">dn</a>=NULL)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">plugin constructor </em> <a href="#a0"></a><em><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classplugin.html#a1">execute</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">execute plugin </em> <a href="#a1"></a><em><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a2" doxytag="plugin::remove_from_parent"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><b>remove_from_parent</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a3" doxytag="plugin::save_object"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><b>save_object</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a4" doxytag="plugin::save"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><b>save</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a5" doxytag="plugin::check"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><b>check</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a6" doxytag="plugin::adapt_from_template"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><b>adapt_from_template</b> ($<a class="el" href="classplugin.html#o4">dn</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a7" doxytag="plugin::password_change_needed"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><b>password_change_needed</b> ()</td></tr>

<tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classplugin.html#o0">parent</a> = NULL</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reference to parent object. </em> <a href="#o0"></a><em><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classplugin.html#o1">is_account</a> = FALSE</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Mark plugin as account. </em> <a href="#o1"></a><em><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classplugin.html#o2">is_template</a> = FALSE</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Mark plugin as template. </em> <a href="#o2"></a><em><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classplugin.html#o3">attrs</a> = array()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Represent temporary LDAP data. </em> <a href="#o3"></a><em><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classplugin.html#o4">dn</a> = ""</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Used standard values. </em> <a href="#o4"></a><em><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="o5" doxytag="plugin::uid"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><b>uid</b> = ""</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="o6" doxytag="plugin::sn"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><b>sn</b> = ""</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="o7" doxytag="plugin::givenName"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><b>givenName</b> = ""</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="o8" doxytag="plugin::acl"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><b>acl</b> = "*none*"</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="o9" doxytag="plugin::attributes"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><b>attributes</b> = array()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="o10" doxytag="plugin::objectclasses"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><b>objectclasses</b> = array()</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The plugin base class. 
<p>
<dl compact><dt><b>Author:</b></dt><dd>Cajus Pollmeier &lt;<a href="mailto:pollmeier@gonicus.de">pollmeier@gonicus.de</a>&gt; </dd></dl>
<dl compact><dt><b>Version:</b></dt><dd>2.00 </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>24.07.2003</dd></dl>
This is the base class for all plugins. It can be used standalone or can be included by the tabs class. All management should be done within this class. Extend your plugins from this class. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="plugin::plugin"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> plugin::plugin </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>dn</em> = NULL          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
plugin constructor 
<p>
If 'dn' is set, the node loads the given 'dn' from LDAP<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>dn</em>&nbsp;</td><td>Distinguished name to initialize plugin from </td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classplugin.html#a0">plugin()</a> </dd></dl>
    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a1" doxytag="plugin::execute"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> plugin::execute </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
execute plugin 
<p>
Generates the html output for this node 
<p>
Reimplemented in <a class="el" href="classmailAccount.html#a4">mailAccount</a>, <a class="el" href="classposixAccount.html#a1">posixAccount</a>, and <a class="el" href="classuser.html#a1">user</a>.    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="o3" doxytag="plugin::attrs"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classplugin.html#o3">plugin::attrs</a> = array()
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Represent temporary LDAP data. 
<p>
This is only used internally.     </td>
  </tr>
</table>
<a name="o4" doxytag="plugin::dn"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classplugin.html#o4">plugin::dn</a> = ""
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Used standard values. 
<p>
dn     </td>
  </tr>
</table>
<a name="o1" doxytag="plugin::is_account"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classplugin.html#o1">plugin::is_account</a> = FALSE
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Mark plugin as account. 
<p>
Defines whether this plugin is defined as an account or not. This has consequences for the plugin to be saved from tab mode. If it is set to 'FALSE' the tab will call the delete function, else the save function. Should be set to 'TRUE' if the construtor detects a valid LDAP object.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classplugin.html#a0">plugin::plugin()</a> </dd></dl>
    </td>
  </tr>
</table>
<a name="o2" doxytag="plugin::is_template"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classplugin.html#o2">plugin::is_template</a> = FALSE
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Mark plugin as template. 
<p>
Defines whether we are creating a template or a normal object. Has conseqences on the way <a class="el" href="classplugin.html#a1">execute()</a> shows the formular and how save() puts the data to LDAP.<p>
<dl compact><dt><b>See also:</b></dt><dd>plugin::save() <a class="el" href="classplugin.html#a1">plugin::execute()</a> </dd></dl>
    </td>
  </tr>
</table>
<a name="o0" doxytag="plugin::parent"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classplugin.html#o0">plugin::parent</a> = NULL
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Reference to parent object. 
<p>
This variable is used when the plugin is included in tabs and keeps reference to the tab class. Communication to other tabs is possible by 'name'. So the 'fax' plugin can ask the 'userinfo' plugin for the fax number.<p>
<dl compact><dt><b>See also:</b></dt><dd>tab </dd></dl>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li>plugin.inc</ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Jul 26 18:32:23 2003 for GOsa by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.2 </small></address>
</body>
</html>