Ejemplo n.º 1
0
 public function resize_config()
 {
     if (upload_configuration::isResize()) {
         print json_encode(array("resize" => true, "max_width" => upload_configuration::getMaxWidth(), "max_height" => upload_configuration::getMaxHeight()));
     } else {
         print json_encode(array("resize" => false));
     }
 }
 static function populateForm($form)
 {
     $form->configure->resize->checked(upload_configuration::isResize());
     $form->configure->max_width->value(upload_configuration::getMaxWidth());
     $form->configure->max_height->value(upload_configuration::getMaxHeight());
 }