3
* The Turba_View_List:: class provides an interface for objects that
4
* visualize Turba_List objects.
6
* @author Chuck Hagenbuch <chuck@horde.org>
7
* @author Jon Parise <jon@csh.rit.edu>
11
* Skips objects whose name does not start with the specified letter
13
class Turba_View_List_AlphaFilter
18
public function __construct($alpha)
20
$this->_alpha = Horde_String::lower($alpha);
21
$this->_format = $GLOBALS['prefs']->getValue('name_sort');
24
public function skip($ob)
26
$name = Turba::formatName($ob, $this->_format);
27
if ($this->_alpha != '*' &&
28
Horde_String::lower(substr($name, 0, 1)) != $this->_alpha) {
b'\\ No newline at end of file'