16 if (isset($entry[
$key])) unset($entry[$key]);
29 foreach($override AS
$key => $value) {
30 $entry[
$key] = $value;
39 throw new Exception(
'Required field [' .
$key .
'] was missing.');
41 throw new Exception(
'Required field [' . $key .
'] was empty.');
52 return '<tr ><td> </td><td class="header">' .
$name .
'</td></tr>';
57 $value =
'<span style="color: #aaa">Not set</a>';
61 <td class="name">' .
$name .
'</td> 62 <td class="data">' . $value .
'</td></tr>';
71 <td class="name">' .
$name .
'</td> 72 <td class="data">' . htmlspecialchars($value) .
'</td></tr>';
77 return '<input type="hidden" name="' .
$key .
'" value="' . htmlspecialchars($value) .
'" />';
99 return '<tr><td class="name">' .
$name .
'</td><td class="data"> 100 <textarea name="field_' .
$key .
'" rows="5" cols="50">' . $value .
'</textarea></td></tr>';
103 return '<tr><td class="name">' .
$name .
'</td><td class="data"> 104 <input type="text" size="60" name="field_' .
$key .
'" value="' . $value .
'" /></td></tr>';
110 return '<form action="registry.edit.php" method="post">' .
111 '<div id="tabdiv">' .
113 '<li><a href="#basic">Name and descrition</a></li>' .
115 '<div id="basic"><table class="formtable">' .
121 $this->
standardField(
$metadata,
'RSAcertificate',
'RSA certificate (PEM)<br/>(Used for RSA_SHA1 signatures)', TRUE) .
127 '<input type="submit" name="submit" value="Save" style="margin-top: 5px" />' .
foreach($paths as $path) $request
$metadata['__DYNAMIC:1__']
getStandardField($request, &$entry, $key)
requireStandardField($request, $key)
standardField($metadata, $key, $name, $textarea=FALSE)
hiddenField($key, $value)
readonlyField($metadata, $key, $name)
readonlyDateField($metadata, $key, $name)
formToMeta($request, $entry=array(), $override=NULL)
flattenLanguageField(&$metadata, $key)