* @copyright 2010 Tela-Botanica * @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL * @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL * @version SVN: $Id$ * */ class TableStructureDao extends Dao { const SERVICE = 'TableStructure'; /** * Retourne l'ensemble des information sur les colonnes d'une table. * * @param string le nom de la table. * @return array un tableau contenant les informations sur les colonnes de la table. */ public function getColonnes($table) { $url = $this->url_jrest.self::SERVICE."/colonnes/$table"; $json = file_get_contents($url); $donnees = json_decode($json, true); return $donnees['colonnes']; } /** * Retourne l'ensemble des information d'analyse de la structure d'une table. * * @param string le nom de la table. * @return array un tableau contenant les informations de l'analyse de la table. */ public function getAnalyse($table) { $url = $this->url_jrest.self::SERVICE."/analyse/$table"; $json = file_get_contents($url); $donnees = json_decode($json, true); return $donnees['analyses']; } } ?>