return $str;
}
- function toStringControl() {
+ function getHtml() {
return $this->toString();
}
function setData($value) { $this->mOptions = $value; }
function getData() { return $this->mOptions; }
- function toStringControl() {
+ function getHtml() {
if ($this->id=="") $this->id = $this->name;
$this->lSelNone = $i18n->getKey('label.select_none');
}
- function toStringControl() {
+ function getHtml() {
if ($this->id=="") $this->id = $this->name;
function getDataKeys() { return $this->mDataKeys; }
- function toStringControl() {
+ function getHtml() {
if ($this->id=="") $this->id = $this->name;
}
}
- function toStringControl() {
+ function getHtml() {
if (!$this->isEnabled()) {
$html = htmlspecialchars($this->getValue()).
$html = "\n";
foreach ($this->elements as $elname=>$el) {
if (strtolower(get_class($this->elements[$elname]))=="hidden") {
- $html .= $this->elements[$elname]->toStringControl()."\n";
+ $html .= $this->elements[$elname]->getHtml()."\n";
}
}
$html .= "</form>";
function localize($i18n) {} // Localization occurs in derived classes and is dependent on control type.
// For example, in calendar control we need to localize day and month names.
- // TODO: refactoring ongoing down from here.
+ // getHtml returns HTML for the element.
+ function getHtml() { return ''; }
+ // getLabelHtml returns HTML code for element label.
+ function getLabelHtml() { return '<label for="'.$this->id.'">'.$this->label.'</label>'; }
-
-
-
-
-
-
-
-
- function toStringControl() {
- return "";
- }
-
- function toStringLabel() {
- return "<label for=\"" . $this->id . "\">" . $this->label . "</label>";
- }
-
- function toArray() {
- return array(
- "label"=>$this->toStringLabel(),
- "control"=>$this->toStringControl()
- );
- }
-
+ function toArray() {
+ return array(
+ 'label'=>$this->getLabelHtml(),
+ 'control'=>$this->getHtml());
+ }
}
$this->value = $value;
}
- function toStringControl() {
+ function getHtml() {
if ($this->id=="") $this->id = $this->name;
$this->value = $value;
}
- function toStringControl() {
+ function getHtml() {
if ($this->id=="") $this->id = $this->name;
}
}
- function toStringControl() {
+ function getHtml() {
if (!$this->mProccessed) $this->_process();
$html = "";
function setRows($value) { $this->mRows = $value; }
function getRows() { return $this->mRows; }
- function toStringControl() {
+ function getHtml() {
if ($this->id=="") $this->id = $this->mName;
function setAsPassword($name) { $this->mPassword = $name; }
function getAsPassword() { return $this->mPassword; }
- function toStringControl() {
+ function getHtml() {
if (!$this->isEnabled()) {
$html = "<input name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n";
} else {
function setMaxSize($value) { $this->mMaxSize = $value; }
function getMaxSize() { return $this->mMaxSize; }
- function toStringControl() {
+ function getHtml() {
if ($this->id=="") $this->id = $this->name;
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.10.38.3612 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.10.38.3613 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
foreach ($assigned_projects as $p) {
if ($p['id'] == $table->getValueAtName($row,'id')) $field->setValue($p['rate']);
}
- $this->setValue($field->toStringControl());
+ $this->setValue($field->getHtml());
return $this->toString();
}
}
foreach ($assigned_projects as $p) {
if ($p['id'] == $table->getValueAtName($row,'id')) $field->setValue($p['rate']);
}
- $this->setValue($field->toStringControl());
+ $this->setValue($field->getHtml());
return $this->toString();
}
}
foreach ($assigned_projects as $p) {
if ($p['id'] == $table->getValueAtName($row,'id')) $field->setValue($p['rate']);
}
- $this->setValue($field->toStringControl());
+ $this->setValue($field->getHtml());
return $this->toString();
}
}
foreach ($assigned_projects as $p) {
if ($p['id'] == $table->getValueAtName($row,'id')) $field->setValue($p['rate']);
}
- $this->setValue($field->toStringControl());
+ $this->setValue($field->getHtml());
return $this->toString();
}
}