getElementSearcher($count); $user = $this->getUser(true, array('join' => array( 'groups_owned' )), true); $search_form = $this->getSearchForm($search_object); $add_form = $this->getAddForm(); return array( 'search_tags_id' => $search_object->getTags(), 'user' => $this->getUser(), 'add_form' => $add_form->createView(), 'add_form_name' => $add_form->getName(), 'search_form' => $search_form->createView(), 'search_form_name' => $search_form->getName(), 'elements' => $search_object->getElements($this->getDoctrine(), $this->getUserId()), 'more_count' => ($count)?$count+$this->container->getParameter('search_default_count'):$this->container->getParameter('search_default_count')*2 ); } }