Dev#67009 configuration de la boite bibliotheque numerique dans le contexte actuelle a de 100000 albums
Merged
requested to merge dev#67009_configuration_de_la_boite_bibliotheque_numerique_dans_le_contexte_actuelle_a_de_100000_albums into WIP
2 unresolved threads
Merge request reports
Activity
Filter activity
8 * 9 * There are special exceptions to the terms and conditions of the AGPL as it 10 * is applied to this software (see README file). 11 * 12 * BOKEH is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU AFFERO GENERAL PUBLIC LICENSE for more details. 16 * 17 * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE 18 * along with BOKEH; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 */ 21 22 23 class Class_ModelViewer_AjaxSearch_Null { 87 87 } 88 88 89 89 90 public function ajaxSearchAction() { 91 if(!$term = $this->_getParam('term')) 92 return $this->_helper->json(['error' => $this->_('Veuillez préciser un terme ( url : /search/term/somethings )')]); 93 94 $models = call_user_func([$this->_getModelLoader(), 95 'findAllBy'], 96 $this->_getSearchParams($term)); 97 $response = []; 98 99 foreach($models as $model) 100 $response [] = ['label' => Class_ModelViewer_AjaxSearch::newWith($model)->getLabel(), mentioned in commit 118f53c4