Subversion Repositories eFlore/Applications.cel

Rev

Rev 3164 | Rev 3195 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3164 Rev 3166
Line 109... Line 109...
109
 
109
 
110
        private function executerCreation() {
110
        private function executerCreation() {
111
                //https://api.tela-botanica.org/service:cel:NomsChampsEtendus/cle
111
                //https://api.tela-botanica.org/service:cel:NomsChampsEtendus/cle
112
                $retour['squelette'] ='creation';
112
                $retour['squelette'] ='creation';
113
                $jsonlangue = $this->getDao()->consulter($this->config['manager']['languesUrl']);
113
                $jsonlangue = $this->getDao()->consulter($this->config['manager']['languesUrl']);
114
                $tableaulangue= (array) json_decode($jsonlangue, true);
114
                $tableaulangue = (array) json_decode($jsonlangue, true);
115
                $retour['donnees']['langues'] = $tableaulangue['resultat'] ;
115
                $retour['donnees']['langues'] = $tableaulangue['resultat'] ;
116
                $retour['donnees']['widget'] = array();
116
                $retour['donnees']['widget'] = array();
117
                if (isset($this->parametres['projet'])) {
117
                if (isset($this->parametres['projet'])) {
118
                        $url = $this->cel_url_tpl.'?projet='.$this->parametres['projet'];
118
                        $url = $this->cel_url_tpl.'?projet='.$this->parametres['projet'];
119
                        $json = $this->getDao()->consulter($url);
119
                        $json = $this->getDao()->consulter($url);
120
                        $tableau = (array) json_decode($json, true);
120
                        $tableau = (array) json_decode($json, true);
121
                        $retour['donnees']['widget'] = $tableau[0];
-
 
122
                        $urltype = $this->cel_url_tpl.'?esttype=1';
-
 
123
                        $jsontype = $this->getDao()->consulter($urltype);
-
 
124
                        $tableautype= (array) json_decode($jsontype, true);
-
 
-
 
121
                        $retour['donnees']['widget'] = $tableau[0];
125
                        $retour['donnees']['type'] = $tableautype;
122
 
-
 
123
                }
-
 
124
                $urltype = $this->cel_url_tpl.'?esttype=1';
-
 
125
                $jsontype = $this->getDao()->consulter($urltype);
-
 
126
                $tableautype= (array) json_decode($jsontype, true);
126
                }
127
                $retour['donnees']['type'] = $tableautype;
127
                return $retour;
128
                return $retour;
Line 128... Line 129...
128
        }
129
        }
129
 
130