Class: Search_Model

class Search_Model extends Model Permet de faire une recherche en JSON pour les tableaux.

instance()

public static function

Search_Model::instance()

Permet de ne pas faire des multi-appels d'objet.

Return: class la classe construite

indexRecherche()

public function

Search_Model->indexRecherche()

Paramètre de la recherche.

Paramètres :

  • string $arrayCol liste des colonne à afficher et a rechercher
  • string $table nom de la table
  • object $input class input
  • mixe $where array/string pour le where

Return: object les lignes trouvées

displayRecherche()

public function

Search_Model->displayRecherche()

On traite le résultat pour du JSON.

Paramètres :

  • string $display data a ajouter au fichier JSON
  • integer $sEcho niveau de la recherche

Return: string JSON

models/search.txt · Dernière modification: 15/03/2011 11:46 par alban
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0