phpLDAPadmin

# Procedural File: template_engine.php

Source Location: /templates/3rdParty/pla/htdocs/template_engine.php

## Page Details:

Template render engine.

#### Tags:

author: | The phpLDAPadmin development team

#### Includes:

require('./common.php') [line 36]
If we are passed a DN, then we are editing an existing entry

If we are not passed a DN, then we are passed a container (and creating a new entry in that container) If we have a template ID, then we'll render the creation/editing using that template If we are not passed a template ID, then we'll either: Present a list of available templates, Present the default template, because there are non available (due to hidden,regexp or non-existant) Present the only template, if there is only one. A template object which describes how the template should be rendered (and what values should asked for, etc) A page object, which is responsible for actually sending out the HTML to the browser. we init a new TemplateRender object we init a new Template object set the DN or container on the template object If setting the DN, this in turn should read the "old values" from the LDAP server If we are not on the first page (ie: 2nd, 3rd, 4th step, etc), we should accept the post values that we have obtained thus far Finally submit the update to "update_confirm", or the create to "create", when complete.

Documentation generated on Tue, 22 Nov 2011 16:30:14 +0100 by phpDocumentor 1.4.1