예제 #1
0
 /**
  * Pi1 constructor.
  */
 public function __construct()
 {
     $configuration = new Configuration();
     $configuration->setExt(Bootstrap::$_extKey);
     $configuration->setPlugin('Pi2');
     $this->init($configuration);
 }
예제 #2
0
 public function __construct()
 {
     $configuration = new Configuration();
     $configuration->setExt('bwrk_utility');
     $configuration->setPlugin('example');
     $this->init($configuration);
 }
예제 #3
0
 /**
  * @param string $fieldName
  * @param int $exclude
  * @param int $size
  * @param int $minitems
  * @param int $maxitems
  * @param string $label
  * @param string $extbaseType
  * @return array
  */
 public function addSysCategoryReferences($fieldName, $exclude = 0, $size = 10, $minitems = 0, $maxitems = 999, $label = '', $extbaseType = '')
 {
     $foreignTableWhere = " AND sys_category.sys_language_uid IN (-1, 0) ORDER BY sys_category.sorting ASC";
     if (!empty($extbaseType)) {
         $foreignTableWhere = " AND sys_category.tx_extbase_type = '" . $extbaseType . "' " . $foreignTableWhere;
     }
     $this->addMultipleRelationField($fieldName, 'sys_category', 'sys_category_record_mm', 'items', $foreignTableWhere, array('tablenames' => $this->conf->getModel(), 'fieldname' => $fieldName), $exclude, $size, $minitems, $maxitems, $label, array('renderMode' => 'tree', 'treeConfig' => array('appearance' => array('expandAll' => 1, 'showHeader' => 1), 'parentField' => 'parent')));
     return array($fieldName => $this->fields[$fieldName]);
 }
예제 #4
0
 /**
  * @param array $fields
  * @param string $sheetTitle
  * @return array
  */
 private function formFieldsForXml($fields, $sheetTitle)
 {
     $fieldsArrayCounter = 0;
     $fieldsArray = array();
     foreach ($fields as $field) {
         foreach ($field as $key => $value) {
             $formValuesForXml = $this->formValuesForXml($value);
             $fieldsArray[$fieldsArrayCounter] = array('name' => 'settings.' . $key, 'value' => array(array('name' => 'TCEforms', 'value' => $formValuesForXml)));
             foreach ($fieldsArray[$fieldsArrayCounter]['value'] as $key1 => $value1) {
                 if (is_array($value1)) {
                     if ($value1['name'] == 'label') {
                         $fieldsArray[$fieldsArrayCounter]['value'][$key1]['value'] = $this->conf->getLl() . '.' . $sheetTitle . '.' . $key;
                     }
                 }
             }
             $fieldsArrayCounter++;
         }
     }
     return $fieldsArray;
 }