/**
  * @return array
  */
 public function getItems()
 {
     $items = array();
     $pathWhereToFindMarkupsArray = FileResolver::getInstance()->setPackageName('modules_form')->setDirectory('templates/markup')->getPaths('');
     foreach ($pathWhereToFindMarkupsArray as $pathWhereToFindMarkups) {
         $dir = dir($pathWhereToFindMarkups);
         while ($entry = $dir->read()) {
             if ($entry[0] != '.' && is_dir($pathWhereToFindMarkups . DIRECTORY_SEPARATOR . $entry)) {
                 $items[] = new list_Item(f_Locale::translateUI('&modules.form.bo.markup.' . $entry . ';'), $entry);
             }
         }
     }
     return $items;
 }
 /**
  * Return the localized value for a rootfolder
  * @return string
  */
 public function getLabel()
 {
     return f_Locale::translateUI('&modules.form.document.recipientgroupfolder.Document-name;');
 }
 /**
  * Creates the acknowledgment notification for a form.
  * @param form_persistentdocument_baseform $form
  */
 protected function createacknowledgmentNotification($form)
 {
     $notification = notification_NotificationService::getInstance()->getNewDocumentInstance();
     $notification->setLabel(f_Locale::translateUI('&modules.form.document.form.Acknowledgment-notification-label-prefix;') . ' ' . $form->getLabel());
     $notification->setCodename($form->getFormid() . '_acknowledgmentNotification');
     $notification->setTemplate('default');
     $notification->setSubject($form->getLabel());
     $notification->setBody($this->getDefaultAcknowledgmentNotificationBody());
     if ($form->getId() > 0) {
         $notification->setAvailableparameters(implode("\n", $this->getFieldRemplacementsForNotification($form)));
     }
     $notification->save(ModuleService::getInstance()->getSystemFolderId('notification', 'form'));
     $form->setacknowledgmentNotification($notification);
 }
 /**
  * @param f_persistentdocument_PersistentDocument $document
  * @param string $forModuleName
  * @param array $allowedSections
  * @return array
  */
 public function getResume($document, $forModuleName, $allowedSections = null)
 {
     $resume = parent::getResume($document, $forModuleName, $allowedSections);
     $openNotificationUri = join(',', array('notification', 'openDocument', 'modules_notification_notification', $document->getNotification()->getId(), 'properties'));
     $backUri = join(',', array('form', 'openDocument', 'modules_form_form', $document->getId(), 'resume'));
     $resume["properties"]["notification"] = array("uri" => $openNotificationUri, "label" => f_Locale::translateUI("&modules.uixul.bo.doceditor.open;"), "backuri" => $backUri);
     return $resume;
 }
 /**
  * @see f_persistentdocument_PersistentDocumentImpl::getLabel()
  *
  * @return String
  */
 public function getLabel()
 {
     return f_Locale::translateUI(parent::getLabel());
 }