Ejemplo n.º 1
0
 /**
  * Processes the request.
  *
  * @param  object   HTML_QuickForm_Page  the current form-page
  * @param  string   Current action name, as one Action object can serve multiple actions
  * @since  2.1.0
  * @access public
  */
 function perform(&$page, $actionName)
 {
     $page->isFormBuilt() or $page->buildForm();
     $page->handle('display');
     $sess =& $page->controller->container();
     $opt = $page->getSubmitValue('dumpOption');
     switch ($opt) {
         case '1':
             // Progress2 dump info
             $arr = $page->controller->_progress->toArray();
             varDump($arr);
             break;
         case '2':
             // Forms values container
             varDump($sess);
             break;
         case '3':
             // Included files
             $includes = get_included_files();
             varDump($includes);
             break;
         case '4':
             // declared classes
             $classes = get_declared_classes();
             varDump($classes);
             break;
         case '5':
             // declared actions
             $actions = $page->controller->_actions;
             varDump($actions);
             break;
     }
 }
Ejemplo n.º 2
0
 /**
  * index - Just show the memcache server's statistics.
  *
  * @return void
  **/
 function index()
 {
     $this->auto_render = true;
     $memcache_obj = new Memcache();
     $memcache_obj->addServer(MEMCACHED_SERVER, MEMCACHED_SERVER_PORT);
     $stats = $memcache_obj->getExtendedStats();
     varDump($stats);
 }