Exemple #1
0
 function bootstrap_part1()
 {
     $this->long_name = editor_generic::long_name();
     $postargs['keys'] =& $this->keys;
     //	$postargs['context']=$this->context;
     $pp = explode('.', $this->long_name);
     $r = '';
     foreach ($pp as $pa) {
         if ($r != '') {
             $r .= '.';
         }
         $r .= $pa;
         $postargs['context'][$r] = $this->context[$r];
     }
     $postargs['name'] = $this->long_name;
     $postargs['type'] = editor_generic::long_type();
     $postargs['context'][$this->long_name]['htmlid'] = $this->main_id();
     if (isset($postargs['context'][$this->long_name]['oid'])) {
         $this->oid = $postargs['context'][$this->long_name]['oid'];
     } elseif (isset($this->oid)) {
         $postargs['context'][$this->long_name]['oid'] = $this->oid;
     }
     $send = editor_generic::array_to_post($postargs);
     $send .= "&last_generated_id=' + last_generated_id + '";
     $this->send =& $send;
     $this->postargs =& $postargs;
 }