users = $users; return $this; } /** * Apply formatter * * @access public * @return array */ public function format() { $result = array(); foreach ($this->users as $user) { $html = $this->helper->avatar->small( $user['id'], $user['username'], $user['name'], $user['email'], $user['avatar_path'], 'avatar-inline' ); $html .= ' '.$this->helper->text->e($user['username']); if (! empty($user['name'])) { $html .= ' '.$this->helper->text->e($user['name']).''; } $result[] = array( 'value' => $user['username'], 'html' => $html, ); } return $result; } }