示例#1
0
 /**
  * Displays a message box with an infinitely auto-updating progress bar. This can be used to block user interaction while waiting for a long-running process to complete that does not have defined intervals. You are responsible for closing the message box when the process is complete.
  * 
  * @param string $msg The message box body text
  * @param string $title (optional) The title bar text
  * @param PhpExt_ProgressBarWaitConfigObject $config (optional) A PhpExt_ProgressBarWaitConfigObject object
  * @return PhpExt_JavascriptStm
  */
 public static function wait($msg, $title = null, $config = null)
 {
     $args[] = $msg;
     if ($title !== null) {
         $args[] = $title;
     }
     if ($config !== null) {
         if ($title === null) {
             $args[] = null;
         }
         $args[] = $config;
     }
     $mc = PhpExt_Object::createMethodSignature("wait", $args, true);
     return PhpExt_Object::getMethodInvokeStm("Ext.Msg", $mc, true);
 }
示例#2
0
文件: Record.php 项目: beodob/php-ext
 public static function create(PhpExt_Data_FieldConfigObjectCollection $fields)
 {
     $mc = PhpExt_Object::createMethodSignature("create", array($fields), true);
     return PhpExt_Object::getMethodInvokeStm('Ext.data.Record', $mc, true);
 }
示例#3
0
 public static function unregister()
 {
     $mc = PhpExt_Object::createMethodSignature("unregister", array(), true);
     return PhpExt_Object::getMethodInvokeStm("Ext.QuickTips", $mc, true);
 }
示例#4
0
 /**
  * Initiates an auto-updating progress bar. A duration can be specified, in which case the progress bar
  * will automatically reset after a fixed amount of time and optionally call a callback function if specified. 
  * If no duration is passed in, then the progress bar will run indefinitely and must be manually cleared by calling reset.
  * 
  * @param PhpExt_ProgressBarWaitConfigObject $config (optional) A PhpExt_ProgressBarWaitConfigObject object
  * @return PhpExt_JavascriptStm
  */
 public static function wait($config)
 {
     $args[] = $config;
     $mc = PhpExt_Object::createMethodSignature("wait", $args);
     return PhpExt_Object::getMethodInvokeStm($this->_varName, $mc, true);
 }