refresh( $dwBrowserSession ); } public function DwSerializableInit() { parent::DwSerializableInit(); $this->addtoSerialize("compteur"); } public function refresh( \darkauth\db\session\DwBrowserSession $browserSession ) { $this->clear(); $this->setParam( "id" ,"viewCompteur"); $myForm = new \darkphp\html\Html( "form" , array( "method" => "post" ) ); $this->add( $myForm ); $myTryBtn = new \darkphp\html\Html( "input", array( "type" => "submit" ,"value" => $this->compteur==0 ? "try session" : "session cpt:".$this->compteur ,"name" => $browserSession->id ) ); $myForm->add( $myTryBtn ); } public function incremente() { $this->compteur++; } public function getClassName( bool $fqcn=null ) : string { return self::getStaticClassName( $fqcn ); } public static function getStaticClassName( bool $fqcn=null ) : string { return $fqcn ? parent::getStaticClassName( $fqcn ).self::CLASS_SEPARATOR.__CLASS__ : __CLASS__; } }