/** * Init function * @param $pbid The progress id * @param $pbarid The progress bar id * @param $tbarid The transparent bar id */ public static function init($pbid='pb', $pbarid='progress-bar', $tbarid='transparent-bar'){ self::$pbid = $pbid; self::$pbarid = $pbarid; self::$tbarid = $tbarid; self::$textid = 'pb_text'; self::$percentDone = 0; }