public function renderProducts(ResourceAbstract $resource) { $access_list = $resource->getAccessList(); if (count($access_list) > 6) { $s = ___('%d access records...', count($access_list)); } else { $s = ""; foreach ($access_list as $access) { $l = ""; if ($access->getStart()) { $l .= " from " . $access->getStart(); } if ($access->getStop()) { $l .= " to " . $access->getStop(); } $s .= sprintf("%s <b>%s</b> %s<br />\n", $access->getClassTitle(), $access->getTitle(), $l); } } return $this->renderTd($s, false); }
public function getPlaceholder($val, ResourceAbstract $resource) { return ___('%d access records…', count($resource->getAccessList())); }
public function getProducts(ResourceAbstract $resource) { $s = ""; foreach ($resource->getAccessList() as $access) { $s .= sprintf("%s <b>%s</b> %s<br />\n", $access->getClass(), $access->getTitle(), ""); } return $s; }
public function renderProducts(ResourceAbstract $resource) { $access_list = $resource->getAccessList(); if (count($access_list) > 6) { $s = count($access_list) . ' access records...'; } else { $s = ""; foreach ($access_list as $access) { $s .= sprintf("%s <b>%s</b> %s<br />\n", $access->getClass(), $access->getTitle(), ""); } } return $this->renderTd($s, false); }