Example #1
0
 /**
  * Get the header string for this column. If no header is specifically set
  * try to create a nice readable header based on $name
  * @return string
  */
 public function getHeader()
 {
     $this->header = $this->getHeaderName();
     if ($this->sortable) {
         return sprintf('<a href="%s" class="sort-link sort-dir-%s">%s</a>', $this->table->getSortUrl($this), strtolower($this->sortDirection), $this->header);
     }
     return $this->header;
 }