Ejemplo n.º 1
0
                     if ($member->getDisplaySettings()->hasLabel('CALENDAR_TITLE')) {
                         $titleField = $member->getName();
                     }
                 }
             }
         }
     }
 }
 $reqDao = $table . "Dao";
 $dao = new $reqDao();
 $objs = $dao->getAll();
 if (!is_null($objs) && $objs != -1) {
     foreach ($objs as $obj) {
         $titleMethod = 'get' . $titleField;
         $startMethod = 'get' . $startField;
         $tempEntry = array('id' => $obj->getPk(), 'title' => $obj->{$titleMethod}(), 'start' => $obj->{$startMethod}(), 'url' => Tabs::viewInNewTabJs('Update', $table, $obj->getPk(), WebContext::getLanguage()->get($table) . ' ' . $obj->getPk()));
         if ($endField != NULL) {
             $endMethod = 'get' . $endField;
             $tempEntry['end'] = $obj->{$endMethod}();
         }
         $tempClassName = 'cal-' . $def->getTable()->name;
         if ($completeField != NULL) {
             $completeMethod = 'get' . $completeField();
             if ($obj->{$completeMethod}()) {
                 $tempClassName .= ' jack-cal-complete';
                 $tempEntry['title'] = 'COMPLETE:' . $tempEntry['title'];
             } else {
                 $tempClassName .= ' jack-cal-incomplete';
                 $tempEntry['title'] = 'PENDING: ' . $tempEntry['title'];
             }
         }
Ejemplo n.º 2
0
 public static function viewInNewTab($pkg, $call, $id, $linkText, $tabTitle)
 {
     return '<a href="" ' . 'onclick="' . Tabs::viewInNewTabJs($action, $object, $id, $tabTitle) . ' return false;">' . $linkText . '</a>';
 }