Misc improvements

This commit is contained in:
Deon George
2014-07-18 12:37:45 +10:00
parent a889d25eda
commit 7961e60901
2 changed files with 12 additions and 4 deletions

View File

@@ -104,6 +104,10 @@ abstract class lnApp_Table {
if (isset($this->postproc[$key]) and $x) {
foreach ($this->postproc[$key] as $act => $data) {
switch ($act) {
case 'yesno':
$x = StaticList_YesNo::get($x,TRUE);
break;
case 'trim':
if (strlen($x) > $data) {
$x = sprintf('<abbr title="%s">%s</abbr>',$x,substr($x,0,$data-3).str_repeat('.',3));