コード例 #1
0
ファイル: display_if_slow.php プロジェクト: evltuma/moodle
 /**
  * Constructs the progress reporter. This will not output HTML just yet,
  * until the required delay time expires.
  *
  * @param string $heading Text to display above bar (if it appears); '' for none (default)
  * @param int $delay Delay time (default 5 seconds)
  */
 public function __construct($heading = '', $delay = self::DEFAULT_DISPLAY_DELAY)
 {
     // Set start time based on delay.
     $this->starttime = time() + $delay;
     $this->heading = $heading;
     parent::__construct(false);
 }
コード例 #2
0
ファイル: editing_page.php プロジェクト: Bomberus/gpEasy-CMS
 function __construct($title, $type)
 {
     parent::__construct($title, $type);
 }