Location: PHPKode > projects > Aukyla Platform > aukyla/doc/html/a00165.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>Aukyla PHP Framework</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="StyleSheet" href="auton.css" type="text/css" media="screen">
  </head>

  <body>
    <div id="mainmenu">
      <a href="http://www.auton.nl/" class="home">Home</a>
    </div>
    <div id="submenu">
      <a class="logo" href="http://www.auton.nl/"></a>

      <div class="head">Ads</div>
      <a href="http://sourceforge.net/"><img src="http://sourceforge.net/sflogo.php?group_id=116358&amp;type=1" alt="SourceForge.net Logo" style="padding: 2px 4px; width: 88px; height: 31px; border: 0px"></a>
      <a href="http://getfirefox.com/" title="Get Firefox - The Browser, Reloaded."><img src="http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png" alt="Get Firefox" style="width: 110px; height: 32px; border: 0px"></a>
    </div>
    <div id="main">
<!-- Generated by Doxygen 1.3.9.1 -->
<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="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>ViewContainer Class Reference</h1><p>Inheritance diagram for ViewContainer:
<p><center><img src="a00165.png" usemap="#ViewContainer_map" border="0" alt=""></center>
<map name="ViewContainer_map">
<area href="a00096.html" alt="Container" shape="rect" coords="0,56,95,80">
<area href="a00166.html" alt="Widget" shape="rect" coords="0,0,95,24">
</map>
<a href="a00074.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
A container for multiple views. 
<p>
This is a special container which can be used to group views. The container will then take care of displaying the correct view.<p>
A view container will use a request variable which equals the ID of the container to determine which view to display. Once a view is set, this view is remembered in a session variable. If the request variable 'button' is set to i18n('Cancel'), the view container will look for another request variable named "{$id}_cancel" and change its view to the value of this variable if this variable is set.<p>
<dl compact><dt><b>Since:</b></dt><dd>Aukyla 1.1 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="a00238.html#l00044">44</a> of file <a class="el" href="a00238.html">Views.php</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="a00165.html#a0">__construct</a> (<a class="el" href="a00096.html">Container</a> $parent, $id= 'view')</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00165.html#a1">view</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00165.html#a2">setView</a> ($view)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00165.html#a3">show</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00165.html#p0">$children</a></td></tr>

</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a0" doxytag="ViewContainer::__construct"></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">ViewContainer::__construct           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a00096.html">Container</a> $&nbsp;</td>
          <td class="mdname" nowrap> <em>parent</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>id</em> = <code>'view'</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructor.<p>
Creates a new view container.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>parent</em>&nbsp;</td><td><a class="el" href="a00096.html">Container</a> to add this view container to. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>ID of the view container. This is also the request variable this container will use to detect which view to display.</td></tr>
  </table>
</dl>

<p>
Reimplemented from <a class="el" href="a00096.html#a0">Container</a>.
<p>
Definition at line <a class="el" href="a00238.html#l00056">56</a> of file <a class="el" href="a00238.html">Views.php</a>.
<p>
References <a class="el" href="a00207.html#l00243">Config::request()</a>, <a class="el" href="a00220.html#l00334">Login::sessionVariable()</a>, and <a class="el" href="a00220.html#l00309">Login::setSessionVariable()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a2" doxytag="ViewContainer::setView"></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">ViewContainer::setView           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>view</em>          </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>
Overwrites the requested view by setting a new view to be shown.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>view</em>&nbsp;</td><td>The ID of the view which should be shown.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a00238.html#l00092">92</a> of file <a class="el" href="a00238.html">Views.php</a>.
<p>
References <a class="el" href="a00238.html#l00082">view()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a3" doxytag="ViewContainer::show"></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">ViewContainer::show           </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>
Shows this widget and all child widgets.
<p>
Reimplemented from <a class="el" href="a00096.html#a2">Container</a>.
<p>
Definition at line <a class="el" href="a00238.html#l00097">97</a> of file <a class="el" href="a00238.html">Views.php</a>.
<p>
References <a class="el" href="a00240.html#l00052">WindowManager::instance()</a>, and <a class="el" href="a00238.html#l00082">view()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a1" doxytag="ViewContainer::view"></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">ViewContainer::view           </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>
Returns which view is requested for this container.<p>
<dl compact><dt><b>Returns:</b></dt><dd>The ID of the requested view.</dd></dl>

<p>
Definition at line <a class="el" href="a00238.html#l00082">82</a> of file <a class="el" href="a00238.html">Views.php</a>.
<p>
Referenced by <a class="el" href="a00238.html#l00092">setView()</a>, and <a class="el" href="a00238.html#l00097">show()</a>.    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="p0" doxytag="ViewContainer::$children"></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">ViewContainer::$children<code> [protected]</code>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Registered children of the class.
<p>
Reimplemented from <a class="el" href="a00096.html#p0">Container</a>.
<p>
Definition at line <a class="el" href="a00238.html#l00126">126</a> of file <a class="el" href="a00238.html">Views.php</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="a00238.html">Views.php</a></ul>
    </div>
  </body>
</html>
Return current item: Aukyla Platform