/**
  * prepare inputs
  *
  * @return array
  */
 protected function prepareInputs()
 {
     $result = array();
     if ($this->currentProduct->customizable) {
         $customizationFields = $this->currentProduct->getCustomizationFields($this->getPlugin()->getLanguageId());
         foreach ($customizationFields as $customizationField) {
             $inputItem = new Shopgate_Model_Catalog_Input();
             $inputItem->setUid($customizationField['id_customization_field']);
             $inputItem->setLabel($customizationField['name']);
             if ($customizationField['required'] == 1) {
                 $inputItem->setRequired(true);
             }
             switch ($customizationField['type']) {
                 case 0:
                     $inputItem->setType(Shopgate_Model_Catalog_Input::DEFAULT_INPUT_TYPE_FILE);
                     break;
                 case 1:
                     $inputItem->setType(Shopgate_Model_Catalog_Input::DEFAULT_INPUT_TYPE_TEXT);
                     break;
             }
             $result[] = $inputItem;
         }
     }
     return $result;
 }