예제 #1
0
 function buildconfigpage()
 {
     if (!$this->sorted_guifuncs) {
         $this->sortguifuncs();
     }
     $perf = FreePBX::Performance();
     if (is_array($this->guifuncs)) {
         foreach (array_keys($this->guifuncs) as $sortorder) {
             foreach ($this->guifuncs[$sortorder] as $func) {
                 $modparts = explode("_", $func, 2);
                 $thismod = $modparts[0];
                 modgettext::push_textdomain($thismod);
                 $perf->Start("buildpager-{$func}");
                 $func($this->compname);
                 $perf->Stop("buildpager-{$func}");
                 modgettext::pop_textdomain();
             }
         }
     }
 }