Example #1
0
 function __construct(Wtk_Form_Model_Instance $instance, $button = null)
 {
     parent::__construct($instance);
     if (!$button) {
         $button = new Wtk_Form_Button("Téléverser");
         $button->addFlags('label');
     }
     $this->button = $button;
     $this->tooltip = "Taille maximale : " . ini_get('upload_max_filesize');
 }
Example #2
0
 function __construct(Wtk_Form_Model_Submission $submission)
 {
     parent::__construct($submission->label);
     $this->submission = $submission;
     $this->data['submission'] = $submission->id;
 }